unique-blueU
VAPI5mo ago
unique-blue

Error creating SIP Trunk with Wavoip via API

When attempting to create a BYO-SIP-TRUNK on Vapi for integration with the Wavoip provider using an API request, I receive the following error response:

"Couldn't validate SIP trunk credential. SIP gateway creation failed."
"error": "Bad Request"
"statusCode": 400

SIP trunk credential used in Vapi:

curl -X POST "https://api.vapi.ai/credential" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer MY_PRIVATE_API_KEY_VAPI" \
-d '{
"provider": "byo-sip-trunk",
"name": "AR Trunk",
"gateways": [{
"ip": "sipv2.wavoip.com"
}],
"outboundLeadingPlusEnabled": true,
"outboundAuthenticationPlan": {
"authUsername": "MY_USER_WAVOIP",
"authPassword": "MY_PASSWORD_WAVOIP"
}
}'
Additional information:
I have already contacted Wavoip support regarding this issue. They informed me that other clients are reporting the same problem and advised me to contact Vapi support for assistance.
Request for support:
I would like to understand why Vapi is unable to validate the credentials and create the SIP gateway, and whether it is necessary to:
  • Use additional parameters in the JSON (e.g., port, transport).
  • Whitelist any specific Vapi IP addresses on the Wavoip side.
  • Adjust the "ip" field format to a numeric IP address.
I look forward to your guidance so I can resolve the issue and complete the configuration.

Best regards,
Carlos Santos
Was this page helpful?