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.

call

call: Call

Call that triggered the event

Optional headers

headers: Object

Optional SIP headers are received with the message

Disconnected

Disconnected:

Event is triggered when a call was disconnected

call

call: Call

Call that triggered the event

Optional headers

headers: Object

Optional SIP headers are received with the message

Optional params

params: boolean

Optional disconnecting flags

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

call

call: Call

Call that triggered the event

code

code: number

Call status code (i.e. 486)

Optional headers

headers: Object

Optional SIP headers are received with the message

reason

reason: string

Status message of a call failure (i.e. Busy Here)

ICECompleted

ICECompleted:

Event is triggered when ICE connection is complete

call

call: Call

Call that triggered the event

ICETimeout

ICETimeout:

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

call

call: Call

Call that triggered the event

InfoReceived

InfoReceived:

Event is triggered when INFO message is received

body

body: string

Content of the message

call

call: Call

Call that triggered the event

Optional headers

headers: Object

Optional SIP headers are received with the message

mimeType

mimeType: string

MIME type of INFO message

MediaElementCreated

MediaElementCreated:

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

call

call: Call

Call that triggered the event

element

element: HTMLMediaElement

Renderer element

type

type: string

Type of media

MessageReceived

MessageReceived:

Event is triggered when a text message is received

call

call: Call

Call that triggered the event

text

text: string

Content of the message

ProgressToneStart

ProgressToneStart:

Event is triggered when a progress tone playback starts

call

call: Call

Call that triggered the event

ProgressToneStop

ProgressToneStop:

Event is triggered when a progress tone playback stops

call

call: Call

Call that triggered the event

RTCStatsReceived

RTCStatsReceived:

TransferComplete

TransferComplete:

Event is triggered when a call has been transferred successfully

call

call: Call

Call that triggered the event

TransferFailed

TransferFailed:

Event is triggered when a call transfer failed

call

call: Call

Call that triggered the event

Updated

Updated:

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

call

call: Call

Call that triggered the event

result

result: boolean

True in case of successful updating, false in other cases.