de.hungriest
10/01/2025, 1:25 PMVapi Support Bot
10/01/2025, 1:26 PMcredentialId for your SIP trunk, like this:
json
{
"provider": "byo-phone-number",
"name": "My SIP Number",
"number": "+14155551234",
"numberE164CheckEnabled": false,
"credentialId": "YOUR_SIP_TRUNK_CREDENTIAL_ID"
}
If the credentialId is missing or incorrect, outbound calls will not work.
See the [Vapi SIP trunk documentation](https://docs.vapi.ai/advanced/sip/sip-trunk#associate-a-phone-number-with-the-sip-trunk) for details.
Source:
- [SIP Trunking](https://docs.vapi.ai/advanced/sip/sip-trunk)Vapi Support Bot
10/01/2025, 1:43 PMChiranjeet Mishra
10/04/2025, 12:28 AM# 1. Create SIP trunk credentialcurl -X POST https://api.vapi.ai/credential \-H "Content-Type: application/json" \-H "Authorization: Bearer YOUR_VAPI_API_KEY" \-d '{ "provider": "byo-sip-trunk", "name": "Your Trunk Name", "gateways": [{ "ip": "YOUR_SIP_GATEWAY_ADDRESS", "inboundEnabled": false }], "outboundLeadingPlusEnabled": true, "outboundAuthenticationPlan": { "authUsername": "YOUR_SIP_NUMBER", "authPassword": "YOUR_SIP_PASSWORD" }}'# 2. Register the phone number with the credential IDcurl -X POST https://api.vapi.ai/phone-number \-H "Content-Type: application/json" \-H "Authorization: Bearer YOUR_VAPI_API_KEY" \-d '{ "provider": "byo-phone-number", "name": "Your SIP Number", "number": "YOUR_SIP_PHONE_NUMBER", "numberE164CheckEnabled": false, "credentialId": "YOUR_CREDENTIAL_ID"}'
Common issues that prevent outbound calls:
1. Incorrect gateway address format in the SIP trunk configuration
2. Missing or incorrect authentication credentials
3. IP whitelisting not properly configured
4. Phone number not properly associated with the credential ID
I recommend double-checking these configurations match exactly with your SIP provider's requirements. If you're using IP-based authentication, note that this can be unreliable unless your provider offers a unique termination URI or dedicated SIP server