unable to add sip trunk credentials
# support
a
I am adding sip trunl credentials to a new org which i created for a client. i am getting error, tried adding via app and api both getting error { "message": "Couldn't validate SIP trunk credential. SIP gateway creation failed.", "error": "Bad Request", "statusCode": 400 } i purchased credits but after that this happen.. i have to forcefully move back my client again back to my old org where the same credeantials are working
@User
Please help
c
Hi Akash Malhotra, Please ensure you follow these steps to set up your SIP trunk credentials in Vapi: 1. Gather Required Information: Obtain the SIP server address, and authentication credentials. For Plivo, use the unique SIP domain. 2. Create SIP Trunk Credential:
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_DOMAIN",
          "inboundEnabled": false
        }]
      }'
Replace
YOUR_VAPI_PRIVATE_KEY
and
YOUR_SIP_DOMAIN
with your actual API key and Plivo SIP domain. 3. Associate Phone Number: Link your external phone number with this credential using a similar API call. For further details, you can refer to our [Plivo SIP Integration Guide](https://docs.vapi.ai/advanced/sip/plivo). If you run into specific error messages during this process, please kindly provide those details for more directed assistance.
3 Views