maZe
09/16/2025, 8:34 PMVapi Support Bot
09/16/2025, 8:35 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": "Sipgate Trunk",
"gateways": [{ "ip": "sipgate.de" }],
"outboundAuthenticationPlan": {
"authUsername": "YOUR_SIPGATE_USERNAME",
"authPassword": "YOUR_SIPGATE_PASSWORD"
}
}'
Ensure the username/password match your Sipgate outbound credentials exactly.
[Reference: Vapi SIP Trunk Setup](https://docs.vapi.ai/advanced/sip/sip-trunk#setup-process)
Source:
- [SIP Trunking | Vapi Documentation](https://docs.vapi.ai/advanced/sip/sip-trunk)Chiranjeet Mishra
09/17/2025, 5:42 PMoutboundLeadingPlusEnabled parameter is set correctly
- The gateway IP/hostname is properly configured
- The inboundEnabled parameter matches your needs
3. The "403 Forbidden" error typically indicates an authentication or authorization issue. Double-check:
- Your SIP trunk credentials
- IP authentication settings in Sipgate
- That your Sipgate account has outbound calling permissions enabled
You may want to recreate your SIP trunk credential with this format:
curl -X POST https://api.vapi.ai/credential \-H "Content-Type: application/json" \-H "Authorization: Bearer YOUR_VAPI_API_KEY" \-d '{ "provider": "byo-sip-trunk", "name": "Sipgate Trunk", "gateways": [ { "ip": "YOUR_SIPGATE_GATEWAY", "inboundEnabled": true } ], "outboundLeadingPlusEnabled": true}'
Let us know if further assistance is needed.