swiftdev
11/04/2025, 4:03 PMVapi Support Bot
11/04/2025, 4:06 PMbash
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](https://docs.vapi.ai/advanced/sip/telnyx)swiftdev
11/04/2025, 5:50 PMswiftdev
11/04/2025, 5:50 PMswiftdev
11/04/2025, 5:50 PMswiftdev
11/04/2025, 5:50 PMChiranjeet Mishra
11/06/2025, 9:50 PMsip.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](https://docs.vapi.ai/advanced/sip/telnyx) and [SIP Trunking Guide](https://docs.vapi.ai/advanced/sip/sip-trunk).
This setup will ensure your AI voice assistants can handle calls effectively.