Twilio vs Telnyx
# support
g
Hey guys! I recently acquired Italian numbers from Twilio and Telnyx and I need some help. In Twilio I was able to acquire an Italian number but they only offer toll-free numbers which get really expensive, which is why I decided to check Telnyx which offered local numbers and had cheaper rates. I got the number from Telnyx but and hooked it up to my VAPI agent, but when dialing the number, it seems like the line is just "busy". I'm also seeing a number of problems with Telnyx with latency based on some posts in this community. Does anyone have more insights on Telnyx numbers here especially for Italian numbers?
c
Thanks for reaching out about your SIP Trunking setup! You can find step-by-step troubleshooting help here: 👉 [Vapi SIP Trunking Guide](https://docs.vapi.ai/advanced/sip/sip-trunk) If that doesn’t resolve it, please reply with: - Your Call ID - The exact error message or behavior (e.g. 401 Unauthorized, timeout, etc.) - Whether it’s happening on inbound, outbound, or both trunks - Any recent configuration changes Once we have that info, we can help pinpoint the issue faster.
g
I didn't do the SIP trunking, I just used the "Import Telnyx Number" option from VAPI
c
Hi Gray, If you need guidance on integrating your Telnyx SIP trunk with Vapi, please follow these steps outlined in our [Telnyx SIP integration guide](https://docs.vapi.ai/advanced/sip/telnyx). 1. **Setup SIP Trunk**: Create a SIP Trunk in your Telnyx account and configure the FQDN to
sip.vapi.ai
. 2. **Assign Phone Number**: Go to the Numbers tab in Telnyx, assign your number to the SIP trunk, and ensure Voice settings match your Vapi SIP URI. 3. **Outbound Authentication**: Create a credential with your Telnyx SIP credentials in Vapi using:
Copy code
bash
   curl -X POST https://api.vapi.ai/credential -H "Content-Type: application/json" -H "Authorization: Bearer YOUR_VAPI_PRIVATE_KEY" -d '{ "provider": "byo-sip-trunk", ... }'
4. **Associate Phone Number in Vapi**: Use the Vapi API to link your phone number to the created SIP trunk. 5. **Configure in Dashboard**: Set your voice assistant to handle inbound and outbound calls with your Telnyx number directly in the Vapi dashboard. For outbound calls, make sure your API call is similar to this:
Copy code
bash
curl --location 'https://api.vapi.ai/call/phone' --header 'Authorization: Bearer YOUR_VAPI_PRIVATE_KEY' --header 'Content-Type: application/json' --data '{ "assistantId": "YOUR_ASSISTANT_ID", "customer": { "number": "CUSTOMER_PHONE_NUMBER" }, "phoneNumberId": "YOUR_PHONE_ID" }'
Let me know if you have any questions about these steps.
g
Hey guys, I was able to do connect Telnyx with Vapi now but the problem is the audio quality, my AI agent in VAPI can't hear
How do I fix that?
c
Could you please share your telnyx settings?
g
Yes
c
Please specify G711A, G711U, and OPUS for the codecs. Remove G722 for now and perform some test calls
m
Hi @Gray, I'm having the same issue with an Italian phone number. Poor audio quality is interrupting the voice agent's workflow. Have you found a solution? It seems the Vapi staff doesn't know how to fix the problem or even what's causing it.
g
I have found a good workaround, look into using Cloudonix
It helps bridge this gap between Vapi - Telnyx
Cloudonix will act as the SIP trunking bridge between the two. You can just create the free version and it still does the job. I believe they uploaded the tutorials on their YouTube as well
c
Glad you found a solution using Cloudonix! If you need anything else, please let us know.
4 Views