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

Joseph syscon780 at gmail.com
Thu Feb 4 20:25:21 CST 2010


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 goes to local network, including
>two SIP phones (Aastra 9112i, wired, and Nokia E75, over WIFI); eth1 goes
>to router and thence to the internet over ADSL.  PC also has one Zap
>channel.
>
>the SIP phones use DHCP but have defined IP addresses (DHCP server running
>on the PC).  The PC is also running a firewall (FIAIF), but not a DNS
>server.
>
>Version of Debian Asterisk package: 1:1.4.21.2~dfsg-3+lenny1
>
>Problem: When the internet connection goes down (which has been happening
>sporadically of late), connections to the two SIP phones on the local
>network get lost; ongoing calls from one of these phones over the Zap
>channel may get terminated, despite not using the internet.
>
>I can reproduce this by switching off my ADSL router; however, if I simply
>take down the eth1 interface completely (by using "ifdown eth1", which
>executes "route del default gw ... eth1" and "ifconfig eth1 down"), the
>connections to the two SIP phones continue with no problems at all.

Does your router runs DHCPD, assigning network addresses on on your LAN?
If yes, and you switch the ADSL route OFF then you kill your DHCPD so no connection to asterisk server.

-- 
Joseph



More information about the asterisk-users mailing list