Class JsSIP.RTCSession.ReferSubscriber

Events

JsSIP.RTCSession.ReferSubscriber class defines a series of events. Each of them allows callback functions registration in order to let the user execute a handler for each given stimulus.

requestSucceeded

Fired when receiving a final positive response to the REFER request.

Event data fields

response
JsSIP.IncomingResponse instance of the received 2XX response.

requestFailed

Fired if no final positive response for the sent REFER request is received.

Event data fields

response
JsSIP.IncomingResponse instance generating the failure for originator value of remote, null otherwise.
cause
One value of Failure and End Causes.

trying

Fired upon reception of the corresponding NOTIFY request containing the status code 100 in the body.

Event data fields

request
JsSIP.IncomingRequest instance of the received NOTIFY request.
status_line
Object representing the message/sipfrag status line conatined in the NOTIFY request body. Object keys are ‘status_code’ and ‘reason_phrase’.

progress

Fired upon reception of the corresponding NOTIFY request containing the status code 1XX (other than 100) in the body.

Event data fields

request
JsSIP.IncomingRequest instance of the received NOTIFY request.
status_line
Object representing the message/sipfrag status line conatined in the NOTIFY request body. Object keys are ‘status_code’ and ‘reason_phrase’.

accepted

Fired upon reception of the corresponding NOTIFY request containing the status code 2XX in the body.

Event data fields

request
JsSIP.IncomingRequest instance of the received NOTIFY request.
status_line
Object representing the message/sipfrag status line conatined in the NOTIFY request body. Object keys are ‘status_code’ and ‘reason_phrase’.

failed

Fired upon reception of the corresponding NOTIFY request containing the status code equal or greater that 3XX in the body.

Event data fields

request
JsSIP.IncomingRequest instance of the received NOTIFY request.
status_line
Object representing the message/sipfrag status line conatined in the NOTIFY request body. Object keys are ‘status_code’ and ‘reason_phrase’.