IncomingCallCommon interface

The incoming call common interface.

Properties

callEndReason

Containing code/subCode indicating how call ended.

callerInfo

Identifier of the caller.

customContext

Options sent as custom context.

id

Get the unique Id for this Call.

kind

Get the kind of incoming call oject.

Methods

off("callEnded", CallEndedEvent)

Unsubscribe function for onCallEnded event.

on("callEnded", CallEndedEvent)

Subscribe function for onCallEnded event.

reject()

Reject this incoming Call.

Property Details

callEndReason

Containing code/subCode indicating how call ended.

callEndReason?: CallEndReason

Property Value

callerInfo

Identifier of the caller.

callerInfo: CallerInfo

Property Value

customContext

Options sent as custom context.

customContext?: CustomContext

Property Value

id

Get the unique Id for this Call.

id: string

Property Value

string

kind

Get the kind of incoming call oject.

kind: IncomingCallKind

Property Value

Method Details

off("callEnded", CallEndedEvent)

Unsubscribe function for onCallEnded event.

function off(event: "callEnded", listener: CallEndedEvent)

Parameters

event

"callEnded"

event name.

listener
CallEndedEvent

callback fn that was used to subscribe to this event.

on("callEnded", CallEndedEvent)

Subscribe function for onCallEnded event.

function on(event: "callEnded", listener: CallEndedEvent)

Parameters

event

"callEnded"

event name.

listener
CallEndedEvent

callback fn that was used to subscribe to this event.

reject()

Reject this incoming Call.

function reject(): Promise<void>

Returns

Promise<void>