This is a very premature message and I plan to have logs tomorrow when I can reduplicate the issue.
When I try to call my DID from a Cell, I sometimes get “The number is not in service, etc”.
If I call immediately back, it flows through to the IVR properly. (Or if I make an Outbound call on my SIP).
Seems like it fails once, then it reestablishes a connection and it’s good to go.
I know this can be a variety of issues however Im hoping someone has a few suggestions to inspect.
I am using PFSense, Ports are Opened as required, DHCP to FreePBX with a DHCP Reservation in place. Incoming/Outgoing have no issues once something gets re-established (Seems that from earlier testing everything is fine when the Asterisk log stays “Setting global variable ‘SIPDOMAIN’ to ‘10.10.10.14’” which is my FreePBX IP.
Hopefully someone has some suggestions until I can post some logs.
We’ve heard reports of this from time to time. The typical cause is that your PBX connection to your ITSP is “falling asleep”. This can be because you aren’t polling the provider often enough, or that your firewall isn’t configured to meet the needs of your PBX. The incoming call “wakes” the connection up and it stays up until it times out again.
There are many threads here that talk about this. The solution is usually a combination of changing the keep-alive duration on the trunk settings and adjusting your timeouts on the firewall/router. The router setting is (IIRC) the one ITSPs prefer, since it doesn’t increase the workload on the SIP connection.
Another thing to look through the logs for is a message about missing critical packets. This is often a symptom of a similar problem and is always a firewall/router config problem.
Thanks for replying back. This makes sense. I am quite new with FreePBX. In regards to the IIRC setting I should be inspecting for, is this on the FreePBX Firewall or PFSense? (Sorry for the silly question).
I’ll keep digging on the forums as well but any insights are appreciated.
I’ve created a second SIP Trunk and fixed up those tags.
Flowroute recommends Whitelisting 184.108.40.206/28 as an example.
So you are indicating I should change this to PJSip?
Edit - I tried calling myself 4 times - everytime worked (did not answer), 5th time caused the Rejecting unknown SIP again). :-/ (Try calling my other DID - fails on the first attempt - sometimes works on the 2nd).
As we suspected, you need to convert this to a PJ-SIP interface. Go to the Wiki (or look back through the Forum) and see how to set up FlowRoute using a range of IP addresses. The method you are using now (using Chan-SIP) isn’t going to work unless you are willing to set up dozens of almost identical inbound trunks (one per IP address).
Whitelist the addresses in the firewall and add them to the PJ-SIP configuration and you should be closer.