Re: [asterisk-users] Losing local SIP phones when internet goes down?
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 wrote: > 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 PM, "Gopalakrishnan A.N" wrote: > > 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, Matt Riddell > wrote: > > > > On 9/02/10 12:59 ... > > -- > Thank you with regards, > Gopalakrishnan A.N, > > > > -- > _ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > > 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 -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > -- Thank you with regards, Gopalakrishnan A.N, -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Losing local SIP phones when internet goes down?
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 PM, "Gopalakrishnan A.N" wrote: 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, Matt Riddell wrote: > > On 9/02/10 12:59 ... -- Thank you with regards, Gopalakrishnan A.N, -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello 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 -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Losing local SIP phones when internet goes down?
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, Matt Riddell wrote: > 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): > > > > prepend domain-name-servers 127.0.0.1; > > > > Otherwise, your entry in resolv.conf will be overwritten on each DHCP > > lease renewal. > > Yeah, although if you're using DHCP, then dnsmasq is possibly a better > option. > > -- > Cheers, > > Matt Riddell > Managing Director > ___ > > http://www.venturevoip.com/news.php (Daily Asterisk News) > http://www.venturevoip.com/exchange.php (Full ITSP Solution) > http://www.venturevoip.com/st.php (SmoothTorque Predictive Dialer) > > -- > _ > -- 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 > -- Thank you with regards, Gopalakrishnan A.N, -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Losing local SIP phones when internet goes down?
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): > > prepend domain-name-servers 127.0.0.1; > > Otherwise, your entry in resolv.conf will be overwritten on each DHCP > lease renewal. Yeah, although if you're using DHCP, then dnsmasq is possibly a better option. -- Cheers, Matt Riddell Managing Director ___ http://www.venturevoip.com/news.php (Daily Asterisk News) http://www.venturevoip.com/exchange.php (Full ITSP Solution) http://www.venturevoip.com/st.php (SmoothTorque Predictive Dialer) -- _ -- 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] Losing local SIP phones when internet goes down?
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 solved the problem. The srvlookup=no didn't >> actually help IMO. > > Given the choice between configuring bind and dnsmasq I know which I'd > go for. They're both pretty easy - bind9 easier I reckon. To set up on debian do: apt-get install bind9 add to the top of /etc/resolv.conf nameserver 127.0.0.1 Then it's done. Dnsmasq is probably overkill for this type of thing, though some people in the office prefer it to bind. -- Cheers, Matt Riddell Managing Director ___ http://www.venturevoip.com/news.php (Daily Asterisk News) http://www.venturevoip.com/exchange.php (Full ITSP Solution) http://www.venturevoip.com/st.php (SmoothTorque Predictive Dialer) -- _ -- 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] Losing local SIP phones when internet goes down?
Hello my friends, I'm having a problem like this post...the difference is that my asterisk goes down and i have to reboot my server in order to make it up again... following you will see some errors that i can see in the Asterisk /var/log/messages qhen asterisk goes down: [Feb 5 10:32:45] WARNING[6519] chan_sip.c: Maximum retries exceeded on transmission 1850202354 at 10.4.1.152 <http://lists.digium.com/mailman/listinfo/asterisk-users> for seqno 21 (Critical Response) [Feb 5 10:32:45] WARNING[6519] chan_sip.c: Hanging up call 1850202354 at 10.4.1.152 <http://lists.digium.com/mailman/listinfo/asterisk-users> - no reply to our critical packet. [Feb 5 10:33:04] NOTICE[6519] chan_sip.c: Call from '346' to extension '3415554' rejected because extension not found. [Feb 5 10:35:31] NOTICE[6519] chan_sip.c: Disconnecting call 'SIP/301-09ad3be8' for lack of RTP activity in 301 seconds [Feb 5 10:36:17] NOTICE[6519] chan_sip.c: Disconnecting call 'SIP/317-b7735220' for lack of RTP activity in 301 seconds [Feb 5 10:38:19] NOTICE[6519] chan_sip.c: Peer '353' is now Reachable. (1ms / 2000ms) [Feb 5 10:42:59] NOTICE[6519] chan_sip.c: Peer '353' is now Reachable. (7ms / 2000ms) [Feb 5 10:51:09] NOTICE[6519] chan_sip.c: Peer '358' is now Reachable. (1ms / 2000ms) [Feb 5 10:53:08] NOTICE[6519] chan_sip.c: Peer '366' is now UNREACHABLE! Last qualify: 108 But later, at 2 pm, Asterisk went down again but with no weird message in /var/log/asterisk/message (just some unreachable messages of some extensions that has always been in the console since i installed Asterisk, but it never crash Asterisk untill last weeks ago): [Feb 5 13:54:11] NOTICE[6536] chan_sip.c: Peer '328' is now Reachable. (1ms / 2000ms) [Feb 5 13:55:18] NOTICE[6536] chan_sip.c: Registration from '< sip:300 at 10.4.1.6 <http://lists.digium.com/mailman/listinfo/asterisk-users>:5060>' failed for '10.4.2.3' - No matching peer found [Feb 5 13:57:40] NOTICE[6536] chan_sip.c: Call from '346' to extension '04265417457' rejected because extension not found. [Feb 5 13:59:15] NOTICE[6536] chan_sip.c: Peer '341' is now Reachable. (2ms / 2000ms) [Feb 5 13:59:25] NOTICE[6536] chan_sip.c: Peer '328' is now Reachable. (1ms / 2000ms) [Feb 5 14:01:43] NOTICE[6536] chan_sip.c: Peer '339' is now UNREACHABLE! Last qualify: 101 [Feb 5 14:04:22] NOTICE[6536] chan_sip.c: Peer '339' is now Reachable. (44ms / 2000ms) [Feb 5 14:04:39] NOTICE[6536] chan_sip.c: Peer '328' is now Reachable. (1ms / 2000ms) [Feb 5 14:09:53] NOTICE[6536] chan_sip.c: Peer '328' is now Reachable. (1ms / 2000ms) What could be the problem my friends? Thanks in advance 2010/2/7 > Send asterisk-users mailing list submissions to >asterisk-users@lists.digium.com > > To subscribe or unsubscribe via the World Wide Web, visit >http://lists.digium.com/mailman/listinfo/asterisk-users > or, via email, send a message with subject or body 'help' to >asterisk-users-requ...@lists.digium.com > > You can reach the person managing the list at >asterisk-users-ow...@lists.digium.com > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of asterisk-users digest..." > > > Today's Topics: > > 1. Re: Losing local SIP phones when internet goesdown? (sean darcy) > 2. Re: A2Billing and other prepaid Billing like ASTCC, who is > better? (bilal ghayyad) > > > -- > > Message: 1 > Date: Sun, 07 Feb 2010 11:19:39 -0500 > From: sean darcy > Subject: Re: [asterisk-users] Losing local SIP phones when internet >goesdown? > To: asterisk-users@lists.digium.com > Message-ID: > 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 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 following up. I've had > this problem before, but never posted the problem - once the internet > came back up! > > I've now configured dnsmasq on my * box. This week I'll test it. > > sean > > > > > -- > > Message: 2 > Date: Sun, 7 Feb 2010 09:41:00 -0800 (PST) > From: bilal ghayyad > Subject: Re: [asterisk-users] A2Billing and other prepaid Billing like >ASTCC, who is better? > To: asterisk-users@li
Re: [asterisk-users] Losing local SIP phones when internet goes down?
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 configuration issue but as of yet I haven't figured it out. On 2/4/2010 9:05 PM, 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. > > I enclose an extract from my sip.conf below. Also, the logs indicate that > Asterisk thinks the SIP phones are no longer reachable (ping timing out), > while a manual ping from the same machine shows no trouble at all: the > wired phone is responding in less than 2 ms each time, while the wireless > one was a max of about 120 ms. > > Any thoughts much appreciated! Hopefully it's something obvious that I've > overlooked... > > Oh, BTW, the local phones are on a private net (10.9.8.xxx), but as it's > the Asterisk box that's doing the NAT'ing, I used nat=no; I presume that's > correct. eth0 has address 10.9.8.1, while eth1 has a global internet IP > address. > > Cheers, > > Nikhil. > > - > > Extract from sip.conf: > > [general] > context=incoming > srvlookup=yes > realm=nikhil-nair.net > ; Various "register=>" statements, not relevant to the local phones > > [101] ; Aastra 9112i at 10.9.8.101 > type=friend > secret=... > qualify=yes ; Qualify peer is no more than 2000 ms away > nat=no ; This phone is not natted > host=dynamic ; This device registers with us > canreinvite=no ; Asterisk by default tries to redirect > context=local > disallow=all > allow=alaw > allow=ulaw > > [111] ; Nokia E75 via WIFI access point, at 10.9.8.111 > type=friend > secret=... > qualify=yes ; Qualify peer is no more than 2000 ms away > nat=no ; This phone is not natted > host=dynamic ; This device registers with us > canreinvite=no ; Asterisk by default tries to redirect > context=local > disallow=all > allow=alaw > allow=ulaw > allow=gsm > > -- _ -- 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] Losing local SIP phones when internet goes down?
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 following up. I've had this problem before, but never posted the problem - once the internet came back up! I've now configured dnsmasq on my * box. This week I'll test it. sean -- _ -- 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] Losing local SIP phones when internet goes down?
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 memory it was asking for a sip address to register with and the record had a ttl or 600 (5min) so could expire very easily. can I suggest maybe whilst eth1 (the internet link) is down, stop and restart asterisk with logging and check to see what fails > > IN detail, what I did: > [snip] signature.asc Description: Digital signature -- _ -- 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] Losing local SIP phones when internet goes down?
> 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 wouldn't have had the chance to cache any lookups that are made if you didn't. > - 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. Turn on logging of dns queries in dnsmasq. (-q or --log-queries). That should 1) verify that it is actually being used for lookups 2) tell you what, exactly, it is being asked to resolve. (which you could then add to your hosts file) -- _ -- 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] Losing local SIP phones when internet goes down?
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 54 2104-7000 - "Jeff LaCoursiere" escreveu: > 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 > > > > > 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 2104-7000 > > > > - "Randy R" escreveu: > > > >> 2010/2/5 Vinícius Fontes : > >>> 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 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 > > > -- > _ > -- 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] Losing local SIP phones when internet goes down?
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 didn't > actually help IMO. Given the choice between configuring bind and dnsmasq I know which I'd go for. DC smime.p7s Description: S/MIME Cryptographic Signature -- _ -- 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] Losing local SIP phones when internet goes down?
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 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 2104-7000 - "Randy R" escreveu: 2010/2/5 Vinícius Fontes : 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 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 -- _ -- 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] Losing local SIP phones when internet goes down?
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 Security Manager Canall Tecnologia em Comunicações Passo Fundo - RS - Brazil +55 54 2104-7000 - "Randy R" escreveu: > 2010/2/5 Vinícius Fontes : > > 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 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] Losing local SIP phones when internet goes down?
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 smime.p7s Description: S/MIME Cryptographic Signature -- _ -- 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] Losing local SIP phones when internet goes down?
2010/2/5 Vinícius Fontes : > 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 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] Losing local SIP phones when internet goes down?
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 2104-7000 - "Nikhil Nair" escreveu: > 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 > > > > -- > _ > -- 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] Losing local SIP phones when internet goes down?
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 /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. > Hi, I am stepping out on a limb here, since I have never run dnsmasq, but I don't think it is an actual caching server. I think it just relays queries to upstream servers, which in your case are still unreachable, and will still cause asterisk to timeout waiting for a reply. You need a true local DNS server that can answer for your asterisk box and any named phones. A caching server should do also, assuming that your link is up long enough to serve and cache a few local queries before it goes down - pretty much how most of my systems run. j -- _ -- 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] Losing local SIP phones when internet goes down?
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 > -- _ -- 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] Losing local SIP phones when internet goes down?
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
Re: [asterisk-users] Losing local SIP phones when internet goes down?
On Fri, Feb 5, 2010 at 10:39 AM, --[ UxBoD ]-- 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 also > help if you run your own mailserver and make extensive queries to RBLs etc. That last bit makes a good point. And speaking of RBL, is anyone doing a SPIT RBL? I was plagued by comment spam on an old forum I wrote in C years ago and I finally wrote a function to check projecthoneypot.org's httpBL. I feel like my days just gained an hour, the one I wasted every day modertaing useless spam comments. Are there lists to check for know pests in VoIP? /r -- _ -- 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] Losing local SIP phones when internet goes down?
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" concept. Isn't there a > lighter solution? > Why does it ruin "all in one" if it's not "all" without a local resolver? The only difference is that your resolver ask your ISP's DNS server for answers instead of Asterisk, since your resolver can handle the situation of not getting DNS replies properly. With caching, it might also speed up issues. You still need a mail server for running Asterisk, so adding a simple DNS server doesn't add much to the "all in one" list. /O -- _ -- 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] Losing local SIP phones when internet goes down?
- "Randy R" 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 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] Losing local SIP phones when internet goes down?
- "Olle E. Johansson" wrote: > 5 feb 2010 kl. 09.28 skrev --[ UxBoD ]--: > > > - "Randy R" wrote: > > > >> On Fri, Feb 5, 2010 at 8:41 AM, Olle E. Johansson > >> 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 adsl came up and dns could be done, > >> everything > > worked fine again > >> > >> Confirmed and experienced years ago in a release far, far away. > >> > >>> Yes, that is the case. Asterisk doesn't have asynchronus DNS > >> support, so in order to work when the link is down, you need a > local > >> resolver, like a caching BIND server, on the same host. The calls > to > >> DNS resolvers in Asterisk is synchronus, so Asterisk will wait for > the > >> response to arrive. > >> > >> IIRC, at the time I had this problem, asterisk did not answer > analog > >> phone lines either so as a company we had no phones and had to > revert > >> to regular telephones plugged into the wall. Even if Internet is > >> working, if the configured DNS is down, you're still sunk. This > >> sorely > >> needs to be fixed IMO. > >> > >> /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. > > /O :-) 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 also help if you run your own mailserver and make extensive queries to RBLs etc. -- Thanks, Phil -- _ -- 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] Losing local SIP phones when internet goes down?
>> 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? /r -- _ -- 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] Losing local SIP phones when internet goes down?
5 feb 2010 kl. 09.28 skrev --[ UxBoD ]--: > - "Randy R" wrote: > >> On Fri, Feb 5, 2010 at 8:41 AM, Olle E. Johansson >> 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 adsl came up and dns could be done, >> everything > worked fine again >> >> Confirmed and experienced years ago in a release far, far away. >> >>> Yes, that is the case. Asterisk doesn't have asynchronus DNS >> support, so in order to work when the link is down, you need a local >> resolver, like a caching BIND server, on the same host. The calls to >> DNS resolvers in Asterisk is synchronus, so Asterisk will wait for the >> response to arrive. >> >> IIRC, at the time I had this problem, asterisk did not answer analog >> phone lines either so as a company we had no phones and had to revert >> to regular telephones plugged into the wall. Even if Internet is >> working, if the configured DNS is down, you're still sunk. This >> sorely >> needs to be fixed IMO. >> >> /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. /O :-) -- _ -- 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] Losing local SIP phones when internet goes down?
- "Randy R" wrote: > On Fri, Feb 5, 2010 at 8:41 AM, Olle E. Johansson > 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 adsl came up and dns could be done, > everything > >>> worked fine again > > Confirmed and experienced years ago in a release far, far away. > > > Yes, that is the case. Asterisk doesn't have asynchronus DNS > support, so in order to work when the link is down, you need a local > resolver, like a caching BIND server, on the same host. The calls to > DNS resolvers in Asterisk is synchronus, so Asterisk will wait for the > response to arrive. > > IIRC, at the time I had this problem, asterisk did not answer analog > phone lines either so as a company we had no phones and had to revert > to regular telephones plugged into the wall. Even if Internet is > working, if the configured DNS is down, you're still sunk. This > sorely > needs to be fixed IMO. > > /r Why not run a internal DNS with forwarders to your ISP ? That way Asterisk can still resolve itself and hosts internally. -- Thanks, Phil -- _ -- 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] Losing local SIP phones when internet goes down?
On 05/02/10 09:15, Randy R wrote: > On Fri, Feb 5, 2010 at 8:41 AM, Olle E. Johansson 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 adsl came up and dns could be done, everything worked fine again > > Confirmed and experienced years ago in a release far, far away. > >> Yes, that is the case. Asterisk doesn't have asynchronus DNS support, so in >> order to work when the link is down, you need a local resolver, like a >> caching BIND server, on the same host. The calls to DNS resolvers in >> Asterisk is synchronus, so Asterisk will wait for the response to arrive. > > IIRC, at the time I had this problem, asterisk did not answer analog > phone lines either so as a company we had no phones and had to revert > to regular telephones plugged into the wall. Even if Internet is > working, if the configured DNS is down, you're still sunk. This sorely > needs to be fixed IMO. > > /r > Also had this many times, the installation and config of dnsmasq fixed it for my systems. DC smime.p7s Description: S/MIME Cryptographic Signature -- _ -- 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] Losing local SIP phones when internet goes down?
On Fri, Feb 5, 2010 at 8:41 AM, Olle E. Johansson 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 adsl came up and dns could be done, everything >>> worked fine again Confirmed and experienced years ago in a release far, far away. > Yes, that is the case. Asterisk doesn't have asynchronus DNS support, so in > order to work when the link is down, you need a local resolver, like a > caching BIND server, on the same host. The calls to DNS resolvers in Asterisk > is synchronus, so Asterisk will wait for the response to arrive. IIRC, at the time I had this problem, asterisk did not answer analog phone lines either so as a company we had no phones and had to revert to regular telephones plugged into the wall. Even if Internet is working, if the configured DNS is down, you're still sunk. This sorely needs to be fixed IMO. /r -- _ -- 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] Losing local SIP phones when internet goes down?
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 some sort of semaphore >> was stuck) when the adsl came up and dns could be done, everything >> worked fine again > > I can confirm that exact same behavior: 1.6.1.12 Yes, that is the case. Asterisk doesn't have asynchronus DNS support, so in order to work when the link is down, you need a local resolver, like a caching BIND server, on the same host. The calls to DNS resolvers in Asterisk is synchronus, so Asterisk will wait for the response to arrive. I've applied for funding to fix this for a few years, but it hasn't really gotten the attention from anyone with resources needed. There are several libraries out there we could use. Resiprocate use the c-ares library, originally from curl. If anyone wants to add this code, contributions are always welcome. /O -- _ -- 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] Losing local SIP phones when internet goes down?
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 adsl came up and dns could be done, everything > worked fine again I can confirm that exact same behavior: 1.6.1.12 -- Anthony - http://messinet.com - http://messinet.com/~amessina/gallery 8F89 5E72 8DF0 BCF0 10BE 9967 92DC 35DC B001 4A4E signature.asc Description: This is a digitally signed message part. -- _ -- 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] Losing local SIP phones when internet goes down?
On Thu, Feb 04, 2010 at 09:52:35PM -0600, Warren Selby wrote: > On Thu, Feb 4, 2010 at 9:20 PM, Nikhil Nair 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 is down), that the problem arises. > > > > N. > > > > > It sounds as though something is wrong with the RTP routing. If you ifdown > the connection, you're deleting the routes. If the ADSL modem goes down, > your server still thinks it has a route out to the internet. I've noticed a > similar issue on one of my client's installations. They lost their internet > connection and the phone system went haywire. As soon as it was restored, > everything returned to normal. > > What happens if you manually execute just ifconfig eth1 down? I haven't the route should dissappear > tried this, I'm just curious if it will also delete the route, or will it > leave it there? If the route is still there, what happens to your phone > connections? > > Another idea - what happens when you bind your SIP connections to the > internal IP address (using bindaddr=10.9.8.1 in the general section of your > sip.conf file) , and then unplug the modem? > > I'm sorry I'm unable to offer an exact solution, but I'm very interested in > any results you may come up with. maybe try tcpdump on the inside interface of the debian box limit to just packets with a sip phones address. 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 adsl came up and dns could be done, everything worked fine again > -- "As far as the legal hassling and wrangling and posturing in Florida, I would suggest you talk to our team in Florida led by Jim Baker." - George W. Bush 11/30/2000 Crawford, TX signature.asc Description: Digital signature -- _ -- 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] Losing local SIP phones when internet goes down?
On Thu, Feb 4, 2010 at 9:20 PM, Nikhil Nair 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 is down), that the problem arises. > > N. > > It sounds as though something is wrong with the RTP routing. If you ifdown the connection, you're deleting the routes. If the ADSL modem goes down, your server still thinks it has a route out to the internet. I've noticed a similar issue on one of my client's installations. They lost their internet connection and the phone system went haywire. As soon as it was restored, everything returned to normal. What happens if you manually execute just ifconfig eth1 down? I haven't tried this, I'm just curious if it will also delete the route, or will it leave it there? If the route is still there, what happens to your phone connections? Another idea - what happens when you bind your SIP connections to the internal IP address (using bindaddr=10.9.8.1 in the general section of your sip.conf file) , and then unplug the modem? I'm sorry I'm unable to offer an exact solution, but I'm very interested in any results you may come up with. -- Thanks, --Warren Selby http://www.selbytech.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] Losing local SIP phones when internet goes down?
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 box talks to a phone (if the phone is fussy, that is). I happen to own that domain, but this doesn't point to any outside server: the Asterisk box does the authentication. > So here might be your problem; if there is no connection to the Internet no > authentication. 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 is down), that the problem arises. N. -- _ -- 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] Losing local SIP phones when internet goes down?
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 case, the ADSL router is not directly >> accessible from the local net. > > Check your sip phone settings, do they request any information from the > Internet, NTP etc. > If the ADSL router is down can you ping the sip phones? No problem there: is I mentioned in my original message, if I completely disable the Asterisk box's eth1 interface, which shuts off access to the router as well as to the rest of the internet, the two SIP phones continue to work with no trouble at all, and respond to manual pings properly. With eth1 up but the ADSL router disabled, the two SIP phones still respond properly to manual pings, which is why I'm puzzled why Asterisk is reporting that they are unreachable. I originally wondered if this could be DNS related - but disabling eth1 also cuts off the name server, so if it was that, I would have expected that to stop the SIP phones from working. Still about as clear as mud... 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
Re: [asterisk-users] Losing local SIP phones when internet goes down?
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 -- _ -- 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] Losing local SIP phones when internet goes down?
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 >accessible from the local net. Check your sip phone settings, do they request any information from the Internet, NTP etc. If the ADSL router is down can you ping the sip phones? -- Joseph -- _ -- 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] Losing local SIP phones when internet goes down?
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 yes, and you switch the ADSL route OFF then you kill your DHCPD so no > connection to asterisk server. If that had been the setup, then yes, absolutely. Thanks for the effort! N. -- _ -- 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] Losing local SIP phones when internet goes down?
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 -- _ -- 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] Losing local SIP phones when internet goes down?
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. I enclose an extract from my sip.conf below. Also, the logs indicate that Asterisk thinks the SIP phones are no longer reachable (ping timing out), while a manual ping from the same machine shows no trouble at all: the wired phone is responding in less than 2 ms each time, while the wireless one was a max of about 120 ms. Any thoughts much appreciated! Hopefully it's something obvious that I've overlooked... Oh, BTW, the local phones are on a private net (10.9.8.xxx), but as it's the Asterisk box that's doing the NAT'ing, I used nat=no; I presume that's correct. eth0 has address 10.9.8.1, while eth1 has a global internet IP address. Cheers, Nikhil. - Extract from sip.conf: [general] context=incoming srvlookup=yes realm=nikhil-nair.net ; Various "register=>" statements, not relevant to the local phones [101] ; Aastra 9112i at 10.9.8.101 type=friend secret=... qualify=yes ; Qualify peer is no more than 2000 ms away nat=no ; This phone is not natted host=dynamic ; This device registers with us canreinvite=no ; Asterisk by default tries to redirect context=local disallow=all allow=alaw allow=ulaw [111] ; Nokia E75 via WIFI access point, at 10.9.8.111 type=friend secret=... qualify=yes ; Qualify peer is no more than 2000 ms away nat=no ; This phone is not natted host=dynamic ; This device registers with us canreinvite=no ; Asterisk by default tries to redirect context=local disallow=all allow=alaw allow=ulaw allow=gsm -- _ -- 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