2009/9/18 Timo Bruhn <voip_v...@web.de>:
> [...] When sofia-sip tries to register its user agents at startup, the first
> dns server is used
> to resolve the server name. The server refuses the request. Now the expected
> behaviour
> should be a fallback to the second server. Unfortunately this never happens.
Yes, the fallback is probably the right thing to do.
> One way to fix this is to mark the server as temporarily unavailable as I did
> in the patch
> attached to this mail. The fix is working fine in my test environment.
> Could anyone of the developers please have a look at it to verify that it
> does not break
> anything else i did not see?
It should not break anything, or at least I don't think it does, but
here is my patch that also falls to the next server on server error
and
not implemented error. Please give it a try, and report if it fixes
your problems (or crashes and burns), too.
--
Pekka.Pessi mail at nokia.com
--- old-sofia-sip/libsofia-sip-ua/sresolv/sres.c 2009-09-24 13:16:38.000000000 +0300
+++ new-sofia-sip/libsofia-sip-ua/sresolv/sres.c 2009-09-24 13:16:38.000000000 +0300
@@ -3503,6 +3503,14 @@
sres_send_dns_query(res, query);
query->q_retry_count++;
}
+ else if (error == SRES_AUTH_ERR ||
+ error == SRES_UNIMPL_ERR ||
+ error == SRES_SERVER_ERR) {
+ dns->dns_icmp = res->res_now;
+ sres_cache_free_answers(res->res_cache, reply);
+ /* Resend query/report error to application */
+ sres_resend_dns_query(res, query, 0);
+ }
else if (!error && reply) {
/* Remove the query from the pending list */
sres_remove_query(res, query, 1);
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel