and then use sipURI as your transferCall
# general-english
s
and then use sipURI as your transferCall tool with sip:your-transfer-number@sip.telynx.com
s
(remember my question was : anyone has been able to make "transferCall" works with Telnyx SIP ?) thanks @Sahil ! it's activated on telnyx. i want a tool that transfer to number in the prompt as "if customer ask for Antoine, use transferCall to +33600000000" how can I create this tool so it's working with telnyx sip trunking ?
s
Use the transferCall tool with sipURI transfer.
s
This is not working :/ Example call id : 40186443-63a5-4518-ab17-e5709dd57471 with return from our servers { "destination": { "type": "sip", "message": "Connecting your call via SIP.", "sipUri": "sip:06********@44.238.177.***:5060", } }
Or with another try : 5d31b822-2abe-4966-b44c-b9fc60af5c86 { "destination": { "type": "number", "message": "Connecting you to our support line.", "number": "+336********", "numberE164CheckEnabled": True, } }
@Shubham Bajaj if you have any idea it would be really usefull too 🙂 transfer is really important for my customers
From Telnyx support :
Copy code
Hello Antoine, Based on the call samples, a REFER was initiated from the IP address, 44.229.228.186 and was responded with a 202 Accepted.
202 Accepted was sent back but a BYE was sent from 44.229.228.186 which terminated the call.
@User
team any help please ?
@Shubham Bajaj really sorry but can you help me ?
s
@Solaris After SIP refer, once the request get accepted we send the BYE request and it’s the telephony side job to connect two numbers. Which means we don't do the transfer call from our PBX and instead transfer is responsibility of to the telephony provider. Good part is we will be adding support for call refer part from our PBX as well and it should be available by end of next week! cc: @User
s
@Shubham Bajaj thank you so much for your answer. so should I connect Telnyx to any other thing to make transfer possible ?
s
No you don't have to do anything we will take care of it.
s
Thanks ! I will lost 3 of my customers if I don’t have transfer on Monday ahah, should I take my own PBX connected to telnyx and connect that to Vapi during that time ? Or maybe you are looking for early testers for your own pbx transfer feature
s
@Solaris it works without connecting Telnyx to others. It's a priority for us, and we'll let you know when it's resolved.
s
@Shubham Bajaj so today im losing 3 customers because i have no choice ? like their is not any option to transfer call before you push this feature ?
s
hey @Solaris we have implemented the new change, now you have to transfer the call to the telephony instead. here's how to get it done https://docs.vapi.ai/advanced/sip/sip-trunk#sip-refer-call-transfer
@Solaris give it a try and let me know how it goes for you.
s
@Shubham Bajaj damn thank you ! but i'm using telnyx with Vapi to get inbound call, and want to transfer the customer to a non-sip phone number (+33600000000) with SIP Refer, it seems that I only can input a sip uri, so will not works with transfer right ?
s
Use the number type and append the number in the correct place. Since you're already using SIP, you don't need anything special. Replace here
14039932200
with your destination number.
Copy code
json
{
      "type": "transferCall",
      "destinations": [
        {
          "type": "sip",
          "sipUri": "sip:14039932200@sip.telnyx.com"
        }
      ]
    }
s
@Shubham Bajaj not working 😦 example call ID : 6ada8a42-b329-4705-9d4d-cad9cb2736c9 tool config : sip:+33600000000@sip.telnyx.com
s
@Solaris remove the phone-call-control server event from your assistant and then it will work.
Copy code
json
🔵 14:53:05:513 Server Message Requested...(phone-call-control , https://0b97-2a02-8428-a9bd-3b01-8515-16aa-64d7-bcab.ngrok-free.app/tools/test/):
{
  "type": "phone-call-control",
  "request": "forward",
  "forwardingPhoneNumber": "sip:+xxx@sip.telnyx.com",
  "destination": {
    "type": "sip",
    "sipUri": "sip:+@sip.telnyx.com",
    "message": "",
    "transferPlan": {"mode": "blind-transfer", "sipVerb": "refer"}
  }
}
s
@Shubham Bajaj still not working : cb5590f9-0a96-4c49-86fa-3d642e8c8627 did I miss anything else ?
or even this one 1a934f52-171c-4a2e-ba7c-4b302e2413fb
s
@Solaris the call is forwarded successfully but your saying your phone never ringed?
s
yes exactly
s
@Solaris looking into it...
Most likely, sip refer wasn't enabled from the Telynx end for your number. can you share the PCAP logs from the Telynx end, so I can get more information about it and find the exact reason why call was not forwarded by Telnyx.
@Shubham Bajaj any news ?
@User
s
@Solaris Hey, for the shared PCAP file, the call was not transferred. You need to enable SIP REFER from your Telenyx account, and then only you can do the call transfer. By default, it's disabled by the Telenyx team due to security concerns. For enabling it, you have to reach out to their Solutions Engineering team.
2 Views