problem with SIP trunk
# support
j
Hi, my SIP trunk stopped working. I didnt change anything. I can register it with the regular softphone without any issues but it doesnt work in Vapi. Do you experience problems with your trunking? I can provide call log when it was successful and also when it wasnt. In addition my operators gateway monitor shows the number is not registered. Are there any sip logs available to check the reason?
Any comments? Is it possible at all to solve problems? Or if anything doesn't work one is in stuck and should look for other providers?
c
Hi, could you please provide a call id where you experienced this issue? We would like to review the logs to identify the cause.
j
Call ID from the test call: Successful outbound call from the SIP account: ef6d6973-143d-431f-a456-c2c5b44666a8 13 Aug 2025, 15:21 Successful inbound call for same SIP account in the past: 122d7b46-1479-48c1-b008-ecd52db866bb at 1 Aug 2025, 14:44 Detailed description of what happened: our SIP trunk stopped working. I didn't change anything. I can register it with the regular softphone without any issues but it doesn't work in Vapi. Do you experience problems with your trunking? I provided call logs when it was successful in the past. I dont have unsuccessful logs for inbound as they are not created. In addition my operators gateway monitor shows the phone number is not registered. Are there any sip logs available to check the reason? I can make outbound call and the SIP account registers once and places the successful outbound call. But it doesn't repeat the registration after the time is expired. We have experimented with the phone number canonical form, having +48xxxx and 48xxx and none work Expected behavior vs. actual behavior: please make it possible to receive calls via BYOL SIP account. It worked before.
any response? Why it takes so long?
c
Hi, sorry for the delayed response. The team is working on it and they'll get back to you shortly
j
ok, thank you
c
Please make sure your inbound gateway for the SIP trunk is separate from the outbound gateway and has the direct IP address of the domain instead of the resolved name. Here is an example of how your SIP trunk should look:
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
    }
  ]
}
Please reconfigure your SIP trunk to have these attributes if you don't already and perform some tests with it. Let us know if you encounter any issues
j
hi, I will try to limit it just to inbound only and let you know the result
I recreated SIP BYOL trunk configuring as inbound only and then re-imported the trunk in the section Phone Numbers then assigned the assistant. But id didnt help. I still am not able to receive the calls. My sip provider's registrar doesnt see the number is registered. Btw: why would the registration result depend on the call direction? I cant register twice, once for inbound and once for outbound. Anyway it worked previously.
could you guide me how to setup BYOL SIP gateway sip registration area? I left this empty before but perhapos this is the problem. I know entered the domain of our SIP registrar but it didnt help. Still the SIP phone number is not registered
c
Hi, you can refer to this Let me know if you face any issues.
j
I dont use Plivo, I use the SIP accunt provisioned by our local partner, should I use Plivo?
I thought it is possible to apply BYOL with SIP, is it? My SIP still doesnt work. But it did previously. It stopped working about 2 weeks ago
Plivo is not free, I can use Twilio. It works but I wisked to make use of our SIP accounts we own. Can you tell me why it doesnt work? What is the error? Please provide SIP logs I could refere and check what the problem is
c
Pivilo was just for reference. If you wish I can send you the entire Twilio SIP docs.
j
No, my Twilio SIP is working fine. I have only the problem with BYOL SIP, can you help with it?
I think my config is correct. It did work previuously. Something has changed on your siode
Please check it and tell me where is the problem
Hi Kyle or Aditya, looks the issue is solved. I dont know why but it looks PING option was crucial here. After turning ping on it started working. Thank you
4 Views