An error occurred in this call: call.in-progress.e...
# support
t
An error occurred in this call: call.in-progress.error-sip-telephony-provider-failed-to-connect-call
v
Hi there! I see you're encountering the "call.in-progress.error-sip-telephony-provider-failed-to-connect-call" error. I'm unable to determine the exact cause in your specific case without more details about your setup, but I can definitely help explain what this error means and provide troubleshooting steps. This error indicates that there was a failure to connect a call via your SIP telephony provider. According to the information I found, this typically happens when: 1. Your telephony provider failed to connect in the required time or didn't respond properly 2. There's a misconfiguration in your SIP connection settings 3. Network configuration problems are preventing the connection Here are some troubleshooting steps you can take: 1. Check your telephony logs for detailed error messages - they might contain messages like "Waited 300s But Transport Never Connected" which can help identify the root cause 2. Verify your SIP URI and network configuration - ensure the SIP URI is correctly formatted and that your network allows SIP protocol traffic through any firewalls or NATs 3. Check your SIP authentication settings - make sure you're using the correct username/password credentials with basic auth 4. Contact your telephony provider - the issue might be on their end, so it's worth checking if they're experiencing any problems 5. Check your call duration settings - if set too short (e.g., 10 seconds), this can cause connection errors 6. Verify SIP server configuration - ensure your SIP server is properly configured to accept calls from Vapi's servers Is there any specific information about your setup that you can share to help narrow down the cause of this error? Sources: - [Troubleshooting call.in-progress.error-sip-telephony-provider-failed-to-connect-call](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1341848796845441055)
- [call.in-progress.error-sip-telephony-provider-failed-to-connect-call cause](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1341848796845441055) - [Solutions for call.in-progress.error-sip-telephony-provider-failed-to-connect-call](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1339624983474995212) - [SIP telephony provider failed to connect call troubleshooting](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336713212233515089)
t
@Vapi Support Bot how to set up the outbound corretly with telnyx
v
Hi there! 👋 I'd be happy to help you set up outbound calls correctly with Telnyx. I'm unable to determine the specific details of your current setup that might be causing the error, but I can definitely guide you through the proper setup process for Telnyx outbound calls with Vapi. Here's how to correctly set up outbound calls with Telnyx: ## On the Telnyx Side: 1. **Set up outbound authentication**: - Go to Voice / Sip Trunking / Authentication and routing - Scroll down to outbound calls authentication - Add the two fixed IPs from VAPI - Select Tech Prefix and create a unique 4-digit Tech Prefix (must be unique to your account) 2. **Create outbound voice profiles**: - Go to voice / outbound voice profiles - Create a profile and name it - Allow your desired destinations - Leave the next screen as is (configuration) - Assign your desired SIP trunk - Complete the setup 3. **Select your primary calling country**: - Go to the Outbound tab - Choose the country you'll be making most calls to - It's recommended to create separate SIP Trunks for each country you'll be calling frequently ## On the Vapi Side: 1. **Create a SIP Trunk Credential**:
Copy code
curl -X POST https://api.vapi.ai/credential \
     -H "Content-Type: application/json" \
     -H "Authorization: Bearer your-vapi-private-api-key" \
     -d '{
       "provider": "byo-sip-trunk",
       "name": "Telnyx Trunk",
       "gateways": [
         {
           "ip": "sip.telnyx.com"
         }
       ]
     }'
2. **Associate a Phone Number with the SIP Trunk**: ``` curl -X POST https://api.vapi.ai/phone-number \ -H "Content-Type: application/json" \ -H "Authorization: Bearer your-vapi-private-api-key" \ -d '{ "provider": "byo-phone-number", "name": "Telnyx SIP Number", "number": "your-sip-phone-number", "numberE164CheckEnabled": false,
"credentialId": "your-new-trunk-credential-id-which-you-got-from-previous-step" }'
Copy code
3. **Make outbound calls with the tech prefix**:
curl --location 'https://api.vapi.ai/call/phone' \ --header 'Authorization: Bearer your-vapi-private-api-key' \ --header 'Content-Type: application/json' \ --data '{ "assistantId": "your-assistant-id", "customer": { "number": "tech-prefix-with-phone-number-without-plus-signal", "numberE164CheckEnabled": false }, "phoneNumberId": "your-phone-id" }' ``` **Important note about the phone number format**: When making outbound calls, you need to include the tech prefix with the phone number without the plus sign. For example, if your phone number is +6699999999 and your Tech Prefix is 1234, you should format it as:
12346699999999
All of this information is based on the [Telnyx integration guide](https://docs.vapi.ai/advanced/sip/telnyx) I found. Is there anything specific about this setup process you'd like me to clarify further? Sources: - [How to set up outbound calls correctly with Telnyx](https://docs.vapi.ai/advanced/sip/telnyx) - [Vapi integration with Telnyx for outbound calls](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1344680024665493524) - [Telnyx configuration settings for Vapi outbound calls](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1338562413334761524)
p
Hey! To help track down this issue, could you share: - The call ID This would really help us figure out what went wrong!