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
codeNumberindicating the SIP response code.reasonStringindicating the SIP response reason phrase.extraHeaders- Optional
ArrayofStringswith extra headers to be added to the SIP response. body- Optional
Stringrepresenting the body for the SIP response. onSuccess- Optional
Functionto be exectued it the response is successfully sent. onFailure- Optional
Functionto be exectued it the response fails to be sent.
reply_sl(code, reason)
Replies the request stateless.
Parameters
codeNumberindicating the SIP response code.reasonStringindicating the SIP response reason phrase.