telnyx sip credentials
# support
o
curl -X POST https://api.vapi.ai/credential \ -H "Content-Type: application/json" \ -H "Authorization: Bearer YOUR_VAPI_PRIVATE_KEY" \ -d '{ "provider": "byo-sip-trunk", "name": "Telnyx Trunk", "gateways": [ { "ip": "sip.telnyx.com" } ], "outboundAuthenticationPlan": { "authUsername": "YOUR_SIP_USERNAME", "authPassword": "YOUR_SIP_PASSWORD", "sipRegisterPlan": { "realm": "sip.telnyx.com" } } }' I am trying to connect my telnxy number to my vapi account. Inbound (FQDN) works fine, but whenever I try to set up outbound (via credentials) by using the curl request above, I receive an 400 error: {"message":"Couldn't validate SIP trunk credential. SIP gateway creation failed.","error":"Bad Request","statusCode":400} Has anyone alse also faced this issue?
k
Use the resolved IP instead of sip.telnyx.com in the gateways field, as vapi can’t validate SIP trunks using hostnames..
o
Thank you very much, that fixed it!
c
Glad the issue was resolved. Please reach out to us if you have any other questions regarding this issue
c
This isn't a workaround for all platforms, including Twilio. Since Twilio depends on the uri to identify the caller. Is there an ETA on when this "Vapi can't validate SIP trunks using hostnames" issue will be fixed? @User
2 Views