[asterisk-users] DNS lookups failing for SIP register
Senad Jordanovic
senad at bicom.us
Mon Jul 31 08:08:33 MST 2006
asterisk-users-bounces at lists.digium.com wrote:
> Joshua Colp wrote:
>>> Putting an entry in /etc/hosts, or using an IP address in the
>>> register line, works.
>>
>> That's really really weird, it should use the system to lookup the
>> hostname... did restarting Asterisk not help?
>
> Joshua,
>
> That was exactly my reaction! Restarting Asterisk did not help. I had
> a look at the Asterisk source code, and it just uses gethostbyname()
> so I can't imagine why it would be any different from host or ping.
Asterisk is not able to resolve on the open socket hence why one needs to to
the reload!
We found this months ago when we were implementing the dynamic IP support
for PBXware.
So... reload should do the job:) as why it did not do it on the restart is
"another" question.
Senad
www.bicomsystems.com
More information about the asterisk-users
mailing list