fair-rose
fair-rose2d ago

Telnyx Latency IS CRAZY.. what went wrong?

Recently i bought a number from Telnyx, and just like Vonage and Twillio i added the number just by connecting the api and after wards importing the phone number from Telnyx. i went there and opened the destination countries.. created Outbound Voice Profile... and my phone number was connected to the right App.. but yet the conversation where really weird.. she's not picking up 60% of what i'm saying and there is HUGE LATENCY ISSUE for about 5-10 seconds!!! and i've changed the AnchorSite location to check if it's affecting latency and as well switched to latency based settings and nothing helped at all. Did someone had issues with Telnyx, is it an obligation to create the connection via SIP Trunking instead to solve this issue or what?
3 Replies
Vapi Support Bot
To address your Telnyx latency issue, try integrating your Telnyx number with Vapi using SIP trunking instead of the standard import. This method can offer better control and may help reduce latency. Here’s a quick example to create a SIP trunk credential in Vapi:
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",
"name": "Telnyx Trunk",
"gateways": [{ "ip": "sip.telnyx.com", "inboundEnabled": false }],
"outboundAuthenticationPlan": {
"authUsername": "YOUR_SIP_USERNAME",
"authPassword": "YOUR_SIP_PASSWORD",
"sipRegisterPlan": { "realm": "sip.telnyx.com" }
}
}'
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",
"name": "Telnyx Trunk",
"gateways": [{ "ip": "sip.telnyx.com", "inboundEnabled": false }],
"outboundAuthenticationPlan": {
"authUsername": "YOUR_SIP_USERNAME",
"authPassword": "YOUR_SIP_PASSWORD",
"sipRegisterPlan": { "realm": "sip.telnyx.com" }
}
}'
Replace the placeholders with your actual credentials. This setup may help resolve your latency problems by leveraging direct SIP integration. For full steps, see the documentation I have found. Source: - Telnyx SIP integration
⤵️ Mention @Vapi Support Bot for follow-ups 🐥
fair-rose
fair-roseOP2d ago
from Telnyx side do i need to change anything? or it's only the settings from our Vapi side? Thanks
mute-gold
mute-gold2d ago
@Amir UIDB I've been facing the same issues when I used australian numbers imported from telnyx. Tried both using sip trunking as well as voice applications. Both didn't work out well. And most issues I faced were in the inbound calls. Still isn't resolved though

Did you find this page helpful?