[sr-dev] uris in group 0

Avi Brender abrender at elitehosts.com
Sat Jun 23 19:58:54 CEST 2012


Hi,

We've come across a problem where URIs that are in the IP state 
(inactive - pinging) aren't being set to the 'active' state after a 
successful ping probe. We've sifted through the code and found that 
modules_k/dispatcher/dispatch.c has this code in the 
ds_option_callback() function, on line 2328:
     if (*ps->param == NULL)
     {
         LM_DBG("No parameter provided, OPTIONS-Request was finished"
                 " with code %d\n", ps->code);
         return;
     }

When the group (ie *ps->param) is 0 then that statement evaluates to 
true and the function returns without executing the callback. For groups 
 > 0 the code works fine.

To fix this we've changed the statement to:
     if (ps->param == NULL)

If you have any questions, comments or feed back please let me know. If 
that change gets accepted please let me know as well so that we can 
remove the patch from our build systems.

Thanks for the great software!

*Avi Brender*
*Elite Hosts*


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20120623/6c5c2463/attachment.htm>


More information about the sr-dev mailing list