Hi Yuri,

2011/6/19 Yuri <y...@rawbw.com>:
> On 06/18/2011 17:50, Yuri wrote:
>> recvfrom call retrieving result for DNS query never receives the result
>> for some reason.
>>
>
> I found bug in code resolving the sip-dig hang:
> in file sres_blocking.c lines
>       if (c->block->fds[i].revents | POLLERR)
>         sres_resolver_error(c->resolver, c->block->fds[i].fd);
>       if (c->block->fds[i].revents | POLLIN)
>         sres_resolver_receive(c->resolver, c->block->fds[i].fd);
>
> should look like this:
>
>       if (c->block->fds[i].revents & POLLERR)
>         sres_resolver_error(c->resolver, c->block->fds[i].fd);
>       if (c->block->fds[i].revents & POLLIN)
>         sres_resolver_receive(c->resolver, c->block->fds[i].fd);

Thanks for catching this...

> After this sip-dig works fine. But empathy still has 'Network error'.

Does your UA send DNS queries? Do they look valid? Where Sofia reads
the resolv.conf? Can you get logs from UA?

-- 
Pekka.Pessi mail at nokia.com

------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to