<HTML>
<HEAD>
<TITLE>Re: [OpenSIPS-Users] serialize_branches/next_branches problem</TITLE>
</HEAD>
<BODY>
<FONT FACE="Tahoma, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:10pt'>Hi Bogdan,<BR>
<BR>
Debug level was 6 for get_redirects("*"), serialize_branches(1) and next_branches(). The contact header from the 302 was as follows:<BR>
<BR>
Contact:<sip:<a href="+13030000000@ww.xx.116.46:5060">+13030000000@ww.xx.116.46:5060</a>;user=phone>;q=0.5,<sip:<a href="+13030000000@ww.xx.119.46:5060">+13030000000@ww.xx.119.46:5060</a>;user=phone>;q=0.25<BR>
<BR>
Debug output:<BR>
<BR>
DBG:uac_redirect:get_redirect: resume branch=0 <BR>
DBG:uac_redirect:get_redirect: checking branch=0 (added=0) <BR>
DBG:uac_redirect:get_redirect: branch=0 is a redirect (added=0) <BR>
DBG:core:parse_headers: flags=7 <BR>
DBG:core:get_hdr_field: content_length=0 <BR>
DBG:core:get_hdr_field: found end of header <BR>
DBG:uac_redirect:sort_contacts: sort_contacts: <sip:<a href="+13030000000@ww.xx.119.46:5060">+13030000000@ww.xx.119.46:5060</a>;user=phone> q=250 <BR>
DBG:uac_redirect:sort_contacts: sort_contacts: <sip:<a href="+13030000000@ww.xx.116.46:5060">+13030000000@ww.xx.116.46:5060</a>;user=phone> q=500 <BR>
DBG:uac_redirect:shmcontact2dset: adding contact <sip:<a href="+13030000000@ww.xx.119.46:5060">+13030000000@ww.xx.119.46:5060</a>;user=phone> <BR>
DBG:uac_redirect:shmcontact2dset: adding contact <sip:<a href="+13030000000@ww.xx.116.46:5060">+13030000000@ww.xx.116.46:5060</a>;user=phone> <BR>
DBG:core:serialize_branches: loaded <sip:<a href="+13030000000@ww.xx.119.46:5060">+13030000000@ww.xx.119.46:5060</a>;user=phone>, q=-1 q_flag <0> <BR>
DBG:core:serialize_branches: loaded <sip:<a href="+13030000000@ww.xx.116.46:5060">+13030000000@ww.xx.116.46:5060</a>;user=phone>, q=500 q_flag <16> <BR>
DBG:core:next_branches: branch is <sip:<a href="+13030000000@ww.xx.116.46:5060">+13030000000@ww.xx.116.46:5060</a>;user=phone> <BR>
<BR>
The Opensips build is from an SVN checkout of branches/1.5 about 15:00 GMT today.<BR>
<BR>
<BR>
- Jeff<BR>
<BR>
<BR>
<BR>
<BR>
On 3/23/09 10:38 AM, "Bogdan-Andrei Iancu" <<a href="bogdan@voice-system.ro">bogdan@voice-system.ro</a>> wrote:<BR>
<BR>
<FONT COLOR="#0000FF">> Hi Jeff,<BR>
> <BR>
> please post the debug=6 logs - also be sure you are using the latest <BR>
> version as a similar bug was fixed one or two weeks ago.<BR>
> <BR>
> Regards,<BR>
> Bogdan<BR>
> <BR>
> Jeff Pyle wrote:<BR>
</FONT><FONT COLOR="#008000">>> Hello,<BR>
>> <BR>
>> I catch a 302 in a failure_route that runs: get_redirects(“*”), <BR>
>> serialize_branches and next_branches. The subsequent t_relay() causes <BR>
>> a parallel fork to both contacts in the 302’s Contact header.<BR>
>> <BR>
>> The 302’s Contact header looks like this:<BR>
>> Contact:<sip:<a href="+13030000000@qq.rr.ss.tt:5060">+13030000000@qq.rr.ss.tt:5060</a>;user=phone>;q=0.5,<sip:+1303000000<BR>
>> <a href="0@qq.rr.ww.tt:5060">0@qq.rr.ww.tt:5060</a>;user=phone>;q=0.25<BR>
>> <BR>
>> I would expect it to load only the q=0.5 route at first, no?<BR>
>> <BR>
>> <BR>
>> - Jeff<BR>
>> ------------------------------------------------------------------------<BR>
>> <BR>
>> _______________________________________________<BR>
>> Users mailing list<BR>
>> <a href="Users@lists.opensips.org">Users@lists.opensips.org</a><BR>
>> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><BR>
>> <BR>
</FONT><FONT COLOR="#0000FF">> <BR>
</FONT></SPAN></FONT>
</BODY>
</HTML>