equal-jade
equal-jade3d ago

VAPI public IP address

Dear VAPI Team, I use a SIP trunk from a VoIP provider for my number and would like incoming calls to be routed directly to my agent in VAPI. Please provide me with the public IP address your VAPI SIP trunk uses for my account so I can register it as an approved destination with my VoIP provider. Thank you for your support. Best regards
2 Replies
equal-jade
equal-jadeOP2d ago
Would you please respond to my inquiry.
Shubham Bajaj
Shubham Bajaj23h ago
Hi, to configure the SIP Trunk, please follow the documentation for whitelisting the IP addresses: https://docs.vapi.ai/advanced/sip/sip-trunk Then use this template as a guide to configuring both inbound and outbound gateways. The inbound gateway will need a static IP address and the outbound gateway will use the resolved domain name using UDP protocol:
{
"provider": "byo-sip-trunk",
"name": "My SIP Trunk",
"gateways": [
{
"ip": "sip.provider.com",
"port": 5060,
"outboundEnabled": true,
"inboundEnabled": false,
"outboundProtocol": "udp"
},
{
"ip": "203.0.113.10",
"port": 5060,
"outboundEnabled": false,
"inboundEnabled": true
}
]
}
{
"provider": "byo-sip-trunk",
"name": "My SIP Trunk",
"gateways": [
{
"ip": "sip.provider.com",
"port": 5060,
"outboundEnabled": true,
"inboundEnabled": false,
"outboundProtocol": "udp"
},
{
"ip": "203.0.113.10",
"port": 5060,
"outboundEnabled": false,
"inboundEnabled": true
}
]
}
Once you have configured the SIP trunk, you will receive a value for credentialId. Save that and use it for the next step of assigning the SIP trunk to a phone number, as that is a required value for setting up the phone number. If you encounter any issues with the setup, please feel free to reach out.

Did you find this page helpful?