Why dns lookup fails?

Hello all !

I have asterisk 1.6 on ubuntu server 9.04.
When asterisk trys to parse the sip.config I get messages like this :
== Parsing ‘/etc/asterisk/sip_notify.conf’: == Found
> doing dnsmgr_lookup for ‘ippi.fr
> doing dnsmgr_lookup for ‘ippi.fr

[Jul 9 10:06:25] NOTICE[2388]: chan_sip.c:9923 sip_reg_timeout: – Registration for 'xxxxx@ippi.fr’ timed out, trying again (Attempt #1)

It is as if it couldn’t solve the ippi.fr. When I set IP-Adresses, than it works. Does anybody have an idea how to get this fixed ?

Thanks a lot for any feedback !

Regards,
Fabianus

I think that this message indicates that your logon information to ippi are wrong or incorrectly specified in the config file.

Are you able to ping ippi.fr from the shell ? Seems to me an incomplete hostname…

Cheers.

Marco Bruni
www.marcobruni.net

Hello guys, thanks for your help !

pagaille, yes, I am sure about the credentials (they work in xlite).

and mbruni, yes I may ping this name from the shell :

PING ippi.fr (213.215.45.230) 56(84) bytes of data.
64 bytes from 213.215.45.230: icmp_seq=1 ttl=55 time=24.9 ms
64 bytes from 213.215.45.230: icmp_seq=2 ttl=55 time=22.0 ms
^C64 bytes from 213.215.45.230: icmp_seq=3 ttl=55 time=22.0 ms

ippi.fr ping statistics —
3 packets transmitted, 3 received, 0% packet loss, time 10266ms
rtt min/avg/max/mdev = 22.007/23.005/24.965/1.391 ms

Thanks a lot for any further idea !

Regards,
Fabianus

Is the firewall blocking the 5060 udp port ?

Cheers.

Marco Bruni
www.marcobruni.net

hello pagaille, in fact I do not have any firewall and I have the same problem with other sip accounts : if I use IP-Adresse it works, but not if I use domain names …

:frowning:

Here are my sip.conf entries for ippi - it works fine.

register => myaccount:mypassword@ippi.fr/myaccount

[ippi]
type=friend
authuser=myaccount
defaultuser=myaccount
fromuser=myaccount
fromdomain=ippi.fr
host=ippi.fr
secret=mypassword
context=incoming-on-ippi
allow=g729

If you are having the same problem with other hosts, it suggests you are having a dns problem. Do you see host lookup failure with the other applications, i.e. other than Asterisk?