BYO sip INTEGRATION
# support
j
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 . https://cdn.discordapp.com/attachments/1424022498915389540/1424022500198584401/Screen_Shot_2025-10-04_at_4.16.06_PM.png?ex=68e26fcd&is=68e11e4d&hm=40f883a8620d6b472b83e02320dc2358905ebcc56d0d8e7a1a6207b209dfb04c&
v
To proceed, associate your phone number with the SIP trunk credential you created by sending this POST request (replace placeholders with your actual values):
Copy code
bash
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](https://docs.vapi.ai/advanced/sip/sip-trunk)
@Vapi Support Bot
v
Next Step: Please confirm with your SIP provider that your trunk is assigned a unique SIP termination URI (not a shared one), as Vapi requires this for IP-based authentication to work reliably. If your provider cannot offer a dedicated URI, calls may not route correctly. Tip: Ask your provider for a customer-specific SIP domain or server address, then update your Vapi SIP trunk configuration with that value. If you already have a unique URI and still can't make calls, check your call logs in Vapi for specific error codes to help pinpoint the issue. Source: - [SIP Trunking How to integrate your SIP provider with Vapi](https://docs.vapi.ai/advanced/sip/sip-trunk)
j
i have still not been ableto establish a connection. i have created a physical sip trunk and linked apbx and firewall then tried to connect it to the sip trunk on vapi. still no luck. what is the problem ? @Vapi Support Bot
v
Thank you for the details so far. To help diagnose the issue, could you please check your Vapi call logs and share the specific error code or message shown for a failed call attempt? This will help pinpoint where the connection is failing and guide the next troubleshooting step. Tip: You can find call logs and error codes in the Vapi dashboard under the "Calls" section. Source: - [SIP Trunking How to integrate your SIP provider with Vapi](https://docs.vapi.ai/advanced/sip/sip-trunk)
j
there is no calls in the call logs @Vapi Support Bot
v
Since no calls are appearing in your Vapi call logs, please ask your SIP provider or network admin to run a SIP packet test (such as sending a SIP OPTIONS or INVITE to your Vapi SIP URI) and confirm that traffic is reaching the Vapi servers. Double-check that your firewall allows outbound SIP traffic to the Vapi IPs (
44.229.228.186/32
and
44.238.177.138/32
). If possible, share a screenshot of your SIP provider's routing configuration to verify the SIP URI is set correctly. This will help isolate whether the issue is with network routing or SIP configuration. Reference: [SIP Trunking How to integrate your SIP provider with Vapi](https://docs.vapi.ai/advanced/sip/sip-trunk) Source: - [SIP Trunking How to integrate your SIP provider with Vapi](https://docs.vapi.ai/advanced/sip/sip-trunk)
v
Message marked as helpful by @GIDEON! 🎉
j
@Vapi the traffic is reaching vapi server, the proivder showed it to me, however, i still cant connect the numbers to the agents, it seems the lines are busy and still no call logs. Please advise on what to do next
Is there any phone number we can reach for support in such cases ? Email support is taking forever and this issue has been present for more than a month. I need faster support please
@Vapi Support Bot
@Vapi Support Bot
v
Since SIP traffic is reaching Vapi but no calls appear in your logs, the next step is to capture a SIP packet trace (PCAP) from your SIP provider showing an INVITE to your Vapi SIP URI, then send this along with your configuration details to Vapi support for analysis. This will help identify if the INVITE is formatted or routed incorrectly. You can request a packet capture from your network admin and email it to support@vapi.ai with a description of your issue and your account details. Tip: Include your SIP trunk settings and a screenshot of your routing configuration for faster troubleshooting. Source: - [SIP Trunking How to integrate your SIP provider with Vapi](https://docs.vapi.ai/advanced/sip/sip-trunk)
j
how do i get a faster support @Vapi Support Bot
v
For the fastest support response, join the Vapi Discord community and post your issue in the
#support
channel for real-time assistance from the team and other developers:
[https://discord.com/invite/pUFNcf2WmH](https://discord.com/invite/pUFNcf2WmH) If you are an enterprise customer, use your dedicated support channel for priority handling. There is no phone support line listed; email support remains available at [support@vapi.ai](support@vapi.ai) for detailed cases. Source: - [Vapi Support Documentation](https://docs.vapi.ai/support)
c
Hi, to configure the SIP Trunk, please follow the documentation for whitelisting the IP addresses: 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:
Copy code
{
  "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.
j
i send an api request as you mentioned, and used my ip address in the first gateway ,and 203.0.113.10 for the secondgateway, but still the lione shows busy as ifit is not connected, i used the ip addressfrom my firewall, any suggestions ?
c
We apologize for the delay in responses lately. We are in process of making some changes to our workflow in how we handle support requests. The good news is that we are starting to get back on track of having a 48 hour response time and we would like to start cleaning up anything old. With that being said, just wanted to check in with you to see if you have made any progress or changes to your project since support has last reached out.
4 Views