ʕ•ᴥ•ʔノ ♡
03/15/2025, 10:49 AMVapi Support Bot
03/15/2025, 10:50 AMbash
curl -X POST https://api.vapi.ai/credential \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"provider": "byo-sip-trunk",
"name": "BYOC Trunk",
"credentials": {
"username": "YourUsername",
"password": "YourPassword"
},
"gateways": [
{
"ip": "YourStaticIP",
"port": YourStaticPort,
"netmask": 32,
"inboundEnabled": true,
"outboundEnabled": true,
"outboundProtocol": "udp"
}
]
}'
2. Link Your Phone Number to the credential:
bash
curl -X POST https://api.vapi.ai/phone-number \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"provider": "byo-phone-number",
"number": "your_phone_number",
"credentialId": "credential_id_from_step_1"
}'
For authentication, you'll need to configure the outbound authentication plan with your username and password. If your provider requires SIP registration, you'll also need to include SIP register details like realm, username, and domain.
Let me know if you need any clarification on these steps! 😊
Sources:
- [Discord Thread 1341469652366266408](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1341469652366266408)
- [Discord Thread 1339952678150868992](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1339952678150868992)
- [Discord Thread 1334821142204121088](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334821142204121088)ʕ•ᴥ•ʔノ ♡
03/15/2025, 10:51 AMNir S (CEO/Founder @Cloudonix)
03/15/2025, 1:27 PMSIP REGISTER
before the SIP INVITE
- most "low cost" carriers require this functionality, this will not work.