defichk
05/22/2025, 2:10 PMVapi Support Bot
05/22/2025, 2:11 PMbash
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",
"gateways": [{ "ip": "your.sip.provider.com" }],
"outboundAuthenticationPlan": {
"authUsername": "YOUR_SIP_USERNAME",
"authPassword": "YOUR_SIP_PASSWORD"
}
}'
Sources:
- [Vapi SIP Trunking Documentation](https://docs.vapi.ai/advanced/sip/sip-trunk)
- [Vapi Zadarma Integration Guide](https://docs.vapi.ai/advanced/sip/zadarma)Kyle
05/22/2025, 3:11 PMNir S (CEO/Founder @Cloudonix)
05/22/2025, 8:22 PMSIP REGISTER
to remote providers, on in other words, it doesn't implement a full B2BUA scenario. This is why people that are using carriers with username/password combinations in most cases will have outbound calling no problem, but inbound calling won't always work.
What I've also seen are situations when VAPI will send out a challenge/reponse based SIP Auth
workflow, but will not populate the SIP Contact
header in a unique manner across multiple sessions, causing the remote SIP endpoint to simply drop the calls, as they encounter a signalling violation.
To resolve the issue above, @defichk if you would like to experiment, I'll be happy to try and configure your accounts on our SBC gateway, and see if that will resolve your VAPI connectivity issue.Vapi Support Bot
05/22/2025, 8:22 PMdefichk
05/23/2025, 11:43 AMVapi Support Bot
05/23/2025, 11:44 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 Trunk",
"gateways": [{ "ip": "your.sip.provider.com" }],
"outboundAuthenticationPlan": {
"authUsername": "YOUR_SIP_USERNAME",
"authPassword": "YOUR_SIP_PASSWORD"
}
}'
If your provider requires registration, this setup will not work. Consider using an SBC gateway if direct trunking is not possible.
Sources:
- [Vapi SIP Trunking Documentation](https://docs.vapi.ai/advanced/sip/sip-trunk)
- [Vapi Zadarma Integration Guide](https://docs.vapi.ai/advanced/sip/zadarma)Vapi Support Bot
05/23/2025, 11:44 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 Trunk",
"gateways": [{ "ip": "your.sip.provider.com" }],
"outboundAuthenticationPlan": {
"authUsername": "YOUR_SIP_USERNAME",
"authPassword": "YOUR_SIP_PASSWORD"
}
}'
If your provider requires registration, this setup will not work. Consider using an SBC gateway if direct trunking is not possible.
Sources:
- [Vapi SIP Trunking Documentation](https://docs.vapi.ai/advanced/sip/sip-trunk)
- [Vapi Zadarma Integration Guide](https://docs.vapi.ai/advanced/sip/zadarma)Kyle
05/24/2025, 3:28 AM🔵 07:55:42:681 Received Phone Number Call Status Update: {
"call_sid": "a51b9xxxe31fa",
"direction": "outbound",
"from": "+420xxx91",
"to": "+4207xxx9xx84",
"call_id": "d5d8b821-b0bb-123e-d695-02094b04633f",
"sip_status": 603,
"sip_reason": "Decline",
"call_status": "busy",
"account_sid": "b037xxxxc0281479",
"trace_id": "",
"fs_sip_address": "1x60",xxx
"api_base_url": "httpxxxxi/v1"
}