andmac
03/07/2025, 2:31 PMandmac
03/07/2025, 2:32 PMVapi Support Bot
03/07/2025, 2:33 PMsipUri
attribute within the forwardingPhoneNumbers
array is correctly formatted [source](https://discord.com/channels/1211482211119796234/1211483291191083018/1333747605628391434).
### Recommended Steps:
1. Add your VAPI RTP IP addresses to the "Allowed RTP IP Addresses" field in DIDWW
2. Verify authentication credentials are correct in both systems
3. Check logs for any SIP INVITE or REGISTER message failures
4. Use tools like Wireshark to analyze SIP traffic and identify where the connection is failing
Let me know if you need help with any specific part of the troubleshooting process!
Sources:
- [Discord message about SIP trunk configuration](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1333747605628391434)Vapi Support Bot
03/07/2025, 2:33 PMNir S (CEO/Founder @Cloudonix)
03/07/2025, 2:33 PMNir S (CEO/Founder @Cloudonix)
03/07/2025, 2:34 PMNir S (CEO/Founder @Cloudonix)
03/07/2025, 2:34 PMNir S (CEO/Founder @Cloudonix)
03/07/2025, 2:35 PMandmac
03/07/2025, 2:48 PMandmac
03/10/2025, 2:03 PMShubham Bajaj
03/10/2025, 6:05 PMandmac
03/10/2025, 6:30 PMNir S (CEO/Founder @Cloudonix)
03/10/2025, 6:59 PMandmac
03/11/2025, 1:36 PMNir S (CEO/Founder @Cloudonix)
03/12/2025, 1:16 PMShubham Bajaj
03/13/2025, 6:31 PMandmac
03/16/2025, 5:58 PMKyle
03/17/2025, 8:57 PMKyle
03/17/2025, 8:58 PMcurl -X POST https://api.vapi.ai/credential \
-H "Content-Type: application/json" \
-H "Authorization: Bearer your-private-key" \
-d '{
"provider": "byo-sip-trunk",
"name": "DIDWW Trunk",
"gateways": [
{
"ip": "sip.didww.com",
"port": 5060,
"outboundProtocol": "udp"
}
],
"outboundAuthenticationPlan": {
"authUsername": "username-from-didww",
"authPassword": "password-from-didww"
},
"outboundLeadingPlusEnabled": true
}'
Replace the following values:
\- `your-private-key`: Your Vapi API key
\- `sip.didww.com`: Your actual DIDWW SIP server address
\- username-from-didww
and `password-from-didww`: The credentials provided by DIDWW
This API call will return a credential ID that you'll need for the next step.
Step 2: Create a Phone Number Associated with the SIP Trunk
Next, create a phone number that will use this SIP trunk for outbound calls:
curl -X POST https://api.vapi.ai/phone-number \
-H "Content-Type: application/json" \
-H "Authorization: Bearer your-private-key" \
-d '{
"provider": "byo-phone-number",
"name": "DIDWW Number",
"number": "your-didww-phone-number",
"numberE164CheckEnabled": false,
"credentialId": "credential-id-from-step-1"
}'
Replace:
\- `your-private-key`: Your Vapi API key
\- `your-didww-phone-number`: Your DIDWW phone number in E.164 format
\- `credential-id-from-step-1`: The credential ID returned from Step 1
Step 3: Use the Number for Outbound Calls
After completing these steps, you can use this number for outbound calls. Vapi will handle the Digest Authentication process by responding to the 401 challenge from DIDWW with the proper credentials you configured.