Rw1
04/22/2025, 5:55 PMVapi Support Bot
04/22/2025, 5:57 PMcurl --location --request PATCH 'https://api.vapi.ai/phone-number/your_phone_id' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer your-vapi-private-api-key' \
--data '{
"assistantId": "your-assistant-id"
}'
Just replace your_phone_id
with the ID of your Telnyx SIP number and your-assistant-id
with the ID of the assistant you want to assign.
## Problem 2: SIP Connection Error
For the "call.in-progress.error-sip-telephony-provider-failed-to-connect-call" error, there are several potential causes:
1. **Telephony Provider Issues**: Telnyx might not be responding or connecting in the required time, leading to the connection failure.
2. **SIP Configuration Issues**: According to information from [Discord discussions](https://discord.com/channels/1211482211119796234/1340144301132353637), this could be related to problems with your SIP configuration.
3. **Network Configuration**: Make sure your network allows SIP traffic and that any firewalls aren't blocking it.
Here are some troubleshooting steps:
- Verify your SIP trunk is correctly configured in Vapi with the proper Credential ID, IP/Port, and authentication details
- Ensure SIP Register is enabled with the correct Domain and Realm
- Check that the SIP URI in your configuration is correctly formattedVapi Support Bot
04/22/2025, 5:57 PMSahil
04/23/2025, 12:49 AMSubrat Sagar
06/26/2025, 7:35 AMSahil
06/27/2025, 3:39 AM