JinZh
03/30/2025, 6:29 PMVapi Support Bot
03/30/2025, 6:30 PMsipUri
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."Vapi Support Bot
03/30/2025, 6:30 PMsip.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)Vapi Support Bot
03/30/2025, 6:30 PMPraveen
03/31/2025, 9:46 AM