sip_refer
Send SIP REFER to a SIP call.
Parameters
Name | Type | Description |
---|---|---|
to_uri | string | SIP URI to REFER to. Required. |
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.
Examples
Send SIP REFER and post result
- YAML
- JSON
version: 1.0.0
sections:
main:
- label: refer
sip_refer:
to_uri: "sip:alice@example.com"
- execute: https://example.com/handle_sip_refer_result
{
"version": "1.0.0",
"sections": {
"main": [
{
"label": "refer",
"sip_refer": {
"to_uri": "sip:alice@example.com"
}
},
{
"execute": "https://example.com/handle_sip_refer_result"
}
]
}
}