My Asterisk server (with PSTN connectivity) stopped working today for 3 hours while the office Internet connection was down. Why is this and how can I avoid this issue? Has it happened to anybody else before? As soon as Internet was restored Asterisk started working again.
Since this was at a remote office I was not able to troubleshoot Asterisk and get a better idea of what went wrong. Asterisk would accept calls from the PSTN but go into voicemail immediately because (presummably) the SIP phones were unreachable. However the local LAN was working fine and desktop PCs could ping Asterisk.
I’ve had problems a long time ago when my DNS server was down and Asterisk stopped accepting calls. But then it never happened again.
That’s pretty goofy. It’s like when your car battery goes dead and your toilet won’t flush.
I’d disconnect your internet connection after hours and troubleshoot the system. Swap out your router if you can and see if it takes the problem with it.
were the phones using STUN? If the phones were using STUN, then they were sending SDPs of the external IP, and it was all going thru because the router was allowing loopback connections (lan host connects to wan IP, which has a nat mapping, so connection is allowed). Make sure stun is off and watch some sip debugs…
I?ve got the same problem ? when the internet is down the asterisk server still works and accepts pstn calls but none of the phones work. The internet is connected to an isa 2004 server [ip 1.2.3.4] and that?s the address that the asterisk has its default gateway. The phones and asterisk are all on the same network and subnet so the internet being down or even the isa server should not matter but it does.
Ive got the same problem - when the internet is down the asterisk server still works and accepts pstn calls but none of the phones work. The internet is connected to an isa 2004 server [ip 1.2.3.4] and thats the address that the asterisk has its default gateway. The phones and asterisk are all on the same network and subnet so the internet being down or even the isa server should not matter but it does.
[quote=“kheston”]That’s pretty goofy. It’s like when your car battery goes dead and your toilet won’t flush.
I’d disconnect your internet connection after hours and troubleshoot the system. Swap out your router if you can and see if it takes the problem with it.[/quote]
My car battery did die and my toilet didn’t flush, but I never connected it to asterisk not working - thanks for the tip!
I would take a look at DNS. If your Asterisk server is using external DNS servers, it could cause it to hang if it can’t resolve an address.