sip.js.useragentclient.cancel.md

September 26, 2022 ยท View on GitHub

Home > sip.js > UserAgentClient > cancel

UserAgentClient.cancel() method

Since requests other than INVITE are responded to immediately, sending a CANCEL for a non-INVITE request would always create a race condition. A CANCEL request SHOULD NOT be sent to cancel a request other than INVITE. https://tools.ietf.org/html/rfc3261\#section-9.1

Signature:

cancel(reason?: string, options?: RequestOptions): OutgoingRequestMessage;

Parameters

ParameterTypeDescription
reasonstring
optionsRequestOptionsCancel options bucket.

Returns:

OutgoingRequestMessage