Asterisk doesn't start properly at system startup. DNS lookup fails.
- by leiflundgren
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