BYO SIP Trunk Failed to create Credential
# support
c
@Vapi I'm with a VOIP provider and we're unable to create a BYO SIP trunk in the VAPI dashboard. We don't see any traffic coming from the 2 signaling IPs reference in the docs. We don't see any SIP traffic at all in fact during the brief period between trying to save the SIP trunk and getting the error message. It doesn't appear to be hitting our servers. I've read through the docs several times but I don't seem to be missing anything.
v
To create a BYO SIP trunk credential in Vapi, try using the following cURL command, replacing the placeholders with your actual details:
Copy code
bash
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": "Your Trunk Name",
    "gateways": [{ "ip": "YOUR_SIP_PROVIDER_DOMAIN" }],
    "outboundAuthenticationPlan": {
      "authUsername": "YOUR_SIP_USERNAME",
      "authPassword": "YOUR_SIP_PASSWORD"
    }
  }'
Double-check that all fields are correct and your API key is valid. If the error persists, please share the exact error message for more targeted help. [Reference: Vapi SIP Trunk Documentation](https://docs.vapi.ai/advanced/sip/sip-trunk) Source: - [SIP Trunking Vapi Documentation](https://docs.vapi.ai/advanced/sip/sip-trunk)
c
ok I'll try the API. How do I set the port though? It doesn't specify in the docs.
u
Hi, I had a similar issue. If you still haven’t managed to solve it, try using your SIP server’s IP address instead of its domain in the gateways field, that solved the problem for me.
c
Hey, can you send me a screen recording video that walks through the issue you are facing? It would be easier for me to understand your issue and help you out with it.
p
Hi I have a similar issue. Although all credendials are correct, I get "failed to credentials" error. How to fix it?
c
Hey, can you send me a screen recording video that walks through the issue you are facing? It would be easier for me to understand your issue and help you out with it.
2 Views