Originally posted on Asterisk General by someone who should know better.
[quote=“gnu”]Hi, I have a DID
my provider has many Origination IP’s that means the “traffic from my DID” can come from different public IP’s.
I have configured my sip.conf with all those IP, each [context] has qualify = yes, I did that to I monitor the status (if Reachable or Not).
Well, the case is that, when the call comes from an IP that has the status REACHABLE the call pass well. Everything work fine BUT sometimes I see calls coming from the IP that is reported as UNREACHABLE in my asterisk sip show peers, when that happen the calls doesn’t pass because it says
The timeout isn’t happening because it is reported as unreachable, but because it is unreachable, i.e. both symptoms have a common cause rather than one being the cause of the other.
The chances are that routing it to the other address used by the ITSP will not work because the SIP user agent at that address will not know what to do with the response. It is unlikely that the different worker machines at the ITSP are prepared to act as proxies, and particularly so for responses.
You need to find out what is wrong with your network, or firewall, and fix that.
Some possibilities are that the firewall needs regular traffic to keep a rule active or that the firewall has been configured to reject outgoing packets to certain port number ranges.