Interface VonageEvent

Vonage Events that can be listened to via the on method

interface VonageEvent {
    callHangup: ((callId, callQuality, reason) => void);
    callInvite: ((callId, from, channelType) => void);
    callInviteCancel: ((callId, reason) => void);
    callMediaDisconnect: ((callId, reason) => void);
    callMediaError: ((callId, error) => void);
    callMediaReconnecting: ((callId) => void);
    callMediaReconnection: ((callId) => void);
    callTransfer: ((callId, conversationId) => void);
    conversationEvent: ((event) => void);
    dtmf: ((callId, legId, digits) => void);
    earmuff: ((callId, legId, earmuffStatus) => void);
    legStatusUpdate: ((callId, legId, legStatus) => void);
    mute: ((callId, legId, isMuted) => void);
    reconnecting: (() => void);
    reconnection: (() => void);
    rtcStatsUpdate: ((stats, callId) => void);
    sessionError: ((reason) => void);
}

Properties

callHangup: ((callId, callQuality, reason) => void)

Type declaration

    • (callId, callQuality, reason): void
    • Parameters

      Returns void

callInvite: ((callId, from, channelType) => void)

Type declaration

    • (callId, from, channelType): void
    • Parameters

      Returns void

callInviteCancel: ((callId, reason) => void)

Type declaration

    • (callId, reason): void
    • Parameters

      Returns void

callMediaDisconnect: ((callId, reason) => void)

Type declaration

    • (callId, reason): void
    • Parameters

      • callId: string
      • reason: "networkChange"

      Returns void

callMediaError: ((callId, error) => void)

Type declaration

    • (callId, error): void
    • Parameters

      Returns void

callMediaReconnecting: ((callId) => void)

Type declaration

    • (callId): void
    • Parameters

      • callId: string

      Returns void

callMediaReconnection: ((callId) => void)

Type declaration

    • (callId): void
    • Parameters

      • callId: string

      Returns void

callTransfer: ((callId, conversationId) => void)

Type declaration

    • (callId, conversationId): void
    • Parameters

      • callId: string
      • conversationId: string

      Returns void

conversationEvent: ((event) => void)

Type declaration

dtmf: ((callId, legId, digits) => void)

Type declaration

    • (callId, legId, digits): void
    • Parameters

      • callId: string
      • legId: string
      • digits: string

      Returns void

earmuff: ((callId, legId, earmuffStatus) => void)

Type declaration

    • (callId, legId, earmuffStatus): void
    • Parameters

      • callId: string
      • legId: string
      • earmuffStatus: boolean

      Returns void

legStatusUpdate: ((callId, legId, legStatus) => void)

Type declaration

    • (callId, legId, legStatus): void
    • Parameters

      • callId: string
      • legId: string
      • legStatus: LegStatus

      Returns void

mute: ((callId, legId, isMuted) => void)

Type declaration

    • (callId, legId, isMuted): void
    • Parameters

      • callId: string
      • legId: string
      • isMuted: boolean

      Returns void

reconnecting: (() => void)

Type declaration

    • (): void
    • Returns void

reconnection: (() => void)

Type declaration

    • (): void
    • Returns void

rtcStatsUpdate: ((stats, callId) => void)

Type declaration

    • (stats, callId): void
    • Parameters

      • stats: RTCStatsJS
      • callId: string

      Returns void

sessionError: ((reason) => void)

Type declaration