Enumeration CallEvents

The events that are triggered by VoxImplant.Call instance.
Use VoxImplant.Call.addEventListener function to subscribe on any of these events.
Example:

Index

Enumeration members

Connected

Connected:

Event is triggered when a realible connection is established for the call. Depending on network conditions there can be a 2-3 second delay between first audio data and this event.

Handler function receives EventHandlers.CallEventWithHeaders object as an argument.

Disconnected

Disconnected:

Event is triggered when a call was disconnected

Handler function receives EventHandlers.Disconnected object as an argument.

Failed

Failed:

Event is triggered due to a call failure
Most frequent status codes:

Code Description
486 Destination number is busy
487 Request terminated
603 Call was rejected
404 Invalid number
480 Destination number is unavailable
402 Insufficient funds

Handler function receives EventHandlers.Failed object as an argument.

ICECompleted

ICECompleted:

Event is triggered when ICE connection is complete

Handler function receives EventHandlers.CallEvent object as an argument.

ICETimeout

ICETimeout:

Event is triggered when connection was not established due to a network connection problem between 2 peers

Handler function receives EventHandlers.CallEvent object as an argument.

InfoReceived

InfoReceived:

Event is triggered when INFO message is received

Handler function receives EventHandlers.InfoReceived object as an argument.

LocalVideoStreamAdded

LocalVideoStreamAdded:

Handler function receives EventHandlers.LocalVideoStreamAdded object as an argument.

MediaElementCreated

MediaElementCreated:

Event is triggered when a new HTMLMediaElement for the call's media playback has been created

Handler function receives EventHandlers.MediaElementCreated object as an argument.

MessageReceived

MessageReceived:

Event is triggered when a text message is received

Handler function receives EventHandlers.MessageReceived object as an argument.

ProgressToneStart

ProgressToneStart:

Event is triggered when a progress tone playback starts

Handler function receives EventHandlers.CallEvent object as an argument.

ProgressToneStop

ProgressToneStop:

Event is triggered when a progress tone playback stops

Handler function receives EventHandlers.CallEvent object as an argument.

RTCStatsReceived

RTCStatsReceived:

TransferComplete

TransferComplete:

Event is triggered when a call has been transferred successfully

Handler function receives EventHandlers.CallEvent object as an argument.

TransferFailed

TransferFailed:

Event is triggered when a call transfer failed

Handler function receives EventHandlers.CallEvent object as an argument.

Updated

Updated:

Event is triggered when a call was updated. For example, video was added/removed.

Handler function receives EventHandlers.Updated object as an argument.