sip.js.incomingrequest.md

September 26, 2022 ยท View on GitHub

Home > sip.js > IncomingRequest

IncomingRequest interface

A SIP message sent from a remote client to a local server.

Signature:

export interface IncomingRequest 

Remarks

For the purpose of invoking a particular operation. https://tools.ietf.org/html/rfc3261\#section-7.1

Properties

PropertyModifiersTypeDescription
delegateIncomingRequestDelegateDelegate providing custom handling of this incoming request.
messageIncomingRequestMessageThe incoming message.

Methods

MethodDescription
accept(options)Send a 2xx positive final response to this request. Defaults to 200.
progress(options)Send a 1xx provisional response to this request. Defaults to 180. Excludes 100. Note that per RFC 4320, this method may only be used to respond to INVITE requests.
redirect(contacts, options)Send a 3xx negative final response to this request. Defaults to 302.
reject(options)Send a 4xx, 5xx, or 6xx negative final response to this request. Defaults to 480.
trying(options)Send a 100 outgoing response to this request.