SIP Trunk Credentials buggy af!
# support
s
Have you noticed that if you have connected more than one SIP credentials and try to delete one, it gets deleted the other one you wanted to keep. Check my image it's got 0 SIP trunk credentials because you deleted my creds I wanted to keep. I had some working workflows and now it's all messed up, cause there are no connected phone numbers. And more importantly you don't even let me add my numbers again throwing me a random error "Couldn't validate SIP trunk credential. SIP gateway creation failed."(My credentials are 100% correct). Please help! https://cdn.discordapp.com/attachments/1419612687650000957/1419612688253718550/image.png?ex=68d264d8&is=68d11358&hm=0ff305ae62124adb290fd08639e410233b1252eb92a4b1405054975a4ffc57bb&
v
Try re-adding your SIP trunk credential using the API directly:
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", "inboundEnabled": false }],
    "outboundAuthenticationPlan": {
      "authUsername": "YOUR_SIP_USERNAME",
      "authPassword": "YOUR_SIP_PASSWORD"
    }
  }'
Replace the placeholders with your actual details. If you still get a validation error, double-check your SIP provider domain and credentials, and ensure your provider has whitelisted Vapi's signaling IPs. [See full API reference](https://docs.vapi.ai/advanced/sip/sip-trunk#create-a-sip-trunk-credential-in-vapi) Source: - [Vapi SIP Trunk Documentation](https://docs.vapi.ai/advanced/sip/sip-trunk)
s
Thanks man, I ended up adding both SIP trunk credentials through the terminal. Hopefully they fix this bug soon, or at least remove that ‘delete’ option since it’s not working properly.
v
Message marked as helpful by @Stefanos! 🎉
3 Views