I think $T_branch_idx is only available on branch_route, and besides, it contains the current branch ID being processed so it wouldn&#39;t be useful from replies outside the current branch.<div><br></div><div>Regards.</div>
<div><br></div><div>Carlos.<br><br><div class="gmail_quote">On Thu, Oct 11, 2012 at 11:48 AM, Alex Hermann <span dir="ltr">&lt;<a href="mailto:alex@speakup.nl" target="_blank">alex@speakup.nl</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Thursday 11 October 2012, Carlos Ruiz Díaz wrote:<br>
&gt; I can confirm this behavior.<br>
&gt;<br>
&gt; I had a similar scenario when 2 or more branches were setup. First branch<br>
&gt; timed out, while second branch was being processed a reply from first<br>
&gt; branch arrived and handled improperly by a routing logic which was<br>
&gt; configured for the second branch.<br>
&gt;<br>
&gt; I isolated each response from the different branches by parsing the branch<br>
&gt; ID that Kamailio adds to the via header after processing the request.<br>
&gt; Through this mean, I managed to handle correctly each reply from different<br>
&gt; branches no matter when the response was received.<br>
<br>
</div>I thougth of something similar. Using a common onreply_route and $T_branch_idx<br>
(but watch out for the &quot;bug&quot; i reported in another email) or setting branch<br>
flags depending on the needed handling. But this kind of defeats the purpose<br>
of having the possibility to set different onreply_routes (and makes for very<br>
messy onreply_routes).<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Greetings,<br>
<br>
Alex Hermann<br>
<br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</div></div></blockquote></div><br></div>