Ivan
08/06/2025, 11:21 PMVapi Support Bot
08/06/2025, 11:23 PMgateways field uses the exact Twilio Termination SIP URI (not just the trunk domain). For example, your request body should look like this:
json
{
"provider": "byo-sip-trunk",
"name": "Twilio Trunk",
"gateways": [{ "ip": "your-trunk-termination.sip.twilio.com" }],
"outboundLeadingPlusEnabled": true
}
Make sure your Twilio trunk is active and that Vapi's IPs (44.229.228.186, 44.238.177.138) are whitelisted in Twilio as required by the documentation.
[See full guide](https://docs.vapi.ai/advanced/sip/twilio)
Source:
- [Twilio SIP Integration](https://docs.vapi.ai/advanced/sip/twilio)Ivan
08/06/2025, 11:37 PMIvan
08/07/2025, 12:12 AMChiranjeet Mishra
08/08/2025, 4:17 AMPhone Numbers page
- Or through the API request to the /credential endpoint (like you are currently doing) and use the IP address of the domain instead of the resolved name
If you continue to encounter errors when adding the SIP, please let us know and we will be more than happy to help you.