Issue with SIP Connection – Vodia PBX Integration
# support
u
Hey everyone 👋 I'm currently trying to integrate Vodia PBX with Vapi, but I'm running into an issue with the SIP connection. Here’s what I’ve done so far: - Used the gateway address from Vodia - Entered the correct authentication details - Successfully added the phone number to my Vapi account - Successfully created the number via the API However, when I try to use the Phonenumber ID, I get an error in the Vapi call logs saying: "SIP connection failed". Has anyone here successfully integrated Vodia PBX or knows what might be causing this? Appreciate any help 🙏
v
Hi there! 👋 Sorry to hear you're having trouble with the SIP connection when integrating with Vapi. I don't have specific information about Vodia PBX integration, but I can definitely help with general SIP connection troubleshooting that should apply to your situation. Here are some troubleshooting steps that might help resolve your "SIP connection failed" error: 1. **Verify SIP URI Format**: Ensure that the SIP URI in the
sipUri
attribute within the
forwardingPhoneNumbers
array is correctly formatted and points to a valid SIP address. The format should be
sip:user@domain
[according to Vapi documentation](https://docs.vapi.ai/advanced/sip). 2. **Check Vapi SIP Server Settings**: Make sure you're using
sip.vapi.ai
as the SIP server address. All requests should be sent to this domain, not to IP addresses (which are blocked) [according to Vapi documentation](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1329037681908383794). 3. **Verify Authentication**: Vapi expects authentication credentials using the Authorization header in SIP. The username must be your SIP username, and the password can be anything except "test" [according to support information](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334238882660618250). 4. **Network Configuration**: Verify that your network allows traffic on the SIP protocol and that any firewalls or NATs are configured to allow SIP messages to pass through [according to troubleshooting guides](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336713212233515089). 5. **SIP REFER Handling**: Confirm that your system is set up to handle SIP REFER messages, as Vapi uses SIP REFER to transfer calls [according to Vapi documentation](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336713212233515089).
6. **Check Codec Compatibility**: Ensure that the codecs used by Vapi are supported by your SIP endpoint. A common order of priority is PCMU, PCMA, and then G729 [according to configuration guides](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1333444985353404558). 7. **Review Logs**: Check any logs or error messages from your SIP server for additional clues as to why the connection is failing [according to troubleshooting recommendations](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336713212233515089). For transport protocol, Vapi uses UDP on port 5060 [according to configuration information](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1344680024665493524). Is there any specific error message beyond "SIP connection failed" that you're seeing in the logs? That might help narrow down the issue further. Sources: - [SIP Inbound Guide](https://docs.vapi.ai/advanced/sip) - [SIP Server Address Information](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1329037681908383794) - [Authentication Requirements](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334238882660618250) - [Network Configuration Troubleshooting](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336713212233515089) - [SIP REFER Handling](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336713212233515089) - [Codec Configuration](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1333444985353404558) - [Transport Protocol Information](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1344680024665493524)
n
Wow, Vodia - hadn't heard that name in years. What is your trunk configuration in Vodia? Can you please share it.
k
checking if this is resolved/solved for you?
u
Not resolved, still looking for an answer.
Can check it tomorrow, will tell you, thank you for your help
k
Hey! To help track down this issue, could you share: - The call ID This would really help us figure out what went wrong!