Hi,

I've been trying to use the dispatcher module in load balancing
distribution scenario, but I get this "cannot uid for dst addr" error,
when ds_next_dst() is invoked.

Went through the sources and I was wondering if there isn't actually a
bug/typo, as the attached diff (against master) tries to fix.

Thanks,
Bogdan.

diff --git a/modules_k/dispatcher/dispatch.c b/modules_k/dispatcher/dispatch.c
index b4f2ee3..421e855 100644
--- a/modules_k/dispatcher/dispatch.c
+++ b/modules_k/dispatcher/dispatch.c
@@ -1928,9 +1928,9 @@ int ds_next_dst(struct sip_msg *msg, int mode)
        {
                prev_avp = search_first_avp(dstid_avp_type, dstid_avp_name,
                                &avp_value, &st);
-               if(prev_avp!=NULL)
+               if(prev_avp==NULL)
                {
-                       LM_ERR("cannot uid for dst addr\n");
+                       LM_ERR("cannot find uid for dst addr\n");
                        return -1;
                }
                if(ds_load_replace(msg, &avp_value.s)<0)
_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to