Ketan
09/24/2025, 10:46 AMYushoo
09/24/2025, 11:21 AMPRESTIGEX
09/24/2025, 1:39 PMKetan
09/24/2025, 1:40 PMKetan
09/24/2025, 1:40 PMYushoo
09/24/2025, 3:24 PMKetan
09/25/2025, 9:17 AMChiranjeet Mishra
09/26/2025, 9:43 AMbash
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 SIP Provider Name",
"gateways": [{
"ip": "YOUR_SIP_PROVIDER_DOMAIN",
"inboundEnabled": false
}],
"outboundAuthenticationPlan": {
"authUsername": "YOUR_SIP_USERNAME",
"authPassword": "YOUR_SIP_PASSWORD"
}
}'
Replace placeholders with your actual details.
3. **Associate a Phone Number**:
Link your external phone number to the SIP trunk credential:
bash
curl -X POST "https://api.vapi.ai/phone-number" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_VAPI_PRIVATE_KEY" \
-d '{
"provider": "byo-phone-number",
"name": "Your Phone Number Name",
"number": "YOUR_PHONE_NUMBER",
"numberE164CheckEnabled": false,
"credentialId": "YOUR_CREDENTIAL_ID"
}'
Note the credentialId from the response of the previous step.
4. **Test Your SIP Trunk**:
- Ensure outbound calls are routed correctly using the Vapi dashboard or API.
- For inbound routing, ensure your provider forwards calls to the correct SIP URI format.
More details on these processes are available in the [SIP Trunking documentation](https://docs.vapi.ai/advanced/sip/sip-trunk). If you encounter any specific errors, please provide error messages so we can assist further.Akash Malhotra
09/30/2025, 8:51 AMChiranjeet Mishra
10/02/2025, 12:10 PMAkash Malhotra
10/07/2025, 10:45 AMAkash Malhotra
10/07/2025, 10:45 AMChiranjeet Mishra
10/09/2025, 5:05 AM{
"provider": "byo-sip-trunk",
"name": "My SIP Trunk",
"gateways": [
{
"ip": "sip.provider.com",
"port": 5060,
"outboundEnabled": true,
"inboundEnabled": false,
"outboundProtocol": "udp"
},
{
"ip": "203.0.113.10",
"port": 5060,
"outboundEnabled": false,
"inboundEnabled": true
}
]
}
Once you have configured the SIP trunk, you will receive a value for credentialId. Save that and use it for the next step of assigning the SIP trunk to a phone number, as that is a required value for setting up the phone number.
If you encounter any issues with the setup, please feel free to reach out.Damir
10/16/2025, 3:46 AMChiranjeet Mishra
10/17/2025, 11:27 PM