Marius Muja
2008-Apr-11 17:16 UTC
[asterisk-users] Asterisk temporary hangs when no internet connection
Hello all, I have the following problem: if there is a temporary loss of Internet connectivity, the asterisk server 'hangs' if it has external SIP trunks configured. By hanging I mean that any calls between the local extensions and any calls to the voicemail extension stop working. Everything works fine again when the internet connectivity returns (I tested this by removing and reinserting the network cable from the cable modem). My guess is that the asterisk server tries resolving the names of the SIP providers when it tries to re-register to them and because there is no internet connectivity it hangs there for a while. However in that time all the local calls to the asterisk server stop working. Has anybody else encountered this problem? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080411/36625526/attachment.htm
Steven Kurylo
2008-Apr-11 17:43 UTC
[asterisk-users] Asterisk temporary hangs when no internet connection
Marius Muja wrote:> My guess is that the asterisk server tries resolving the names of the > SIP providers when it tries to re-register to them and because there > is no internet connectivity it hangs there for a while. However in > that time all the local calls to the asterisk server stop working.Try using a local DNS server. Sounds like its waiting on DNS lookups...
Marius Muja
2008-Apr-11 18:31 UTC
[asterisk-users] Asterisk temporary hangs when no internet connection
It is using a local DNS server. On Fri, Apr 11, 2008 at 10:43 AM, Steven Kurylo <steven.kurylo at aviawest.com> wrote:> Marius Muja wrote: > > My guess is that the asterisk server tries resolving the names of the > > SIP providers when it tries to re-register to them and because there > > is no internet connectivity it hangs there for a while. However in > > that time all the local calls to the asterisk server stop working. > Try using a local DNS server. Sounds like its waiting on DNS lookups... > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080411/4ebf4566/attachment.htm
Eric Wieling
2008-Apr-11 18:34 UTC
[asterisk-users] Asterisk temporary hangs when no internet connection
This is a very common issue with Asterisk. There is no good fix, but if you make sure ALL IP addresses of the server are listed in /etc/hosts on the server it may help. Marius Muja wrote:> It is using a local DNS server. > > On Fri, Apr 11, 2008 at 10:43 AM, Steven Kurylo <steven.kurylo at aviawest.com> > wrote: > >> Marius Muja wrote: >>> My guess is that the asterisk server tries resolving the names of the >>> SIP providers when it tries to re-register to them and because there >>> is no internet connectivity it hangs there for a while. However in >>> that time all the local calls to the asterisk server stop working. >> Try using a local DNS server. Sounds like its waiting on DNS lookups... >> >> _______________________________________________ >> -- Bandwidth and Colocation Provided by http://www.api-digital.com -- >> >> asterisk-users mailing list >> To UNSUBSCRIBE or update options visit: >> http://lists.digium.com/mailman/listinfo/asterisk-users >> > > > ------------------------------------------------------------------------ > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-- Consulting for Asterisk, Polycom, Sangoma, Digium, Cisco, LAN, WAN, QoS, T-1, PRI, Frame Relay, Linux, and network design. Based near Birmingham, AL. Now accepting clients worldwide.
Andres
2008-Apr-11 18:49 UTC
[asterisk-users] Asterisk temporary hangs when no internet connection
Marius Muja wrote:> Hello all, > > I have the following problem: if there is a temporary loss of Internet > connectivity, the asterisk server 'hangs' if it has external SIP > trunks configured. By hanging I mean that any calls between the local > extensions and any calls to the voicemail extension stop working. > Everything works fine again when the internet connectivity returns (I > tested this by removing and reinserting the network cable from the > cable modem). > > My guess is that the asterisk server tries resolving the names of the > SIP providers when it tries to re-register to them and because there > is no internet connectivity it hangs there for a while. However in > that time all the local calls to the asterisk server stop working. > > Has anybody else encountered this problem?Yes, this is a common issue. A workaround is to use IP Addresses or enter hostnames manually in /etc/hosts Andres http://www.neuroredes.com> > Thanks! > > >------------------------------------------------------------------------ > >_______________________________________________ >-- Bandwidth and Colocation Provided by http://www.api-digital.com -- > >asterisk-users mailing list >To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >