Intermittent inbound failure

First thread. Excuse any breech of etiquette or omitting of accepted nomenclature.

FreePBX 14.0.3.6
PBX Firmware:12.7.5-1807-1.sng7
PBX Service Pack:1.0.0.0

Having intermittent call failure on 2 DID’s inbound. Many times it works fine.

PBX is cloud hosted

I believe that the Inbound Edge Strategy or “PoP” SIP servers for load balancing are not consistently resolving to my PBX. But I am not sure…

I have white listed all of the proposed PoP subnets from FlowRoute in the sysadmin module:

147.75.65.192/28
147.75.60.160/28
34.226.36.32/28
34.210.91.112/28

I have also trusted them within the firewall in FreePBX module in the appropriate zone. (Note: this is the only firewall.)

I feel like the problem could exist withing the srv lookup that they are using with their Pop servers. They don’t offer a great deal of elaboration on trunk configuration:

https://support.flowroute.com/SIP_Trunking_and_Voice/PBX__Configuration_Guides/Asterisk/Configure_Asterisk_13

Checking in my Fail2Ban log, I see that:

[2018-08-10 10:52:45] WARNING[20377][C-00000166] Ext. s: "Rejecting unknown SIP connection from 34.210.91.114 (This is one of the whitelisted ip addresses mentioned earlier)

That address was specifically allowed through the firewall in the trusted traffic under the 34.210.91.112/28 addition.

Also, here is the output from a call where I received "the number you have dialed is not in service."

== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
> 0x7efc50046d90 – Strict RTP learning after remote address set to: 74.1 20.93.196:21466
– Executing [12082058780@from-sip-external:1] NoOp(“SIP/fl.gg-000001d9”, “R eceived incoming SIP connection from unknown peer to 12082058780”) in new stack
– Executing [12082058780@from-sip-external:2] Set(“SIP/fl.gg-000001d9”, “DI D=12082058780”) in new stack
– Executing [12082058780@from-sip-external:3] Goto(“SIP/fl.gg-000001d9”, “s ,1”) in new stack
– Goto (from-sip-external,s,1)
– Executing [s@from-sip-external:1] GotoIf(“SIP/fl.gg-000001d9”, “1?setlang uage:checkanon”) in new stack
– Goto (from-sip-external,s,2)
– Executing [s@from-sip-external:2] Set(“SIP/fl.gg-000001d9”, “CHANNEL(lang uage)=en”) in new stack
– Executing [s@from-sip-external:3] GotoIf(“SIP/fl.gg-000001d9”, “1?noanony mous”) in new stack
– Goto (from-sip-external,s,5)
– Executing [s@from-sip-external:5] Set(“SIP/fl.gg-000001d9”, “TIMEOUT(abso lute)=15”) in new stack
– Channel will hangup at 2018-08-10 11:34:47.685 MDT.
– Executing [s@from-sip-external:6] Log(“SIP/fl.gg-000001d9”, "WARNING,“Rej ecting unknown SIP connection from 34.210.91.114"”) in new stack
[2018-08-10 11:34:32] WARNING[25179][C-00000168]: Ext. s:6 @ from-sip-external: "Rejecting unknown SIP connection from 34.210.91.114"
– Executing [s@from-sip-external:7] Answer(“SIP/fl.gg-000001d9”, “”) in new stack
> 0x7efc50046d90 – Strict RTP switching to RTP target address 74.120.93. 196:21466 as source
– Executing [s@from-sip-external:8] Wait(“SIP/fl.gg-000001d9”, “2”) in new stack
– Executing [s@from-sip-external:9] Playback(“SIP/fl.gg-000001d9”, “ss-nose rvice”) in new stack
– <SIP/fl.gg-000001d9> Playing ‘ss-noservice.ulaw’ (language ‘en’)
> 0x7efc50046d90 – Strict RTP learning complete - Locking on source addr ess 74.120.93.196:21466
– Executing [h@from-sip-external:1] Hangup(“SIP/fl.gg-000001d9”, “”) in new stack
== Spawn extension (from-sip-external, h, 1) exited non-zero on ‘SIP/fl.gg-000 001d9’

If I have allowed the traffic through the firewall, and it is white listed, why would it block the IP???

Was hoping someone would offer helpful suggestions. Hint’s on configuring Flowroute trunks with srv lookup?

Thank you

I wouldn’t rely on SRV working reliably with chan_sip trunks. You will probably have better luck using Asterisk 15 and PJSIP trunks, or you can create a separate chan_sip trunk for all of the provider’s signalling hosts.

1 Like

I will give that a shot. I saw that was what some people were doing.

This is FlowRoute’s note:

IMPORTANT: Asterisk for Flowroute with New PoPs

If you are taking advantage of our new Points of Presence (PoPs), make sure to do the following:

  1. Update all instances of sip.flowroute.com to this format: {your_preferred_pop}.sip.flowroute.com where {your_preferred_pop} might be “us-west-wa” for example. The new value will then be us-west-wa.sip.flowroute.com .

  2. Add the IP addresses associated with your preferred PoP to your list of [flowroute-trunk] settings below. To find this information quickly, run the following from a command shell window:

dig {your_preferred_pop}.sip.flowroute.com +short

Knowing that Chan_SIP will lock up if you try to change it’s IP address without a restart, I think you could lean on this a little harder. Your error is because your trunks to not specify that the address you are trying to use has an entry. PJ-SIP trunks can be configured to use multiple addresses, and I believe that it can also be configured to use a range of address (having never needed either, though, means that you’ll need corroboration or experimentation to get that squared away).

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.