Re: [asterisk-users] Losing local SIP phones when internet goes down?

2010-09-24 Thread Gopalakrishnan A.N
Still I have the connection loss when internet goes down, I have to restart the Asterisk machine or need to remove the VoIP trunk accessing internet... DNSmasq is the only option by losing the connection when internet goes down...is there any other way... Thanks On Fri, Feb 12, 2010 at 4:20 AM,

Re: [asterisk-users] Losing local SIP phones when internet goes down?

2010-09-24 Thread Zeeshan Zakaria
Its a long and old thread, haven't read it all, but just to let you know this happens when there is no reply from the DNS. So change DNS or install it locally on your asterisk server. At least caching name server should be installed. Zeeshan A Zakaria -- www.ilovetovoip.com On 2010-09-24 1:51

Re: [asterisk-users] Losing local SIP phones when internet goes down?

2010-09-24 Thread Gopalakrishnan A.N
Yes I read the one more thread http://lists.digium.com/pipermail/asterisk-users/2010-February/244256.html also.. Thanks for your comments...:) On Fri, Sep 24, 2010 at 11:27 PM, Zeeshan Zakaria zisha...@gmail.comwrote: Its a long and old thread, haven't read it all, but just to let you know

Re: [asterisk-users] Losing local SIP phones when internet goes down?

2010-02-11 Thread Matt Riddell
On 9/02/10 12:59 PM, Tilghman Lesher wrote: add to the top of /etc/resolv.conf nameserver 127.0.0.1 If you're using DHCP on any of your interfaces, you'll need to configure dhclient (or whatever dhcp client you're using) to prepend in the configuration with (e.g. /etc/dhcp3/dhclient.conf):

Re: [asterisk-users] Losing local SIP phones when internet goes down?

2010-02-08 Thread Matt Riddell
On 6/02/10 4:06 AM, Dave Cotton wrote: On 05/02/10 16:01, Jeff LaCoursiere wrote: On Fri, 5 Feb 2010, Vinícius Fontes wrote: I solved similar issues by setting srvlookup=no, having bind running locally and just the line nameserver 127.0.0.1 on /etc/resolv.conf. Your local bind is what

Re: [asterisk-users] Losing local SIP phones when internet goes down?

2010-02-07 Thread sean darcy
Nikhil Nair wrote: Hi, I'm getting some strange behaviour on Asterisk 1.4 running on Debian Stable (Lenny). I suspect it's something to do with my setup, rather than a bug, but I'm struggling to see it, and would appreciate any input. Thanks for posting this. And for persistently

Re: [asterisk-users] Losing local SIP phones when internet goes down?

2010-02-07 Thread Mark Hulber
I have the same problem. I have asterisk on the public internet and other ips on the private lan. When the internet goes down my private asterisk network is compromised. My thought is that it has something to do with the ports/ips on which asterisk is trying to communicate. It may be a

Re: [asterisk-users] Losing local SIP phones when internet goes down?

2010-02-07 Thread Danny Dias
-users] Losing local SIP phones when internet goesdown? To: asterisk-users@lists.digium.com Message-ID: hkmp6q$e4...@ger.gmane.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Nikhil Nair wrote: Hi, I'm getting some strange behaviour on Asterisk 1.4 running

Re: [asterisk-users] Losing local SIP phones when internet goes down?

2010-02-05 Thread Randy R
On Fri, Feb 5, 2010 at 8:41 AM, Olle E. Johansson o...@edvina.net wrote: What I have seen on my asterisk box when I had a up/down adsl line was that the asterisk box couldn't do dns resolution and would hang( well no other internal calls could be made, seemed like some sort of semaphore was

Re: [asterisk-users] Losing local SIP phones when internet goes down?

2010-02-05 Thread Dave Cotton
On 05/02/10 09:15, Randy R wrote: On Fri, Feb 5, 2010 at 8:41 AM, Olle E. Johansson o...@edvina.net wrote: What I have seen on my asterisk box when I had a up/down adsl line was that the asterisk box couldn't do dns resolution and would hang( well no other internal calls could be made, seemed

Re: [asterisk-users] Losing local SIP phones when internet goes down?

2010-02-05 Thread --[ UxBoD ]--
- Randy R randulo2...@gmail.com wrote: On Fri, Feb 5, 2010 at 8:41 AM, Olle E. Johansson o...@edvina.net wrote: What I have seen on my asterisk box when I had a up/down adsl line was that the asterisk box couldn't do dns resolution and would hang( well no other internal calls could

Re: [asterisk-users] Losing local SIP phones when internet goes down?

2010-02-05 Thread Olle E. Johansson
5 feb 2010 kl. 09.28 skrev --[ UxBoD ]--: - Randy R randulo2...@gmail.com wrote: On Fri, Feb 5, 2010 at 8:41 AM, Olle E. Johansson o...@edvina.net wrote: What I have seen on my asterisk box when I had a up/down adsl line was that the asterisk box couldn't do dns resolution and would

Re: [asterisk-users] Losing local SIP phones when internet goes down?

2010-02-05 Thread Randy R
Why not run a internal DNS with forwarders to your ISP ? That way Asterisk can still resolve itself and hosts internally. See above: you need a local resolver, like a caching BIND server, on the same host. Nice, but still, it ruins the all in one concept. Isn't there a lighter solution?

Re: [asterisk-users] Losing local SIP phones when internet goes down?

2010-02-05 Thread --[ UxBoD ]--
- Olle E. Johansson o...@edvina.net wrote: 5 feb 2010 kl. 09.28 skrev --[ UxBoD ]--: - Randy R randulo2...@gmail.com wrote: On Fri, Feb 5, 2010 at 8:41 AM, Olle E. Johansson o...@edvina.net wrote: What I have seen on my asterisk box when I had a up/down adsl line was

Re: [asterisk-users] Losing local SIP phones when internet goes down?

2010-02-05 Thread --[ UxBoD ]--
- Randy R randulo2...@gmail.com wrote: Nice, but still, it ruins the all in one concept. Isn't there a lighter solution? Nice and lite DNS server ? http://www.nlnetlabs.nl/projects/nsd/ -- Thanks, Phil -- _ -- Bandwidth

Re: [asterisk-users] Losing local SIP phones when internet goes down?

2010-02-05 Thread Olle E. Johansson
5 feb 2010 kl. 10.37 skrev Randy R: Why not run a internal DNS with forwarders to your ISP ? That way Asterisk can still resolve itself and hosts internally. See above: you need a local resolver, like a caching BIND server, on the same host. Nice, but still, it ruins the all in one

Re: [asterisk-users] Losing local SIP phones when internet goes down?

2010-02-05 Thread Randy R
On Fri, Feb 5, 2010 at 10:39 AM, --[ UxBoD ]-- ux...@splatnix.net wrote: Doh! :) My philosophy has always been to install a local named server, whether it be for Asterisk or something else, as most of the time everything I do is behind NAT and I prefer to resolve internal addresses.  This

Re: [asterisk-users] Losing local SIP phones when internet goes down?

2010-02-05 Thread Nikhil Nair
Hi all, Many thanks for all your very fast and really helpful replies! Now I know about the asynchronous DNS issue, this all starts to make sense: presumably, when I disabled eth1 completely, the DNS queries just failed immediately, so didn't hold anything else up, whereas in the other

Re: [asterisk-users] Losing local SIP phones when internet goes down?

2010-02-05 Thread Nikhil Nair
Hi again, OK, I've now installed a local caching nameserver, but don't see any change at all. IN detail, what I did: - Installed Debian packages resolvconf and dnsmasq (resolvconf just takes care of dynamic nameserver allocations in /etc/resolv.conf). - After looking at the docs, edited

Re: [asterisk-users] Losing local SIP phones when internet goes down?

2010-02-05 Thread Jeff LaCoursiere
On Fri, 5 Feb 2010, Nikhil Nair wrote: Hi again, OK, I've now installed a local caching nameserver, but don't see any change at all. IN detail, what I did: - Installed Debian packages resolvconf and dnsmasq (resolvconf just takes care of dynamic nameserver allocations in

Re: [asterisk-users] Losing local SIP phones when internet goes down?

2010-02-05 Thread Vinícius Fontes
Have you tried to set srvlookup=no on your sip.conf? Atenciosamente, Vinícius Fontes Gerente de Segurança da Informação Canall Tecnologia em Comunicações Passo Fundo - RS - Brasil +55 54 2104-7000 Information Security Manager Canall Tecnologia em Comunicações Passo Fundo - RS - Brazil +55 54

Re: [asterisk-users] Losing local SIP phones when internet goes down?

2010-02-05 Thread Randy R
2010/2/5 Vinícius Fontes vinic...@canall.com.br: Have you tried to set srvlookup=no on your sip.conf? I think that just stops SRV lookups, not regular DNS. /r -- _ -- Bandwidth and Colocation Provided by

Re: [asterisk-users] Losing local SIP phones when internet goes down?

2010-02-05 Thread Dave Cotton
On 05/02/10 14:21, Nikhil Nair wrote: Hi again, OK, I've now installed a local caching nameserver, but don't see any change at all. IN detail, what I did: - Installed Debian packages resolvconf and dnsmasq (resolvconf just takes care of dynamic nameserver allocations in

Re: [asterisk-users] Losing local SIP phones when internet goes down?

2010-02-05 Thread Vinícius Fontes
I solved similar issues by setting srvlookup=no, having bind running locally and just the line nameserver 127.0.0.1 on /etc/resolv.conf. Atenciosamente, Vinícius Fontes Gerente de Segurança da Informação Canall Tecnologia em Comunicações Passo Fundo - RS - Brasil +55 54 2104-7000 Information

Re: [asterisk-users] Losing local SIP phones when internet goes down?

2010-02-05 Thread Jeff LaCoursiere
On Fri, 5 Feb 2010, Vinícius Fontes wrote: I solved similar issues by setting srvlookup=no, having bind running locally and just the line nameserver 127.0.0.1 on /etc/resolv.conf. Your local bind is what solved the problem. The srvlookup=no didn't actually help IMO. j

Re: [asterisk-users] Losing local SIP phones when internet goes down?

2010-02-05 Thread Dave Cotton
On 05/02/10 16:01, Jeff LaCoursiere wrote: On Fri, 5 Feb 2010, Vinícius Fontes wrote: I solved similar issues by setting srvlookup=no, having bind running locally and just the line nameserver 127.0.0.1 on /etc/resolv.conf. Your local bind is what solved the problem. The srvlookup=no

Re: [asterisk-users] Losing local SIP phones when internet goes down?

2010-02-05 Thread Vinícius Fontes
Could be. Important thing is the problem was solved :) Atenciosamente, Vinícius Fontes Gerente de Segurança da Informação Canall Tecnologia em Comunicações Passo Fundo - RS - Brasil +55 54 2104-7000 Information Security Manager Canall Tecnologia em Comunicações Passo Fundo - RS - Brazil +55

Re: [asterisk-users] Losing local SIP phones when internet goes down?

2010-02-05 Thread Dana Harding
OK, I've now installed a local caching nameserver, but don't see any change at all. - Tested name resolution in general: working fine. - Turned ADSL router off and tried to make local and Zap calls: no luck. Did you try to make any calls before pulling the plug on the ADSL router? dnsmasq

Re: [asterisk-users] Losing local SIP phones when internet goes down?

2010-02-05 Thread Alex Samad
On Fri, Feb 05, 2010 at 01:21:38PM +, Nikhil Nair wrote: Hi again, OK, I've now installed a local caching nameserver, but don't see any change at all. Just to add to the discussion, my setup I was using a local bind9 server for local/authorative and recursive queries I think from

Re: [asterisk-users] Losing local SIP phones when internet goes down?

2010-02-04 Thread Joseph
On 02/05/10 02:05, Nikhil Nair wrote: Hi, I'm getting some strange behaviour on Asterisk 1.4 running on Debian Stable (Lenny). I suspect it's something to do with my setup, rather than a bug, but I'm struggling to see it, and would appreciate any input. Setup: PC with two ethernet cards: eth0

Re: [asterisk-users] Losing local SIP phones when internet goes down?

2010-02-04 Thread Nikhil Nair
On Thu, 4 Feb 2010, Joseph wrote: [...] Does your router runs DHCPD, assigning network addresses on on your LAN? Nope, the DHCPD on the ADSL router is disabled, because I'm running DHCPD on the Debian box. In any case, the ADSL router is not directly accessible from the local net. If

Re: [asterisk-users] Losing local SIP phones when internet goes down?

2010-02-04 Thread Joseph
On 02/05/10 02:35, Nikhil Nair wrote: On Thu, 4 Feb 2010, Joseph wrote: [...] Does your router runs DHCPD, assigning network addresses on on your LAN? Nope, the DHCPD on the ADSL router is disabled, because I'm running DHCPD on the Debian box. In any case, the ADSL router is not directly

Re: [asterisk-users] Losing local SIP phones when internet goes down?

2010-02-04 Thread Joseph
On 02/05/10 02:05, Nikhil Nair wrote: Extract from sip.conf: [general] context=incoming srvlookup=yes realm=nikhil-nair.net Your resolve authentication to an outside server, isn't it? So here might be your problem; if there is no connection to the Internet no authentication. -- Joseph --

Re: [asterisk-users] Losing local SIP phones when internet goes down?

2010-02-04 Thread Nikhil Nair
On Thu, 4 Feb 2010, Joseph wrote: On 02/05/10 02:35, Nikhil Nair wrote: On Thu, 4 Feb 2010, Joseph wrote: [...] Does your router runs DHCPD, assigning network addresses on on your LAN? Nope, the DHCPD on the ADSL router is disabled, because I'm running DHCPD on the Debian box. In any

Re: [asterisk-users] Losing local SIP phones when internet goes down?

2010-02-04 Thread Nikhil Nair
On Thu, 4 Feb 2010, Joseph wrote: On 02/05/10 02:05, Nikhil Nair wrote: Extract from sip.conf: [general] context=incoming srvlookup=yes realm=nikhil-nair.net Your resolve authentication to an outside server, isn't it? No, that's just a Realm string which has to match when the Asterisk

Re: [asterisk-users] Losing local SIP phones when internet goes down?

2010-02-04 Thread Warren Selby
On Thu, Feb 4, 2010 at 9:20 PM, Nikhil Nair nn...@pobox.com wrote: No, again, I can cut off the internet altogether with ifdown eth1, and the SIP phones (via eth0) continue to work fine, as does the Zap channel. It's only if eth1 is up but the ADSL router is down (or, indeed, the phone line

Re: [asterisk-users] Losing local SIP phones when internet goes down?

2010-02-04 Thread Alex Samad
On Thu, Feb 04, 2010 at 09:52:35PM -0600, Warren Selby wrote: On Thu, Feb 4, 2010 at 9:20 PM, Nikhil Nair nn...@pobox.com wrote: No, again, I can cut off the internet altogether with ifdown eth1, and the SIP phones (via eth0) continue to work fine, as does the Zap channel. It's only if

Re: [asterisk-users] Losing local SIP phones when internet goes down?

2010-02-04 Thread Anthony Messina
On Thursday 04 February 2010 23:22:27 Alex Samad wrote: What I have seen on my asterisk box when I had a up/down adsl line was that the asterisk box couldn't do dns resolution and would hang( well no other internal calls could be made, seemed like some sort of semaphore was stuck) when the

Re: [asterisk-users] Losing local SIP phones when internet goes down?

2010-02-04 Thread Olle E. Johansson
5 feb 2010 kl. 06.49 skrev Anthony Messina: On Thursday 04 February 2010 23:22:27 Alex Samad wrote: What I have seen on my asterisk box when I had a up/down adsl line was that the asterisk box couldn't do dns resolution and would hang( well no other internal calls could be made, seemed like