kitkat
03/12/2025, 10:55 PMVapi Support Bot
03/12/2025, 10:57 PMcredentials
if not required)
3. Double-checking the formatting of your SIP URIs
Would you like me to provide more specific configuration recommendations to help minimize these issues in the future?
Sources:
- [Discord discussion about SIP Trunking issues](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1333747605628391434)
- [Discord discussion about API limitations](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334060872087375872)
- [Discord discussion about SIP connection management](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1333687712399680801)kitkat
03/12/2025, 11:44 PMVapi Support Bot
03/12/2025, 11:45 PMjson
{
"provider": "byo-sip-trunk",
"name": "BYOC Trunk",
"gateways": [
{
"ip": "YourStaticIP",
"port": YourStaticPort,
"netmask": 32,
"inboundEnabled": true,
"outboundEnabled": true,
"outboundProtocol": "udp"
}
]
}
2. **Avoid Including Unnecessary Properties**:
- A common cause of 400 errors is including properties that shouldn't be there
- Specifically, don't include the credentials
property if not required
3. **Correct SIP URI Formatting**:
- When setting up the sipUri
attribute in the forwardingPhoneNumbers
array, ensure it's properly formatted:
json
{
"forwardingPhoneNumbers": [
{
"sipUri": "sip:user@domain.com"
}
]
}
4. **Continue Using Your Workaround**:
- Your approach of creating a new SIP connection when re-adding numbers is currently the most reliable solution
- This suggests there's a state persistence issue with deleted numbers in VAPI
5. **Network Configuration**:
- Ensure your firewalls allow SIP traffic to your VAPI trunk
- Use VAPI's relevant IP addresses for SIP traffic, avoiding direct IP routing
These steps should help minimize the occurrence of 400 errors when managing your SIP connections in VAPI 👍
Sources:
- [Discord discussion about SIP Trunking issues](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1333747605628391434)
- [Discord discussion about API limitations](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/2342587463456567)Vapi Support Bot
03/12/2025, 11:45 PMNir S (CEO/Founder @Cloudonix)
03/13/2025, 8:53 AM