IncomingCallCommon interface
The incoming call common interface.
Properties
call |
Containing code/subCode indicating how call ended. |
caller |
Identifier of the caller. |
custom |
Options sent as custom context. |
id | Get the unique Id for this Call. |
kind | Get the kind of incoming call oject. |
Methods
off("call |
Unsubscribe function for onCallEnded event. |
on("call |
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
customContext
id
Get the unique Id for this Call.
id: string
Property Value
string
kind
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>