Phone calls being forwarded instead of agent answe...
# support
b
I am using Twilio to connect to Vapi. However, when Twilio sends the call over to Vapi, the API return with:
Copy code
<Response>
    <Dial>{Phone number}</Dial>
</Response>
Where {phone number} is my personal cell phone, which is nowhere in the settings. I've already tried to disconnect and reconnect the Twilio phone. I've contacted Twilio customer support, and I've looked through all the settings, and I have not found anything that would indicate why this is not working. Can anyone help figure out how to fix this?
v
message has been deleted
@Berto Mejia It sounds like there may be an issue with the configuration that is causing Twilio to dial your personal cell phone number instead of connecting to VAPI as intended. Let's try to troubleshoot this step by step: 1. **Check Twilio Webhook Configuration**: Ensure that the webhook URL configured in Twilio for incoming calls is correctly pointing to the VAPI endpoint. It should not be pointing to any number, but rather to a URL that handles the API requests. 2. **Review Twilio Number Settings**: Double-check the settings for the phone number in Twilio to make sure there are no forwarding rules or configurations that might be causing the calls to be redirected to your personal number. 3. **Inspect VAPI Configuration**: Verify that VAPI is correctly set up to handle incoming calls from Twilio. Ensure that there are no default settings or scripts that might be redirecting the call to your personal number. 4. **Import Your Number to VAPI**: If you intend to use your personal number with VAPI, you can import it using the dashboard or the
/phone-numbers/import
endpoint. This will configure your number with VAPI services using your Twilio credentials. 5. **Check for Hardcoded Numbers**: Sometimes, the issue might be due to hardcoded numbers within the application code or Twilio's TwiML Bin. Ensure that there is no hardcoded number that matches your personal cell phone. 6. **Twilio Logs**: Review the call logs in your Twilio account to see if there are any clues as to why the call is being redirected to your personal number. If after these steps the issue persists, it might be necessary to look deeper into the configurations and possibly involve VAPI support. Since you've already contacted Twilio support and checked the settings, it might be a specific issue with how VAPI is handling the incoming requests. If you need further assistance with the VAPI configurations or if there's anything specific you would like me to do, please let me know!
You can continue this conversation by mentioning me in the message.
s
@Berto Mejia Could you please provide the phone number ID so that I may review it?
b
@User Sure. Assistant id: 02ab7729-8d45-4631-9454-ba31e3c1331a Phone # id: d75f57b7-6e2c-4650-9a6f-c12de5b409dc Thank you for looking into it!
s
@Berto Mejia As you can see from the screenshot the phone number has been deleted and previously there was an fallback destination format issue, so i wanted to know your recent phone numberID to look into. https://cdn.discordapp.com/attachments/1332470088078590023/1333338983823966240/Screenshot_2025-01-27_at_1.02.09_PM.png?ex=67988831&is=679736b1&hm=b3992176b87f1644569bc0227572019bd6ba31836b9f564ee64d2c7b04d9cea7&
b
Oh, sorry. I didn't realize one of my other founders was messing with it. We've been trying everything to try to get it to work. The new phone number ID is 4e8efe08-8dc3-4917-a11a-78edad5cfe4e Thank for your help!
s
logs
šŸ”“ 09:15:45:790 POST /call, ForbiddenException 403 (45.33.237.109) Response: { "message": "Invalid Key. Hot tip, you may be using the private key instead of the public key, or vice versa.", "error": "Forbidden", "statusCode": 403 } @Berto Mejia you tried to make a call on Jan20th and it failed because of invalid api key, correct if this's not true.
s
@Berto Mejia It is likely that either your Twilio number does not have the VAPI inbound URL configured, or you have not associated any assistant with your phone number. As a result, the system is defaulting to the number, which is why it did not function as intended.
error_response
Copy code
Couldn't Find Call. Likely Rejected Inbound.
b
Thanks! It was another organization was highjack the phone number.
5 Views