VAPI SIP Twilio Setup - Headers not being sent pro...
# support
k
Hello @Shubham Bajaj I am trying to setup SIP for a client and am running into the following error: Make sure that any phone number sent via SIP to Twilio is always E.164-formatted. Here is a video showing the error I encountered: https://www.loom.com/share/b0b095633ffd49e79154242fc81b6478?sid=532efda0-281e-46d0-be8b-6bf8bcb4b9a4 Cheers, Kevin
v
@Kevin Hello Kevin, It looks like you're encountering an issue with the phone number format expected by Twilio when using SIP. Twilio requires that all phone numbers sent via SIP must be in E.164 format, which is an internationally-recognized standard for phone numbers. The E.164 format includes a plus sign (+), followed by the country code, and then the national number. For example, a US number would look something like +15551234567. To resolve this issue, you'll need to ensure that the phone numbers you're sending in your SIP messages are correctly formatted in E.164. You may need to adjust your SIP configuration or the application that is sending the SIP invites to include the correct formatting. If you need further assistance with the specifics of configuring your SIP setup to ensure E.164 formatting, please ask support for more info on this. They will be able to guide you through the necessary steps or troubleshoot the configuration with you. Best regards, Your VAPI Support Bot
You can continue this conversation by mentioning me in the message.
k
my number is properly configured to have the plus sign at the beginning
@User
s
Hey @Kevin just set the
E.164-format
flag to false and then it will work.
Do let me know how it goes!!
k
Hey @Shubham Bajaj I've tried both and they don't work. Check out the video: https://www.loom.com/share/3dad315014274d16a2a25b04ab52fc27?sid=740894b7-01a8-4e54-82e4-8b24647971a5
@User
s
@Kevin can you share the recent call ID so I can take a look?, and ping me when your available I'll try to connect with you if possible.
k
here are a few: 2470bd1d-4489-4d37-a5ca-71175545d489, d8120558-c29c-45ed-adbd-8458f8d428a8, 494a213d-5668-4491-8fab-5cc7e8acc701
s
logs-coming-from-twilio
šŸ”µ 17:07:09:226 Call
d8120558-c29c-45ed-adbd-8458f8d428a8
Waited 300s But Transport Never Connected. šŸ”µ 16:53:44:600 Call
494a213d-5668-4491-8fab-5cc7e8acc701
Waited 300s But Transport Never Connected. @Kevin It looks like you're trying to make calls using SIP but it's not properly configured, which is causing the error message
sip-gateway-failed-to-connect
. If you need documentation on setting up SIP trunking, you can refer to the following guides: https://www.notion.so/SIP-be5179f856e046688c69eba817e7fcc3 https://www.notion.so/SIP-Inbound-Guide-1f0789ae62024748a62a6d81076b9f32 https://www.notion.so/SIP-Outbound-Guide-997d66df35284295b7149fc10c82f3e8 If you've already gone through the SIP trunking documentation and just ping me, and then we can do it over a call.
3 Views