<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(&quot;*&quot;), serialize_branches(1) and next_branches(). &nbsp;The contact header from the 302 was as follows:<BR>
<BR>
Contact:&lt;sip:<a href="+13030000000@ww.xx.116.46:5060">+13030000000@ww.xx.116.46:5060</a>;user=phone&gt;;q=0.5,&lt;sip:<a href="+13030000000@ww.xx.119.46:5060">+13030000000@ww.xx.119.46:5060</a>;user=phone&gt;;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: &lt;sip:<a href="+13030000000@ww.xx.119.46:5060">+13030000000@ww.xx.119.46:5060</a>;user=phone&gt; q=250 <BR>
DBG:uac_redirect:sort_contacts: sort_contacts: &lt;sip:<a href="+13030000000@ww.xx.116.46:5060">+13030000000@ww.xx.116.46:5060</a>;user=phone&gt; q=500 <BR>
DBG:uac_redirect:shmcontact2dset: adding contact &lt;sip:<a href="+13030000000@ww.xx.119.46:5060">+13030000000@ww.xx.119.46:5060</a>;user=phone&gt; <BR>
DBG:uac_redirect:shmcontact2dset: adding contact &lt;sip:<a href="+13030000000@ww.xx.116.46:5060">+13030000000@ww.xx.116.46:5060</a>;user=phone&gt; <BR>
DBG:core:serialize_branches: loaded &lt;sip:<a href="+13030000000@ww.xx.119.46:5060">+13030000000@ww.xx.119.46:5060</a>;user=phone&gt;, q=-1 q_flag &lt;0&gt; <BR>
DBG:core:serialize_branches: loaded &lt;sip:<a href="+13030000000@ww.xx.116.46:5060">+13030000000@ww.xx.116.46:5060</a>;user=phone&gt;, q=500 q_flag &lt;16&gt; <BR>
DBG:core:next_branches: branch is &lt;sip:<a href="+13030000000@ww.xx.116.46:5060">+13030000000@ww.xx.116.46:5060</a>;user=phone&gt; <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, &quot;Bogdan-Andrei Iancu&quot; &lt;<a href="bogdan@voice-system.ro">bogdan@voice-system.ro</a>&gt; wrote:<BR>
<BR>
<FONT COLOR="#0000FF">&gt; Hi Jeff,<BR>
&gt; <BR>
&gt; please post the debug=6 logs - also be sure you are using the latest <BR>
&gt; version as a similar bug was fixed one or two weeks ago.<BR>
&gt; <BR>
&gt; Regards,<BR>
&gt; Bogdan<BR>
&gt; <BR>
&gt; Jeff Pyle wrote:<BR>
</FONT><FONT COLOR="#008000">&gt;&gt; Hello,<BR>
&gt;&gt; <BR>
&gt;&gt; I catch a 302 in a failure_route that runs: get_redirects(&#8220;*&#8221;), <BR>
&gt;&gt; serialize_branches and next_branches. The subsequent t_relay() causes <BR>
&gt;&gt; a parallel fork to both contacts in the 302&#8217;s Contact header.<BR>
&gt;&gt; <BR>
&gt;&gt; The 302&#8217;s Contact header looks like this:<BR>
&gt;&gt; Contact:&lt;sip:<a href="+13030000000@qq.rr.ss.tt:5060">+13030000000@qq.rr.ss.tt:5060</a>;user=phone&gt;;q=0.5,&lt;sip:+1303000000<BR>
&gt;&gt; <a href="0@qq.rr.ww.tt:5060">0@qq.rr.ww.tt:5060</a>;user=phone&gt;;q=0.25<BR>
&gt;&gt; <BR>
&gt;&gt; I would expect it to load only the q=0.5 route at first, no?<BR>
&gt;&gt; <BR>
&gt;&gt; <BR>
&gt;&gt; - Jeff<BR>
&gt;&gt; ------------------------------------------------------------------------<BR>
&gt;&gt; <BR>
&gt;&gt; _______________________________________________<BR>
&gt;&gt; Users mailing list<BR>
&gt;&gt; <a href="Users@lists.opensips.org">Users@lists.opensips.org</a><BR>
&gt;&gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><BR>
&gt;&gt; &nbsp;&nbsp;<BR>
</FONT><FONT COLOR="#0000FF">&gt; <BR>
</FONT></SPAN></FONT>
</BODY>
</HTML>