harsh-harlequin
harsh-harlequin6h ago

BYO sip INTEGRATION

I am trying to import phone numbers form my local sip provider. they have installeda physical sip inside my office, and they also installed a pabx and firewall, to allow the connection between the sip server to vapi server. i have created the sip trunk credentials on vapi using ip address not username and password, we have whitelisted the vapi ip addresses, but still cant call my agetns. please check below for the sip i created. can you guide me on how to make this connection ? do i need to send a request on postman to allow thiss connection or no need? please guide me step by step on how to do so .
No description
2 Replies
Vapi Support Bot
To proceed, associate your phone number with the SIP trunk credential you created by sending this POST request (replace placeholders with your actual values):
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": "Your Number Name",
"number": "YOUR_PHONE_NUMBER",
"numberE164CheckEnabled": false,
"credentialId": "YOUR_CREDENTIAL_ID"
}'
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": "Your Number Name",
"number": "YOUR_PHONE_NUMBER",
"numberE164CheckEnabled": false,
"credentialId": "YOUR_CREDENTIAL_ID"
}'
This step is required to link your number for call routing between your SIP server and Vapi. If calls still fail, check that your SIP provider supports IP-based authentication with a unique termination URI as required by Vapi documentation. Source: - SIP Trunking How to integrate your SIP provider with Vapi
⤵️ Mention @Vapi Support Bot for follow-ups 🐥
harsh-harlequin
harsh-harlequinOP5h ago
It is already associated , but still cant make the call
No description

Did you find this page helpful?