xenial-black
xenial-black2mo ago

Vapi with telnyx numbers disconnect

Hey guys, I hooked up telnyx numbers through the api key but it seems like the voice isn't connecting properly and the customer isn't able to hear the agent.
No description
No description
6 Replies
Vapi Support Bot
To resolve your Telnyx voice connection issues, switch to SIP integration for more reliable audio. Here’s how 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 and test your calls again. This should improve voice connectivity between Vapi and Telnyx. Source: - Telnyx SIP integration documentation
⤵️ Mention @Vapi Support Bot for follow-ups 🐥
xenial-black
xenial-blackOP2mo ago
so I switched to telnyx SIP trunk An error occurred in this call: call.in-progress.error-providerfault-outbound-sip-403-forbidden new error
xenial-black
xenial-blackOP2mo ago
No description
xenial-black
xenial-blackOP2mo ago
No description
xenial-black
xenial-blackOP2mo ago
ive reduced the bundles pushd by make to 5 rows so that i dont go over any concurrency limit
Vapi
Vapi2mo ago
Hi swiftdev, To integrate your Telnyx SIP trunk with Vapi for efficient call handling, follow these summarized steps: 1. Configure Outbound Calling: - In the Telnyx Portal, set up or select an outbound voice profile. - Add Vapi as a connection under the "Connections and Applications" tab. 2. Integrate SIP Trunk: - Log in to Vapi and navigate to Organization Settings. - In the API Keys section, copy your Private Key. - Go to Voice / SIP Trunking / Create, and add sip.vapi.ai as the FQDN. - Assign your Telnyx number to the SIP trunk in the Numbers tab. - Ensure inbound settings are configured to match your Vapi SIP URI. 3. Setup Authentication: - Use the Vapi API to create a new SIP trunk credential, providing the necessary authentication credentials (username/password or IP-based), and link it to your phone number. 4. Outbound Call Setup: - Create an outbound profile in Vapi, assigning your configured Telnyx SIP trunk. - Use the Vapi API to initiate outbound calls. For detailed steps, refer to the Telnyx SIP Integration Guide and SIP Trunking Guide. This setup will ensure your AI voice assistants can handle calls effectively.
Telnyx SIP integration | Vapi
How to integrate SIP Telnyx to Vapi

Did you find this page helpful?