Plivo Integration with Vapi
# support
j
Dear Vapi Support Team, I am integrating Plivo with Vapi to enable outbound and inbound call support. I have followed the instructions provided here(https://docs.vapi.ai/advanced/sip/plivo), but I am still encountering the error: "SIP gateway failed to ...". Could you please advise on what might be causing this issue and how I can resolve it? Your guidance would be greatly appreciated. Looking forward to your response. Best regards, Jin
v
Hi Jin! 👋 I see you're having trouble with the Plivo integration with Vapi and encountering a "SIP gateway failed to..." error. While I don't have the complete error message, I can definitely help you troubleshoot this integration issue. Based on the information I have, here are several potential causes and solutions for your SIP gateway connection issue: ### Network and Configuration Issues - **SIP URI Format**: Ensure that the SIP URI in the
sipUri
attribute within the
forwardingPhoneNumbers
array is correctly formatted and points to a valid Plivo SIP address. [According to our documentation](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336713212233515089), incorrect SIP URI formatting is a common cause of connection failures. - **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. [Our troubleshooting guide](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334919245468799007) notes that firewall issues or SIP ALG (Application Layer Gateway) settings could be interfering with SIP messages. - **SIP Server Configuration**: Make sure your SIP server or PBX is configured to accept calls from Vapi's servers and that it is not rejecting the incoming INVITE requests. ### Authentication and Credentials - **Authentication Issues**: If your SIP endpoint requires authentication, double-check that the credentials provided to Vapi are correct. [According to our documentation](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334238882660618250), Vapi expects authentication credentials where the username must be your SIP username, and the password can be anything except the keyword "test."
- **Inbound Requests**: Make sure you're sending inbound requests to
sip.vapi.ai
. [Our documentation](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1329143416386355270) indicates that all requests and traffic to IP addresses have been blocked. ### SIP Trunk Configuration - **SIP Trunk Settings**: Ensure that the SIP trunk is correctly configured in Vapi with the correct Credential ID, IP/Port, and Authentication details. Also, verify that SIP Register is enabled with the proper Domain and Realm if required. - **Gateway IP and Port**: Verify that the "ip" and "port" values in your "gateways" array are accurate and correspond to your PBX's external IP address and the port you've configured for SIP traffic. ### Advanced Troubleshooting - **SIP REFER Handling**: Confirm that your system is set up to handle SIP REFER messages, as [Vapi uses SIP REFER to transfer calls](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336713212233515089). - **Codecs Compatibility**: Ensure that the codecs used by Vapi are supported by your Plivo endpoint. - **Logs Analysis**: Review any logs or error messages from both your Plivo account and Vapi for additional clues about why the connection is failing. The complete error message would be particularly helpful for diagnosing the specific issue. Is there any additional information you can provide about the exact error message or the specific configuration you're using? This would help me provide more targeted troubleshooting advice. Sources: - [SIP gateway failed to connect Plivo Vapi integration](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336713212233515089) - [Troubleshooting steps for SIP gateway failure during Plivo Vapi integration](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334919245468799007)
p
Hey! To help track down this issue, could you share: - The call ID This would really help us figure out what went wrong!
2 Views