BeetleJuice
03/07/2025, 12:36 PMVapi Support Bot
03/07/2025, 12:38 PMjson
{
"provider": "byo-sip-trunk",
"name": "BYOC Trunk",
"credentials": {
"username": "YourUsername",
"password": "YourPassword"
},
"gateways": [
{
"ip": "YourStaticIP",
"port": YourStaticPort,
"netmask": 32,
"inboundEnabled": true,
"outboundEnabled": true,
"outboundProtocol": "udp"
}
]
}
2. Network and Firewall Issues
- Ensure your network settings allow SIP protocol traffic
- Verify that the necessary ports are open for SIP communication
- Check if there are any firewall rules blocking the connection [source](https://discord.com/channels/1211482211119796234/1211483291191083018/1336713212233515089)
3. E.164 Number Formatting
- Confirm that your phone numbers are correctly formatted in E.164 format with the '+' followed by country code
- There can be issues with international calls if they aren't correctly configured with the right country code [source](https://discord.com/channels/1211482211119796234/1211483291191083018/1336921030433833060)
4. SIP REFER Message HandlingVapi Support Bot
03/07/2025, 12:38 PMVapi Support Bot
03/07/2025, 12:38 PMsipUri
attribute is correctly formatted and points to your Ringostat address (bg1.ringostat.com) [source](https://discord.com/channels/1211482211119796234/1211483291191083018/1333747605628391434)
2. **Network Configuration**:
- Verify your network settings allow SIP protocol traffic through firewalls and NAT configurations
- Ensure your SIP server is configured to accept Vapi's incoming communication [source](https://discord.com/channels/1211482211119796234/1211483291191083018/1336713212233515089)
### Troubleshooting Steps
1. **Review SIP Trunk Configuration**:
- Validate your SIP trunk settings, especially the sipUri
, IP/Port, and authentication credentials
- Make sure SIP Register is active with the necessary Domain and Realm information [source](https://discord.com/channels/1211482211119796234/1211483291191083018/1333747605628391434)
2. **Check Network Settings**:
- Ensure your network allows SIP protocol traffic
- Configure firewalls/NATs to accommodate SIP messages [source](https://discord.com/channels/1211482211119796234/1211483291191083018/1336713212233515089)
3. **Examine API Requests and Logs**:
- Check the formatting of your API requests
- Review any available logs for additional error details [source](https://discord.com/channels/1211482211119796234/1211483291191083018/1336432457943351358)
4. **Test Alternative Numbers**:Vapi Support Bot
03/07/2025, 12:38 PMjson
{
"provider": "byo-sip-trunk",
"name": "My SIP Trunk",
"gateway": {
"ip": "bg1.ringostat.com",
"port": YourPort,
"netmask": 32,
"inboundEnabled": true,
"outboundEnabled": true
},
"credentials": {
"username": "YourUsername",
"password": "YourPassword"
}
}
Let me know if you've tried these steps or if you need more specific guidance! π
Sources:
- [Common Causes of "SIP gateway failed to connect" errors in Vapi.ai SIP Trunk integrations](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1333747605628391434)
- [How should Ringostat SIP provider settings be configured for successful integration with Vapi.ai REST API](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336713212233515089)
- [What troubleshooting steps does Vapi.ai recommend for outbound calls that are initiated via API but not received by the customer](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336432457943351358)IliaDobrev
03/07/2025, 1:57 PMNir S (CEO/Founder @Cloudonix)
03/07/2025, 2:21 PMShubham Bajaj
03/08/2025, 1:07 AMBeetleJuice
03/10/2025, 7:23 AMBeetleJuice
03/10/2025, 7:24 AMShubham Bajaj
03/12/2025, 9:24 PM