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

Dave Cotton dcotton at linuxautrement.com
Fri Feb 5 08:43:39 CST 2010


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 /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.
> 

I can only indicate what my setup is:-

/etc/resolv.conf contains just the real ip of the server 192.168.xxx.xxx

/etc/resolv.conf.dnsmasq  contains the ip addresses of the dns of my isp
it could also have 8.8.8.8 and 8.8.4.4 if you like Google.

Dnsmasq is configured to use this file.

/etc/hosts on the server contains details of every item on the network
and there names.

192.168.nnn.nnn Aastra9133
192.168.nnn.nnn workstation

/etc/dhcpd.conf list only 192.168.xxx.xxx as nameserver so with this I
can do "ping Aastra9133" from any other machine on the network.

Hope this helps

DC

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6682 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20100205/47e1641d/attachment.bin 


More information about the asterisk-users mailing list