Asterisk doesn't start properly at system startup. DNS lookup fails.
Posted
by leiflundgren
on Super User
See other posts from Super User
or by leiflundgren
Published on 2010-04-07T21:29:13Z
Indexed on
2010/04/07
21:33 UTC
Read the original article
Hit count: 258
asterisk
When I start my Ubuntu system it attempts two DNS lookups. One to find out what my internet-routers external ip is. And one to find the IP of my PSTN-SIP-provider.
Both fails.
[Apr 7 22:14:54] WARNING[1675] chan_sip.c: Invalid address for externhost keyword: sip.mydomain.com
...
[Apr 7 22:14:54] WARNING[1675] acl.c: Unable to lookup 'sip.myprovider.com'
And since the DNS fails it cannot register properly a cannot make outgoing or incoming calls.
If I later, after bootup, restart asterisk everything works excelent.
Any idea how I should setup things so that either:
Delay Asterisk startup so that DNS is up and healthy first.
Somehow get Asterisk to re-try the DNS thing later.
Regards Leif
© Super User or respective owner