<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>
Here it is:<BR>
<BR>
Mar 30 14:55:58 opensips[16337]: DBG:uac_redirect:get_redirect: resume branch=0 <BR>
Mar 30 14:55:58 opensips[16337]: DBG:uac_redirect:get_redirect: checking branch=0 (added=0) <BR>
Mar 30 14:55:58 opensips[16337]: DBG:uac_redirect:get_redirect: branch=0 is a redirect (added=0) <BR>
Mar 30 14:55:58 opensips[16337]: DBG:core:parse_headers: flags=7 <BR>
Mar 30 14:55:58 opensips[16337]: DBG:core:get_hdr_field: content_length=0 <BR>
Mar 30 14:55:58 opensips[16337]: DBG:core:get_hdr_field: found end of header <BR>
Mar 30 14:55:58 opensips[16337]: 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>
Mar 30 14:55:58 opensips[16337]: 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>
Mar 30 14:55:58 opensips[16337]: 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>
Mar 30 14:55:58 opensips[16337]: 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>
Mar 30 14:55:58 opensips[16337]: DBG:core:serialize_branches: loaded <sip:<a href="+13030000000@ww.xx.119.46:5060">+13030000000@ww.xx.119.46:5060</a>;user=phone>, q=250 q_flag <0> <BR>
Mar 30 14:55:58 opensips[16337]: 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>
Mar 30 14:55:58 opensips[16337]: 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>
When t_relay’ing this, parallel invites went out to both the .119.46 and .116.46 hosts. Same as before. Same 302 Contact header as well.<BR>
<BR>
Shortly I’m going to be reverting to 1.4.5 from 1.5.0 because 1.5.0 just “stops” after many hours of use with no debug info and no core. I have no idea why, and my attempts to get debug information have failed. Unfortunately it’s my only option. As such, I won’t be able to test this anymore on 1.5.<BR>
<BR>
<BR>
- Jeff<BR>
<BR>
<BR>
<BR>
<BR>
On 3/30/09 5:12 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>
> could you post the debug again? maybe there is something else....<BR>
> <BR>
> Thanks and regards,<BR>
> Bogdan<BR>
> <BR>
> Jeff Pyle wrote:<BR>
</FONT><FONT COLOR="#008000">>> Hi Bogdan,<BR>
>> <BR>
>> I still get the parallel forking to both contacts.<BR>
>> <BR>
>> <BR>
>> - Jeff<BR>
>> <BR>
>> <BR>
>> <BR>
>> On 3/26/09 2:48 PM, "Bogdan-Andrei Iancu" <<a href="bogdan@voice-system.ro">bogdan@voice-system.ro</a>> wrote:<BR>
>> <BR>
>> <BR>
</FONT><FONT COLOR="#FF0000">>>> Hi Jeff,<BR>
>>> <BR>
>>> I found a small bug in the uac_redirect() function - I fixed it on 1.5<BR>
>>> and trunk, so if you upload from svn it should work now.<BR>
>>> <BR>
>>> Thanks and regards,<BR>
>>> Bogdan<BR>
>>> <BR>
>>> Jeff Pyle wrote:<BR>
>>> <BR>
</FONT><FONT COLOR="#800080">>>>> Hi Bogdan,<BR>
>>>> <BR>
>>>> Debug level was 6 for get_redirects("*"), serialize_branches(1) and<BR>
>>>> 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:+1303000<BR>
>>>> 00<BR>
>>>> <a href="00@ww.xx.119.46:5060">00@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:<BR>
>>>> <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:<BR>
>>>> <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<BR>
>>>> <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<BR>
>>>> <sip:<a href="+13030000000@ww.xx.116.46:5060">+13030000000@ww.xx.116.46:5060</a>;user=phone><BR>
>>>> DBG:core:serialize_branches: loaded<BR>
>>>> <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<BR>
>>>> <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<BR>
>>>> <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<BR>
>>>> 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>
>>>> <BR>
>>>>> 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>
>>>>> <BR>
>>>>>> 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>
>>>>>> <BR>
>>>>>> <BR>
>>>> Contact:<sip:<a href="+13030000000@qq.rr.ss.tt:5060">+13030000000@qq.rr.ss.tt:5060</a>;user=phone>;q=0.5,<sip:+13030000<BR>
>>>> 00<BR>
>>>> <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>
>>>>>> <BR>
</FONT><FONT COLOR="#008000">>> <BR>
>> <BR>
>> <BR>
</FONT><FONT COLOR="#0000FF">> <BR>
</FONT></SPAN></FONT>
</BODY>
</HTML>