sip.js.sessiondelegate.onack.md

September 26, 2022 ยท View on GitHub

Home > sip.js > SessionDelegate > onAck

SessionDelegate.onAck() method

Receive ACK request.

Signature:

onAck?(request: IncomingAckRequest): Promise<void> | void;

Parameters

ParameterTypeDescription
requestIncomingAckRequestIncoming ACK request.

Returns:

Promise<void> | void

The callback MUST return a promise if it asynchronously handles answers. For example, an ACK with an answer (offer in the 200 Ok) may require asynchronous processing in which case the callback MUST return a Promise which resolves when the answer handling is complete.