Gai
06/04/2025, 3:10 PMVapi Support Bot
06/04/2025, 3:11 PMGai
06/04/2025, 6:11 PMGai
06/05/2025, 11:21 AMGai
06/05/2025, 11:22 AMGai
06/05/2025, 11:22 AMGai
06/05/2025, 11:23 AMVapi Support Bot
06/05/2025, 11:24 AMGai
06/05/2025, 11:28 AMVapi Support Bot
06/05/2025, 11:29 AMjson
{
"provider": "byo-sip-trunk",
"name": "My SIP Trunk",
"gateways": [
{ "ip": "gateway1.example.com" },
{ "ip": "gateway2.example.com" },
{ "ip": "gateway3.example.com" }
],
"outboundAuthenticationPlan": {
"authUsername": "YOUR_SIP_USERNAME",
"authPassword": "YOUR_SIP_PASSWORD"
}
}
Double-check your username, password, and gateway addresses for typos, and confirm with your provider if any IP allowlisting or port restrictions apply. If the issue persists, please wait for a direct message from support to securely share your details for further troubleshooting.
Source: [SIP Trunking Guide](https://docs.vapi.ai/advanced/sip/sip-trunk)
Source:
- [SIP Trunking Guide](https://docs.vapi.ai/advanced/sip/sip-trunk)Gai
06/05/2025, 12:29 PMGai
06/05/2025, 12:29 PMGai
06/05/2025, 12:32 PMGai
06/05/2025, 2:33 PMVapi
06/06/2025, 12:52 AMGai
06/06/2025, 9:30 AMGai
06/06/2025, 9:30 AMGai
06/06/2025, 9:30 AMGai
06/06/2025, 10:26 AMGai
06/06/2025, 10:26 AMVapi
06/09/2025, 6:53 PM"outboundAuthenticationPlan": {
"authUsername": "BASIC_AUTH_USERNAME",
"authPassword": "YOUR_PASSWORD",
"sipRegisterPlan": {
"domain": "sip.example.com",
"username": "YOUR_CUSTOM_SIP_USERNAME",
"realm": "example.com"
}
}
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": "xxx Trunk",
"gateways": [{
"ip": "sip.xxx.com"
}],
"outboundLeadingPlusEnabled": true,
"outboundAuthenticationPlan": {
"authUsername": "YOUR_AUTH_USERNAME",
"authPassword": "YOUR_PASSWORD",
"sipRegisterPlan": {
"domain": "sip.xxx.com",
"username": "YOUR_SIP_USERNAME",
"realm": "xxx.com"
}
}
}'
The sipRegisterPlan is used when your SIP provider requires registration using SIP REGISTER messages, while the basic authUsername is used for call authentication even without registration.