cloudy-cyan
cloudy-cyan5h ago

VAPI and trunk SIP

I havea sip proxy/server, it's possible to connecte vapi on my VOIP server ? i dont understand how it's work thanks for your help
3 Replies
Vapi Support Bot
Yes, you can connect Vapi to your own SIP proxy/server using the "Custom BYO SIP Trunk" option. Here’s a quick example of how to create a SIP trunk credential in Vapi (replace the placeholders with your actual SIP server details):
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": "My SIP Trunk",
"gateways": [{ "ip": "YOUR_SIP_SERVER_ADDRESS", "inboundEnabled": false }],
"outboundAuthenticationPlan": {
"authUsername": "YOUR_SIP_USERNAME",
"authPassword": "YOUR_SIP_PASSWORD"
}
}'
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": "My SIP Trunk",
"gateways": [{ "ip": "YOUR_SIP_SERVER_ADDRESS", "inboundEnabled": false }],
"outboundAuthenticationPlan": {
"authUsername": "YOUR_SIP_USERNAME",
"authPassword": "YOUR_SIP_PASSWORD"
}
}'
Gather your SIP server address and credentials, then use this API call to connect Vapi to your VOIP server.
For more details, see the Vapi SIP Trunking guide. Source: - SIP Trunking | Vapi Documentation
⤵️ Mention @Vapi Support Bot for follow-ups 🐥
cloudy-cyan
cloudy-cyanOP4h ago
ok thank, but if i used this it's possible to use for inbound callto vapi ?
Duckie
Duckie4h ago
Message marked as helpful by @barto_95 | 🇵🇹! 🎉

Did you find this page helpful?