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

Nikhil Nair nnair at pobox.com
Fri Feb 5 07:21:38 CST 2010


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 /etc/network/interfaces to add a
   dns-nameservers line in the entry for eth1.  Then reconfigured
   resolvconf.

- Checked /etc/resolv.conf: now showing 127.0.0.1 as the only nameserver.

- Tested name resolution in general: working fine.

- Turned ADSL router off and tried to make local and Zap calls: no luck.

- Rebooted machine and tried again: still no luck.

Again, the logs indicate that Asterisk thinks the SIP phones are 
unreachable.

Was there anything special I needed to do with the setup of dnsmasq, or 
its interface with Asterisk?  If not, I'm stuck again.

Thoughts?

Nikhil.



On Fri, 5 Feb 2010, Nikhil Nair wrote:

> 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
> scenarios (router or phone line down) the DNS requests weren't being
> answered, so Asterisk was waiting, preventing it from doing other things
> properly.
>
> So, as suggested, I'll go ahead and install dnsmasq (or similar), and that
> should fix things.
>
> Cheers,
>
> Nikhil.
>
>
> -- 
> _____________________________________________________________________
> -- 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
>



More information about the asterisk-users mailing list