Blessed
09/19/2025, 2:23 PMChris
09/19/2025, 3:18 PMChiranjeet Mishra
09/23/2025, 3:26 PMcall.ringing.sip-inbound-caller-hungup-before-call-connect or call.ringing.error-sip-inbound-call-failed-to-connect. These can help you manage call failures more precisely.
- To handle errors during active calls, use enums such as call.in-progress.error-vapifault-chat-pipeline-failed-to-start to detect and address specific provider issues.
- Enhanced error handling for call start errors includes call.start.error-subscription-insufficient-credits.
For more detailed assistance, refer to the [Vapi call ended reasons documentation](https://docs.vapi.ai/calls/call-ended-reason) and [the API changelog](https://docs.vapi.ai/changelog/2025/6/13). These resources will give you insights into handling connection issues with Twilio and managing call ends effectively.
Can you also try some troubleshooting steps:
1. Check Twilio IP Whitelisting: Ensure you've whitelisted Vapi's SIP server static IPs
- 44.229.228.186
- 44.238.177.138
2. Verify SIP Trunk Configuration:
- Confirm your Termination SIP URI is correctly configured in Twilio
- Check that the IP range whitelisting includes the full range
3. Verify Vapi Credential Setup: Make sure your SIP trunk credential is properly configured with:
{
"provider": "byo-sip-trunk",
"gateways": [
{
"ip": "YOUR_TWILIO_GATEWAY_ID",
"inboundEnabled": false
}
],
"outboundLeadingPlusEnabled": true
}
Since you're seeing successful API calls but WebSocket connection failures, double-check that your Twilio Elastic SIP Trunk settings match Vapi's requirements exactly.
If the issue persists after verifying these please contact us again and let us know