sip_refer
Send SIP REFER to a SIP call.
Properties
sip_refer
An object that accepts the following properties.
sip_refer.to_uri
SIP URI to REFER to.
sip_refer.status_url
HTTP or HTTPS URL to deliver SIP REFER status events. Learn more about status callbacks.
sip_refer.username
Username to use for SIP authentication.
sip_refer.password
Password to use for SIP authentication.
Variables
Set by the method:
- sip_refer_to: (out) The SIP URI the recipient is to INVITE.
- sip_refer_result: (out) Overall SIP REFER result.
- return_value: (out) Same value as
sip_refer_result. - sip_refer_response_code: (out) Recipient response to the REFER request.
- sip_refer_to_response_code: (out) INVITE response to the recipient.
StatusCallbacks
A POST request will be sent to status_url with a JSON payload like the following:
event_type
The type of event. Always calling.call.refer for this method.
event_channel
The channel for the event, includes the SWML session ID.
timestamp
Unix timestamp (float) when the event was generated.
project_id
The project ID associated with the call.
space_id
The Space ID associated with the call.
params
An object containing SIP REFER-specific parameters.
params.call_id
The call ID.
params.node_id
The node handling the call.
params.sip_refer_to
The SIP URI the recipient is being referred to.
params.state
The overall result of the SIP REFER operation (e.g., success).
params.sip_refer_response_code
The SIP response code for the REFER request itself (e.g., "202"). Only present when a response has been received.
params.sip_notify_response_code
The SIP response code for the INVITE sent by the recipient to the refer target (e.g., "200"). Only present when a response has been received.
params.segment_id
The segment ID for the call leg. Present when available.
params.tag
The tag associated with the call. Present when set.