Enumeration CallEvents

Events dispatched by VoxImplant.Call instance.
Use VoxImplant.Call.addEventListener function to subscribe on any of this events.
Example:

Index

Enumeration members

Connected

Connected:

Event dispatched after call was connected

call

call: Call

Call that dispatched the event

Optional headers

headers: Object

Optional SIP headers received with the message

Disconnected

Disconnected:

Event dispatched after call was disconnected

call

call: Call

Call that dispatched the event

Optional headers

headers: Object

Optional SIP headers received with the message

Optional params

params: boolean

Optional disconnecting flags

Failed

Failed:

Event dispatched after if call failed 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 dispatched the event

code

code: number

Status code of the call (i.e. 486)

Optional headers

headers: Object

Optional SIP headers received with the message

reason

reason: string

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

ICECompleted

ICECompleted:

Event dispatched when ICE connect completed

call

call: Call

Call that dispatched the event

ICETimeout

ICETimeout:

Event dispatched in case of network connection problem between 2 peers

call

call: Call

Call that dispatched the event

InfoReceived

InfoReceived:

Event dispatched when INFO message is received

body

body: string

Content of the message

call

call: Call

Call that dispatched the event

Optional headers

headers: Object

Optional SIP headers received with the message

mimeType

mimeType: string

MIME type of INFO message

MediaElementCreated

MediaElementCreated:

Event dispatched when new HTMLMediaElement for the call's media playback created

call

call: Call

Call that dispatched the event

element

element: HTMLMediaElement

Renderer element

type

type: string

Type of media dispatched

MessageReceived

MessageReceived:

Event dispatched when text message is received

call

call: Call

Call that dispatched the event

text

text: string

Content of the message

ProgressToneStart

ProgressToneStart:

Event dispatched when progress tone playback starts

call

call: Call

Call that dispatched the event

ProgressToneStop

ProgressToneStop:

Event dispatched when progress tone playback stops

call

call: Call

Call that dispatched the event

RTCStatsReceived

RTCStatsReceived:

RenegotiationResult

RenegotiationResult:

Event dispatched when renegotiation completed

Optional haveVideo

haveVideo: boolean

True if have video after renegotiation

result

result: boolean

True in case of successful renegotiation, false - otherwise

TransferComplete

TransferComplete:

Event dispatched when call has been transferred successfully

call

call: Call

Call that dispatched the event

TransferFailed

TransferFailed:

Event dispatched when call transfer failed

call

call: Call

Call that dispatched the event

VideoPlaybackStarted

VideoPlaybackStarted: