Federico Giannici wrote:
Bogdan-Andrei Iancu wrote:
Hi Federico,
that's strange, but I will say it has nothing to do with openser,
since it uses for DNS sys calls offered by the system libs.....
any updates?
Yes, I traced the problem to the gethostbyname() function.
It seems that it returns NULL the SECOND time it's called by the same
process!
I still don't know why...
It's strage that it happened just after I upgraded to 3.8, but it's
strange that nobody else of OpenBSD experienced it, too!
Got it!
The problem was related to the fact that I run OpenSER chrooted.
I simply copied "/etc/resolv.conf" to the chrootted path and the
problem disappeared.
So something changed beetween OpenBSD 3.7 and 3.8 in the way
"/etc/resolv.conf" is accessed...
Bye.
> Federico Giannici wrote:
>
>> Yesterday I upgraded the version of the operating system of our sip
>> server from OpenBSD amd64 3.7 to 3.8.
>>
>> Now I noticed that domain name lookups seems to don't work anymore
>> and the INVITES are replyed with 478.
>>
>> Here is an example of the logs:
>>
>> Dec 5 13:11:03 eowyn OpenSER[15740]: ERROR: mk_proxy: could not
>> resolve hostname: "voip.eutelia.it"
>> Dec 5 13:11:03 eowyn OpenSER[15740]: ERROR: uri2proxy: bad host name
>> in URI <sip:800900800@voip.eutelia.it:5060;user=phone>
>> Dec 5 13:11:03 eowyn OpenSER[15740]: ERROR:tm:t_forward_nonack:
>> failure to add branches
>>
>> Obviously "voip.eutelia.it" is resolved by dig on the same machine.
>>
>> Anybody had the same problem?
>>
>>
>> Thanks.
ì
--
___________________________________________________
__
|- giannici(a)neomedia.it
|ederico Giannici
http://www.neomedia.it
___________________________________________________