Phone Transfers Not Working
# support
u
Hello, I have been working on the transfers for two days, but I haven't been able to make them work. Part of the tests I’ve conducted were with two different assistants. One has a phone number configured with Telnyx and can make both inbound and outbound calls without issues. The other assistant has a free number from VAPI, and both assistants use different tools for call transfers. When testing outbound calls with Telnyx, the number is dialed differently, so the numberE164CheckEnabled option is disabled. I did this because I tested the transfers using both the E164 format and a prefix to rule out this as the issue. On the other hand, the assistant with the VAPI number also cannot make the transfer work. In both cases, I hear the message the assistant is supposed to say, but a few seconds later, the call ends. When reviewing the logs, I don’t find any errors. The last action I can see is that the transfer was completed, but the destination number never rings. Please, I have an application that we want to publish in a few weeks, and this is an essential function for the project. Timestamp | Call ID outbound using telnyx 2025-03-13 17:39:53 PDT | 87076f07-3e85-498b-a0ea-a4dc9f3d8894 Timestamp | Call ID inbound usign telnyx 2025-03-13 16:17:22 PDT | a44899b8-c29c-4be7-8951-6010fe8381f2 2025-03-13 15:53:51 PDT | f8c42603-894f-49ce-8545-f5598ba69a38 2025-03-13 15:43:21 PDT | 8c40bff0-1fe0-4886-9571-08fabf783069 2025-03-13 14:28:00 PDT | 2ac0ac11-8222-4468-ba56-fe2cc61d9b02 2025-03-12 14:31:19 PDT | 4ee3a729-39bd-4382-a394-0fce28adb8b6 Timestamp | Call ID outbound using Vapi Number: 2025-03-13 16:28:23 PDT | d002ab94-26a2-4a7b-855c-ef19196bfe6c 2025-03-13 16:24:41 PDT | 3b26172b-9983-4a9f-b0c7-093f3b22d48c https://cdn.discordapp.com/attachments/1349921096757153832/1349921096970797167/Screenshot_from_2025-03-13_18-19-18.png?ex=67d4db7d&is=67d389fd&hm=0a68a6444b972d31bbebc4bbea913fc6ed418b85f44b242383110d36583da222& https://cdn.discordapp.com/attachments/1349921096757153832/1349921097205682226/Screenshot_from_2025-03-13_18-27-36.png?ex=67d4db7d&is=67d389fd&hm=2aa3e52eb0f2d7902cc9e09f5cbafed84ed9f612db0a8131601218f985313f4e&
Extra info Phone ID: 6147e926-c29d-4585-8ec2-7f6ca9d54ea2 | Telnyx Inbound 9616fdcb-00fa-4130-8807-92a248664125 | Telnyx Outbound 3375288b-88d4-48a0-aa98-e1dd9d0ddf91 | Vapi Number Tools: 9abea1b3-15fd-4881-8b76-2662ee071fcf | Transfer tool using SIP aa951c17-465e-4b83-bb12-9c4bda72cc2c | Transfer tool using E164
v
Hi there! I understand you're having issues with call transfers using both Telnyx-configured numbers and VAPI free numbers. Let me help troubleshoot this πŸ” Based on your description (call ends after the transfer message without the destination ringing), here are the most common causes and solutions: ### For Both Telnyx and VAPI Numbers: 1. SIP REFER Message Handling - VAPI uses SIP REFER by default for transferring calls - Ensure your receiving system (PBX) can properly handle SIP REFER messages - Many users report calls hanging up immediately after "Transferring the call now" without actually transferring [source](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1333917242195046464) 2. Configuration of transferCall Function - Verify your transferCall tool is properly configured in the assistant's tools array:
Copy code
json
   {
     "model": {
       "tools": [
         {
           "type": "transferCall",
           "destinations": [
             {
               "type": "number",
               "number": "+1234567890"
             }
           ]
         }
       ]
     }
   }
[source](https://docs.vapi.ai/tools/default-tools) 3. Destination Number Availability - The destination number may be busy or unreachable, causing hang-ups on transfer attempts - Try testing with different destination numbers to rule this out [source](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1339614362742165606) ### For Telnyx-Specific Issues: 1. Number Formatting - Even though you've disabled numberE164CheckEnabled, ensure the destination number format is consistent - Try both with and without the E.164 format to identify if this is causing issues [source](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1333643719205361662) 2. SIP Gateway Issues - Users often experience "sip gateway failed to connect" errors with Telnyx
- This could indicate a problem with the setup or handling of the connection ### For VAPI Free Numbers: 1. Dynamic Messaging Configuration - Ensure your assistant is correctly set up to use dynamic messages during transfers:
Copy code
json
   {
     "destination": {
       "type": "number",
       "message": "I will transfer the call to {{variable}}",
       "number": "{{destination_number}}",
       "numberE164CheckEnabled": true,
       "callerId": "{{caller_id}}"
     }
   }
[source](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334153644379078677) 2. Server Events Conflicts - Check if additional server events (like
phone-call-control
) might be conflicting with VAPI's ability to handle transfers [source](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1339740286922002523) Since you're not seeing errors in the logs, I'd recommend: 1. Double-check your SIP/PBX configuration to ensure it properly handles SIP REFER messages 2. Review the complete configuration of your transferCall tool 3. Test with a simple, known-working destination number 4. Monitor the complete call flow logs to see exactly where the transfer is failing Let me know if you need more specific guidance on any of these areas! Sources: - [Discord Thread about Call Transfer Issues](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1333917242195046464) - [Discord Thread about Destination Availability](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1339614362742165606) - [Discord Thread about Number Formatting](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1333643719205361662) - [Vapi Tools Documentation](https://docs.vapi.ai/tools/default-tools) - [Discord Thread about Dynamic Messaging](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334153644379078677)
u
yeah, i test with and without E164 format and transfer tool configure as well
Hi, I have followed the recommendations and I have not been able to get it to work. Is there any update on this?
s
@15cm_de_dolor allow me some time to go through them and get back to you.
u
@Shubham Bajaj Thanks a lot
k
You are looking for this Plus make sure to contact telynx team to enable the SIP REFER feature for your account.
u
ok, on it, thanks! i will try that and comment
Hello, I have contacted Telnyx, and they have responded that the SIP REFER function is not available. I will run tests with Twilio.
k
Sounds good! Hope all goes well, we're here to help if it doesn't.
u
@Shubham Bajaj @Sahil Thanks for the help, so far Twilio was the only one that allowed me to transfer calls, thanks for the support
k
Awesome.
t
Is there a problem with transferring using tools at the moment? I am literally getting nothing but hangups and have followed your guide to a T
@15cm_de_dolor how did you solve this? I am stuck and this is critical 😦
u
@thenotoriousllama i solve this using a phone number from twilio
Because Vapi free number don't support outbound calls and telnyx don't support SIP REFER
t
@15cm_de_dolor yeah I'm using Twilio now too
u
@thenotoriousllama At what step are you stopped? On execute tool or the forward?
s
Also, @thenotoriousllama did you turn on the SIP refer?
t
@Sahil when the tool initiates the transfer it dies
@15cm_de_dolor The tool executes in the logs and the call dies
@Sahil Yes SIP REFER is on
I am also getting Telnyx to turn it on for my account as well.
but I am using Twilio at the moment to see if that was the problem
@15cm_de_dolor Telnyx does support it, but you have to be on an enterprise/commercial agreement
So that's probably why they told you no
If you wanted to be on an enterprise/commercial agreement hit me up and I'll help you. I work with Telnyx's growth team πŸ™‚
u
@thenotoriousllama can shared screen shots the tool and call log example?
This is a log for success tranfer
I shared my configurations
in this case i import phone number from twilio
and that's it
@thenotoriousllama was it helpful?
s
@15cm_de_dolor @thenotoriousllama Checking if this has been resolved for you guys. If not, do share the call ID, I'll take a look.
u
@Shubham Bajaj thanks a lot, for my part it is resolved
k
Marking this ticket as Solved βœ…
i
Hey thenotoriusllama, I'm facing the exact same issue with SIP REFER on Telnyx. I'd appreciate your help getting set up on an enterprise/commercial agreement if it is the only solution, as i prefer not to use twilio for the incoming call costs. I'll DM you for more details. Thanks!
k
This ticket has been marked as solved, and as a result, you will no longer receive any further responses. Kindly create a new support ticket to escalate your inquiry.Β 
2 Views