SIP Transfer
# support
s
Hi Team, i am calling my API bot via a SIP call straight from my Asterix server, now i am looking to transfer the call back, i can not seem to get the call transfer working. assuming i need to use the patch call function and use the SipTransferDestination schema... but i can seem to get it to work and dont see any sip invites coming back. is it possible to have some sample curl to show the correct usage
v
You can continue this conversation by mentioning me in the message.
@Stu Hello! I'm here to help you with the call transfer issue you're experiencing. To transfer a call using the SIP protocol, you indeed need to use the appropriate API function, which typically involves sending a SIP REFER message to the server handling the call. Here's a sample cURL command that demonstrates how to use the API to transfer a call. Please replace
<API_ENDPOINT>
,
<ACCESS_TOKEN>
,
<CALL_ID>
, and
<SIP_TRANSFER_TARGET>
with your actual API endpoint, access token, call identifier, and the SIP address to which you want to transfer the call, respectively.
Copy code
bash
curl -X PATCH "<API_ENDPOINT>/calls/<CALL_ID>" \
     -H "Authorization: Bearer <ACCESS_TOKEN>" \
     -H "Content-Type: application/json" \
     -d '{
           "sipTransfer": {
             "type": "SipTransferDestination",
             "sipUri": "<SIP_TRANSFER_TARGET>"
           }
         }'
Please ensure that: - Your Vici system is configured to handle SIP REFER messages. - The
<CALL_ID>
is the identifier of the current call you want to transfer. - The
<SIP_TRANSFER_TARGET>
is the SIP URI to which you want to transfer the call. If you've already tried this and it's not working, please check your server logs for any error messages that could indicate what's going wrong. If the logs show that the SIP REFER messages are not being sent or received as expected, ensure that your network and server configurations allow for these types of messages. If you need further assistance or if you're encountering specific error messages, please provide more details so I can assist you more effectively. If you're unsure about the error messages or need more info on this, please ask support for additional help.
s
It is only available to enterprise users.
9 Views