Re: [asterisk-users] R: No Internet, no asterisk

2011-04-20 Thread Ron Arts

Op 20-04-11 01:07, Matt Riddell schreef:

On 20/04/11 1:58 AM, Mark Deneen wrote:

2011/4/19 Niccolò Bellidarkbas...@gmail.com:

Il 18/04/2011 12:22, Alexandru Oniciuc ha scritto:

Disable DNS lookups. Chan_sip crashes asterisk if you have that enabled and 
internet is offline.


srvlookup = no didn't help.

What about putting my provider's name in /etc/hosts?
Should it solve the problem?

A caching nameserver is not a viable solution because I want it working
even after a month without internet access.


Wouldn't a caching nameserver just return NXDOMAIN if it couldn't
contact the authoritative server for that domain?


It should do - the problem (AFAIK) is that Asterisk is unable to contact the 
DNS server, not that it doesn't return a result it likes.



Or asterisk needs to wait for the DNS server to return something. I think in
some cases a caching nameserver consults an upstream DNS server, and
waits too long for the upstream server to return an answer, before
getting back to asterisk.

Ron



--
_
-- 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] R: No Internet, no asterisk

2011-04-19 Thread Niccolò Belli
Il 18/04/2011 12:22, Alexandru Oniciuc ha scritto:
 Disable DNS lookups. Chan_sip crashes asterisk if you have that enabled and 
 internet is offline.

srvlookup = no didn't help.

What about putting my provider's name in /etc/hosts?
Should it solve the problem?

A caching nameserver is not a viable solution because I want it working
even after a month without internet access.

Cheers,
Darkbasic

P.S.
Why nobody ever fixed this annoying bug? Is there a special reason behind?

--
_
-- 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] R: No Internet, no asterisk

2011-04-19 Thread A J Stiles
On Tuesday 19 Apr 2011, Niccolò Belli wrote:
 A caching nameserver is not a viable solution because I want it working
 even after a month without internet access.

Then just make your local nameserver authoritative for the domain in question.  
You can always firewall off port 53, if the nameserver faces outward and 
you're scared of breaking the Internet for other people  :)

 P.S.
 Why nobody ever fixed this annoying bug? Is there a special reason behind?

The most likely explanation is, the developers either have more reliable 
Internet connections  (which maybe they need for SIP or IAX trunks)  or have 
configured their nameservers properly.

Remember, even a short how I fixed it for myself post counts as doing 
something useful for the community.

-- 
AJS

Answers come *after* questions.

--
_
-- 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] R: No Internet, no asterisk

2011-04-19 Thread Захаров Антон

I have enabled DNS manager in /etc/asterisk/dnsmgr.conf. It helps me.

On 19.04.2011 14:05, Niccolò Belli wrote:

Il 18/04/2011 12:22, Alexandru Oniciuc ha scritto:

Disable DNS lookups. Chan_sip crashes asterisk if you have that enabled and 
internet is offline.

srvlookup = no didn't help.

What about putting my provider's name in /etc/hosts?
Should it solve the problem?

A caching nameserver is not a viable solution because I want it working
even after a month without internet access.

Cheers,
Darkbasic

P.S.
Why nobody ever fixed this annoying bug? Is there a special reason behind?

--
_
-- 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] R: No Internet, no asterisk

2011-04-19 Thread Mark Deneen
2011/4/19 Niccolò Belli darkbas...@gmail.com:
 Il 18/04/2011 12:22, Alexandru Oniciuc ha scritto:
 Disable DNS lookups. Chan_sip crashes asterisk if you have that enabled and 
 internet is offline.

 srvlookup = no didn't help.

 What about putting my provider's name in /etc/hosts?
 Should it solve the problem?

 A caching nameserver is not a viable solution because I want it working
 even after a month without internet access.

Wouldn't a caching nameserver just return NXDOMAIN if it couldn't
contact the authoritative server for that domain?

-M

--
_
-- 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] R: No Internet, no asterisk

2011-04-19 Thread Eric Wieling

Make sure ALL IP addresses of the system are in /etc/hosts, as well as the IP 
of your provider.  Asterisk gets upset if it can't do a reverse lookup of an IP 
address on the system.

-Original Message-
From: asterisk-users-boun...@lists.digium.com 
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Niccolò Belli
Sent: Tuesday, April 19, 2011 6:05 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] R: No Internet, no asterisk

Il 18/04/2011 12:22, Alexandru Oniciuc ha scritto:
 Disable DNS lookups. Chan_sip crashes asterisk if you have that enabled and 
 internet is offline.

srvlookup = no didn't help.

What about putting my provider's name in /etc/hosts?
Should it solve the problem?

A caching nameserver is not a viable solution because I want it working
even after a month without internet access.

Cheers,
Darkbasic

P.S.
Why nobody ever fixed this annoying bug? Is there a special reason behind?

--
_
-- 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] R: No Internet, no asterisk

2011-04-19 Thread Matt Riddell

On 20/04/11 1:58 AM, Mark Deneen wrote:

2011/4/19 Niccolò Bellidarkbas...@gmail.com:

Il 18/04/2011 12:22, Alexandru Oniciuc ha scritto:

Disable DNS lookups. Chan_sip crashes asterisk if you have that enabled and 
internet is offline.


srvlookup = no didn't help.

What about putting my provider's name in /etc/hosts?
Should it solve the problem?

A caching nameserver is not a viable solution because I want it working
even after a month without internet access.


Wouldn't a caching nameserver just return NXDOMAIN if it couldn't
contact the authoritative server for that domain?


It should do - the problem (AFAIK) is that Asterisk is unable to contact 
the DNS server, not that it doesn't return a result it likes.


Therefore a caching nameserver (bind9 etc) should solve it.

--
Cheers,

Matt Riddell
___

http://www.venturevoip.com/news.php (Daily Asterisk News)
http://www.venturevoip.com/exchange.php (Full ITSP Solution)
http://www.venturevoip.com/cc.php (Call Centre Solutions)

--
_
-- 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


[asterisk-users] R: No Internet, no asterisk

2011-04-18 Thread Alexandru Oniciuc
Disable DNS lookups. Chan_sip crashes asterisk if you have that enabled and 
internet is offline.

Regards,
Alex


-Messaggio originale-
Da: asterisk-users-boun...@lists.digium.com 
[mailto:asterisk-users-boun...@lists.digium.com] Per conto di Niccolò Belli
Inviato: lunedì 18 aprile 2011 12:17
A: Asterisk Users Mailing List - Non-Commercial Discussion
Oggetto: [asterisk-users] No Internet, no asterisk

Hi,
this is an old outstanding problem, unfortunately I don't remember how to 
walkaround it. I use asterisk 1.8.3 and I have a public IP in my network 
interface. As soon as the Internet connection goes down, phones stop working. I 
want to be able to use pstn, isdn and the gsm gateway even if the Internet 
connection goes down, how can I achieve it?

Thank you,
Darkbasic

--
_
-- 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