sip.js.sessionmanagerdelegate.oncallreceived.md
October 20, 2022 ยท View on GitHub
Home > sip.js > SessionManagerDelegate > onCallReceived
SessionManagerDelegate.onCallReceived() method
Called when a call is received.
Signature:
onCallReceived?(session: Session): void;
Parameters
| Parameter | Type | Description |
|---|---|---|
| session | Session |
Returns:
void
Remarks
Callback for handling incoming INVITE requests. The callback must either accept or reject the incoming call by calling answer() or decline() respectively.