Re: [asterisk-users] Asterisk temporary hangs when no internet connection

2008-05-19 Thread Loic DIDELOT
Hello,
sorry for dropping in so late but I encountered the same problems so I
started playing around with IPTABLES and DNS servers. 

For me it looks like asterisk has a problem because it seems to do
reverse dns lookups (PTR records). 

For me the following helped:
I installed a local dns recursor. I used the one from powerdns (apt-get
install pdns-recursor). Then I put 127.0.0.1 as only nameserver in
my /etc/resolv.conf. Next thing I did is telling my dns server to be
contain authoritative data for the in-addr.arpa zone. I added the
following line
auth-zones=in-addr.arpa=/etc/powerdns/zone-in-addr.arpa
to /etc/powerdns/recursor.conf and then created an empty
file /etc/powerdns/zone-in-addr.arpa.
Now things seem to work without internet.


I do not understand why a PBX is such dependent on internet (DNS)
connectivity. Maybe someone from the dev list can clear things up.

If I disable DNS lookups by some router/iptables magic asterisk cant
even do a normal reload.


Best regards,
Loic Didelot.



On Fri, 2008-04-11 at 13:49 -0500, Andres wrote:
 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
 
 
 
 ___
 -- 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
-- 
Loïc DIDELOT
MIXvoip S.a.
[EMAIL PROTECTED]
http://www.mixvoip.com


___
-- 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

Re: [asterisk-users] Asterisk temporary hangs when no internet connection

2008-05-19 Thread Eric Wieling
Seems like it would have been much simpler just to correct your 
/etc/hosts file.  Most systems check /etc/hosts before consulting DNS 
for IP and host information.

Loic DIDELOT wrote:
 Hello,
 sorry for dropping in so late but I encountered the same problems so I
 started playing around with IPTABLES and DNS servers. 
 
 For me it looks like asterisk has a problem because it seems to do
 reverse dns lookups (PTR records). 
 
 For me the following helped:
 I installed a local dns recursor. I used the one from powerdns (apt-get
 install pdns-recursor). Then I put 127.0.0.1 as only nameserver in
 my /etc/resolv.conf. Next thing I did is telling my dns server to be
 contain authoritative data for the in-addr.arpa zone. I added the
 following line
 auth-zones=in-addr.arpa=/etc/powerdns/zone-in-addr.arpa
 to /etc/powerdns/recursor.conf and then created an empty
 file /etc/powerdns/zone-in-addr.arpa.
 Now things seem to work without internet.
 
 
 I do not understand why a PBX is such dependent on internet (DNS)
 connectivity. Maybe someone from the dev list can clear things up.
 
 If I disable DNS lookups by some router/iptables magic asterisk cant
 even do a normal reload.
wide.


___
-- 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

[asterisk-users] Asterisk temporary hangs when no internet connection

2008-04-11 Thread Marius Muja
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!
___
-- 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

Re: [asterisk-users] Asterisk temporary hangs when no internet connection

2008-04-11 Thread Steven Kurylo
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


Re: [asterisk-users] Asterisk temporary hangs when no internet connection

2008-04-11 Thread Marius Muja
It is using a local DNS server.

On Fri, Apr 11, 2008 at 10:43 AM, Steven Kurylo [EMAIL PROTECTED]
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

Re: [asterisk-users] Asterisk temporary hangs when no internet connection

2008-04-11 Thread Eric Wieling
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 [EMAIL PROTECTED]
 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.

___
-- 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


Re: [asterisk-users] Asterisk temporary hangs when no internet connection

2008-04-11 Thread Andres
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



___
-- 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