Adnan Arif
02/06/2026, 11:58 AMGreat Guy
02/07/2026, 10:41 AMAdnan Arif
02/07/2026, 10:53 AMGreat Guy
02/08/2026, 7:05 PMkyle
02/10/2026, 4:36 AMcurl -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": "CallGear Trunk",
"gateways": [{
"ip": "YOUR_CALLGEAR_SIP_SERVER",
"inboundEnabled": false
}],
"outboundAuthenticationPlan": {
"authUsername": "YOUR_SIP_USERNAME",
"authPassword": "YOUR_SIP_PASSWORD"
}
}'
Save the returned id (credentialId) for the next step.
4. Associate Phone Number with SIP Trunk
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": "CallGear Number",
"number": "YOUR_PHONE_NUMBER",
"numberE164CheckEnabled": false,
"credentialId": "YOUR_CREDENTIAL_ID"
}'
5. Test Your Setup
Once configured, you can make test calls through the Vapi dashboard or API.
Documentation
Full SIP Trunking guide: https://docs.vapi.ai/advanced/sip/sip-trunk
SIP integration overview: https://docs.vapi.ai/advanced/sip
Note: For inbound calls, you'll need to configure CallGear to forward calls to your Vapi SIP URI (format: {phoneNumber}@.sip.vapi.ai).
Let me know if you need help with any specific step or have questions about your CallGear configuration!