Class JsSIP.IncomingRequest

An instance of JsSIP.IncomingRequest holds a received SIP request.

Parent Class

JsSIP.IncomingRequest inherits from JsSIP.IncomingMessage.

Instance Methods

reply(code, reason, extraHeaders, body, onSuccess, onFailure)

Replies the request statefully.

Parameters

code
Number indicating the SIP response code.
reason
String indicating the SIP response reason phrase.
extraHeaders
Optional Array of Strings with extra headers to be added to the SIP response.
body
Optional String representing the body for the SIP response.
onSuccess
Optional Function to be exectued it the response is successfully sent.
onFailure
Optional Function to be exectued it the response fails to be sent.

reply_sl(code, reason)

Replies the request stateless.

Parameters

code
Number indicating the SIP response code.
reason
String indicating the SIP response reason phrase.