After a certain period of time, roughly a week, all of my incoming calls will fail. Outgoing calls work fine. I’m using TrixBox 2.6.1 with Asterisk 1.4.20-1.
The only clue I have is the SIP Registry Status. When incoming calls work the SIP Registry State is ‘Registered’. When they fail, the SIP Registry State is ‘Auth. Sent’. Here is a screenshot:
On my firewall, I allow all traffic from the Teliax server (den.teliax.net) in on ports 5060 and 10,000-20,000 (TCP and UDP). I was told by them this is correct.
I realize a simple solution would be to write a script so Asterisk resets itself every morning at 3am or something. I assume this is very easy to do but my Linux knowledge is lacking.
Hopefully there is a better solution. Any help would be appreciated, I haven’t gotten anywhere contacting Teliax or TrixBox.
Name/username Host Dyn Nat ACL Port Status
teliax/mddubs 63.211.239.14 5060 Unmonitored
104/104 192.168.1.105 D N 5064 OK (20 ms)
103/103 192.168.1.105 D N 5063 OK (19 ms)
102/102 192.168.1.105 D N 5062 OK (20 ms)
101/101 192.168.1.105 D N 5061 OK (20 ms)
5 sip peers [Monitored: 4 online, 0 offline Unmonitored: 1 online, 0 offline]
in your sip.conf add lines to your [teliax] context that read:
qualify=yes
nat=yes
after that do a “SIP reload” and then, when you do “SIP show peers” you should see that it reads:
And you should have all the Statuses(stati?) be “OK (xx ms)”. The lack or active monitoring may very well be the issue because…
I think what you are running into here is a “STUN” issue. So, your Network will allow you to fire out calls because it establishes the link with your gateway and then fires the call though. But this is something of a one way door.
So possibly, the reason it’s not working the other way is that your Network gets sent this call from the Teliax server and it has no idea where to send it because the door is closed if you haven’t got STUN keeping a constant connection with the server! But, that’s just a crazy guess. Good luck!
Name/username Host Dyn Nat ACL Port Status
teliax/mddubs 63.211.239.14 N 5060 OK (47 ms)
104/104 192.168.1.105 D N 5064 OK (40 ms)
103/103 192.168.1.105 D N 5063 OK (16 ms)
102/102 192.168.1.105 D N 5062 OK (15 ms)
101/101 192.168.1.105 D N 5061 OK (15 ms)
5 sip peers [Monitored: 5 online, 0 offline Unmonitored: 0 online, 0 offline]
That ‘unmonitored’ status has always bothered me! I’ve reset asterisk and I’ll check it daily … if it fails, I’ll know after how long. I’ll update this thread with the results.