Rate this page:

CallEvent

Constants

Connected
Copy URL

Triggered after a call has been successfully connected.

Listener is called with CallConnected and payload:

Parameters

  • callId:

    string

    Call id.

  • headers:

    Record<string, string>

    Optional

    Optional headers passed with the event

Disconnected
Copy URL

Triggered after a call has been disconnected.

Listener is called with CallDisconnected and payload:

Parameters

  • callId:

    string

    Call id.

  • headers:

    Record<string, string>

    Optional

    Optional headers passed with the event

  • Reason that the call ended

Failed
Copy URL

Triggered if a call has failed.

Listener is called with CallFailed and payload:

Parameters

  • callId:

    string

    Call id.

  • code:

    number

    Call failure status code

  • headers:

    Record<string, string>

    Optional

    Optional headers passed with the event

  • reason:

    string

    Optional

    Call failure reason

InfoReceived
Copy URL

Triggered when an INFO message is received within a call.

Listener is called with CallInfoReceived and payload:

Parameters

  • body:

    string

    Body of an INFO message

  • callId:

    string

    Call id.

  • headers:

    Record<string, string>

    Optional

    Optional headers passed with the event

  • mimeType:

    string

    MIME type of an INFO message

MessageReceived
Copy URL

Triggered when a message is received within a call.

Listener is called with CallMessageReceived and payload:

Parameters

  • callId:

    string

    Call id.

  • text:

    string

    Message text

RemoteVideoStreamAdded
Copy URL

Triggered when another call participant has added a remote video stream to a call.

Listener is called with CallRemoteVideoStreamAdded and payload:

Parameters

RemoteVideoStreamRemoved
Copy URL

Triggered when another call participant has removed a remote video stream from a call.

Listener is called with CallRemoteVideoStreamRemoved and payload:

Parameters

StartRinging
Copy URL

Triggered when the Call.ring method is called on the scenario side.

Listener is called with CallStartRinging and payload:

Parameters

  • callId:

    string

    Call id.

  • headers:

    Record<string, string>

    Optional

    Optional headers passed with the event

StatsReceived
Copy URL

Triggered when call statistics are available for a call.

Listener is called with CallStatsReceived and payload:

Parameters

  • callId:

    string

    Call id.

  • Media connectivity statistics

  • Statistics for all active outgoing audio streams in a call at the moment of the statistics collection

  • Statistics for all active outgoing video streams in a call at the moment of the statistics collection

  • Statistics for all incoming audio and video streams of a call at the moment of the statistics collection

  • timestamp:

    number

    Time at which the call statistics are collected, relative to the UNIX epoch (Jan 1, 1970, UTC), in microseconds

StopRinging
Copy URL

Triggered when the Call.answer or Call.startEarlyMedia method is called on the scenario side.

Listener is called with CallStopRinging and payload:

Parameters

  • callId:

    string

    Call id.

  • headers:

    Record<string, string>

    Optional

    Optional headers passed with the event

Rate this page: