FreePBX inbound call issue



  • Hi all,

    First off, I'm not super good with PBX stuff. We're using an older system which is soon to be upgraded. However, last week our trunk provider informed us that we needed to swap the IP for our inbound/outbound config. I did the swap (as far as I can tell the only place this IP is listed is under our PEER section for trunks and no other config settings were changed - just the new IP), called out and in and all seemed well. Here we are a few days later and my OUTBOUND calling works 100% of the time, however my INBOUND now works maybe 20% of the time - randomly. The rest of the time I get a busy signal when calling in. Trunk provider is literally zero help so... what could be causing this?

    Update: Another oddity.. if I call OUT to someone, it appears to fix the ability to call IN for a short duration (5-10 mins)



  • @samsmart84 no clue, but likely your provider. If it was your firewall/NAT you should never get inbound calls.



  • @samsmart84 said in FreePBX inbound call issue:

    Update: Another oddity.. if I call OUT to someone, it appears to fix the ability to call IN for a short duration (5-10 mins)

    Oh, that changes my answer. The problem is your firewall/NAT setup.



  • We would need a lot more detail to actually troubleshoot this.

    But, I am very confident that you need to look at your firewall settings.

    If you are changing IP addresses, then you are likely not using registration for trunk authentication.

    You are likely using IP authentication. This means that your PBX is simply open to anything coming from that IP.

    Your firewall probably doesn't know about this change. So nothing is being allowed in until you make an outbound call and then the IP is getting allowed for established/related connections.



  • @jaredbusch said in FreePBX inbound call issue:

    @samsmart84 no clue, but likely your provider. If it was your firewall/NAT you should never get inbound calls.

    I agree, provider is pretty likely. Maybe they have more than one entry for you in their system and four out of five times they are hitting the wrong IP address for you.

    Are you registered with them as an IP or a hostname, perchance?



  • @jaredbusch said in FreePBX inbound call issue:

    @samsmart84 said in FreePBX inbound call issue:

    Update: Another oddity.. if I call OUT to someone, it appears to fix the ability to call IN for a short duration (5-10 mins)

    Oh, that changes my answer. The problem is your firewall/NAT setup.

    Or a registration one. What if registration is timing out, but calling out first is triggering the registration and if no calls are made it expires?



  • Assuming this is Asterisk (I think that was said) and that you are using chan_sip (since you said this is an older system, this seems safe), then maybe do...

    asterisk -r
    

    And then do a ...

    sip show peers
    

    And check the status of the trunks and see how they look when you call out. Then watch them with subsequent sip show peers to see if they change. If they deregister and then the incoming calls don't work, that's likely a registration issue. If not, more likely a firewall one.



  • Our provider uses our IP for authentication so no registration settings are configuring on the PBX side. They updated their IP configuration and sent us an email saying we needed to update it on our end. Once that was done, I let them know that the IP had been changed so they could remove the old IP from our config on their end. I've talked with them a little this morning and they have told me that everything is set correctly on their end.



  • Worth watching Asterisk and the firewall to see if when their calls fail on inbound if there is any traffic going to you whatsoever. If Asterisk sees it but has an issue, that means that we can rule out network issues or provider issues and it is something with the PBX. But my guess is that the call never gets to Asterisk at all.



  • For the firewall side, the PBX is just running through an old Linksys router/Cable modem setup. I've checked through the router and modem and can't find any references to the trunk IP, just the routes from our static IP to the internal PBX IP. What could I be missing there?



  • @samsmart84 said in FreePBX inbound call issue:

    For the firewall side, the PBX is just running through an old Linksys router/Cable modem setup. I've checked through the router and modem and can't find any references to the trunk IP, just the routes from our static IP to the internal PBX IP. What could I be missing there?

    Has it been rebooted since the change?



  • Yeah the router has been rebooted 2-3 times today. Trunk provider suggested that too - I've done reboots on it, the PBX and the gateway.

    I did the "sip show peers" command and I only see the new IP in the list. Watched a call out and a call in (that worked right after) and everything looked in order as far I could tell.



  • @samsmart84 said in FreePBX inbound call issue:

    For the firewall side, the PBX is just running through an old Linksys router/Cable modem setup. I've checked through the router and modem and can't find any references to the trunk IP, just the routes from our static IP to the internal PBX IP. What could I be missing there?

    Unlikely that something is wrong there. It is possible that SIP-ALG is activated somewhere and causing an issue, but this would have been expected to have already been an issue before the change if this was the case.

    We don't expect that the firewall is set up wrong, only that it might be "confused" for some reason. Try restarting it. But take a peek to see if any ALG settings are on in there, and definitely set up the STUN settings on your phones.



  • @samsmart84 said in FreePBX inbound call issue:

    I did the "sip show peers" command and I only see the new IP in the list. Watched a call out and a call in (that worked right after) and everything looked in order as far I could tell.

    It's watching it over time that might be telling.



  • Looks like when the call goes to a busy signal that it's indeed not hitting the PBX as I get zero incoming call info in Asterisk

    I don't see any SIP and/or ALG type settings on the router. It's a Linksys WRT54G running Tomato 1.28



  • That's a start. I'd check the firewall and see if it logs any traffic when a call comes in from the trunk provider.



  • @samsmart84 said in FreePBX inbound call issue:

    It's a Linksys WRT54G running Tomato 1.28

    /sigh



  • @jaredbusch

    Not my doing, on my list to upgrade/replace.. 🙂



  • @samsmart84 said in FreePBX inbound call issue:

    @jaredbusch

    Not my doing, on my list to upgrade/replace.. 🙂

    Ubiquiti ER-L

    $95, excellent quality.



  • Just noticed a line on Asterisk that says -

    Got SIP Response 486 "Busy Here" back from <trunk IP>



  • @samsmart84 said in FreePBX inbound call issue:

    Just noticed a line on Asterisk that says -

    Got SIP Response 486 "Busy Here" back from <trunk IP>

    Does that come up reliably when an incoming call has the problem that you mention?



  • @scottalanmiller said in FreePBX inbound call issue:

    @samsmart84 said in FreePBX inbound call issue:

    Just noticed a line on Asterisk that says -

    Got SIP Response 486 "Busy Here" back from <trunk IP>

    Does that come up reliably when an incoming call has the problem that you mention?

    That's the first one I've seen go through.. underneath that it has a few lines stating everyone is busy/congested at this time, dial failed due to trunk reporting busy, etc.

    Update: Looks like that was an outgoing call. Incoming calls are going through right now as people keep calling out, which fixes the issue for a bit as stated before.



  • Alright I'm tired of dinking with this old equipment. My primary network is running on a Sophos SG 230 connected to fiber. No more Linksys, no more Comcast! If I'm going to fix this I might as well do it right.



  • @samsmart84 said in FreePBX inbound call issue:

    Alright I'm tired of dinking with this old equipment. My primary network is running on a Sophos SG 230 connected to fiber. No more Linksys, no more Comcast! If I'm going to fix this I might as well do it right.

    We have great luck with Ubiquiti gear. Fraction of the cost of Sophos and I dare say, better quality.



  • @scottalanmiller said in FreePBX inbound call issue:

    @samsmart84 said in FreePBX inbound call issue:

    Alright I'm tired of dinking with this old equipment. My primary network is running on a Sophos SG 230 connected to fiber. No more Linksys, no more Comcast! If I'm going to fix this I might as well do it right.

    We have great luck with Ubiquiti gear. Fraction of the cost of Sophos and I dare say, better quality.

    I love Ubiquiti stuff. I built out our WiFi and our IP camera system using all Ubiquiti gear. Awesome quality and reliability for the cost.



  • I will say.. I like the Sophos box, but I hate the GUI and how "proprietary" everything feels. It's difficult to navigate and determine how to properly open ports, etc. for this to work. Still no outbound or inbound calling working.



  • So made some progress.. If I call OUT now to my cell my cell will see it. There is no ring from the internal phone and once connected there is zero audio. Still cannot call IN.



  • OKAY. So.. we are back to the original problem but I have fully migrated the PBX to the newer infrastructure PBX > Sophos UTM > Fiber vs PBX > Linksys router > Comcast Business Modem

    I can call out, I have audio, but I can only call in for a short duration AFTER an outbound call is made.



  • @samsmart84 okay, so this confirms shit is just fucked up.

    Ok. The hard part here is making sure you have no outbound calls.

    Then when you make an inbound call monitor the CLI

    asterisk -rvvvvv

    And then call in.



  • @samsmart84 said in FreePBX inbound call issue:

    I will say.. I like the Sophos box, but I hate the GUI and how "proprietary" everything feels. It's difficult to navigate and determine how to properly open ports, etc. for this to work. Still no outbound or inbound calling working.

    Check the price difference and see if you still like it 😉


Log in to reply