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
responseJsSIP.IncomingResponseinstance of the received 2XX response.
requestFailed
Fired if no final positive response for the sent REFER request is received.
Event data fields
responseJsSIP.IncomingResponseinstance generating the failure for originator value ofremote, 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
requestJsSIP.IncomingRequestinstance of the received NOTIFY request.status_lineObjectrepresenting the message/sipfrag status line conatined in the NOTIFY request body.Objectkeys 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
requestJsSIP.IncomingRequestinstance of the received NOTIFY request.status_lineObjectrepresenting the message/sipfrag status line conatined in the NOTIFY request body.Objectkeys 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
requestJsSIP.IncomingRequestinstance of the received NOTIFY request.status_lineObjectrepresenting the message/sipfrag status line conatined in the NOTIFY request body.Objectkeys 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
requestJsSIP.IncomingRequestinstance of the received NOTIFY request.status_lineObjectrepresenting the message/sipfrag status line conatined in the NOTIFY request body.Objectkeys are ‘status_code’ and ‘reason_phrase’.