<div dir="ltr">Hello,<div><br></div><div>I haven't added the branch failure event route and not worked much with it, but I guess it works like adding a new branch in a parallel forking, instead of serial forking that is done with failure_route.</div><div><br></div><div>I will look at the code when I get a chance, the workaround for now should be enforcing the reply code inside a failure_route, eventually by setting some flag inside event route so you know you handled the redirect reply.</div><div><br></div><div>Cheers,</div><div>Daniel</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 1, 2018 at 5:46 PM, Marco Capetta <span dir="ltr"><<a href="mailto:mcapetta@sipwise.com" target="_blank">mcapetta@sipwise.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
we have a problem of final reply code in case of 302 and then 486 busy.<br>
<br>
<br>
This is our scenario:<br>
<br>
A, B and C are subscribers.<br>
<br>
A ----------> Kamailio ----------> B<br>
Kamailio <---302---- B<br>
Kamailio -----------------------> C<br>
Kamailio <---486----------------- C<br>
A <---302---- Kamailio<br>
<br>
Expected behavior: Kamailio should reply to A with 486, as C was busy, and not 302.<br>
<br>
<br>
<br>
We have kamailio v5.1.4<br>
<br>
In the call to B we set both failure and branch_failure:<br>
t_on_failure("failure_route");<br>
t_on_branch_failure("failure_r<wbr>edirect");<br>
<br>
in order to handle the 302 redirect per branch with:<br>
event_route[tm:branch-failure:<wbr>failure_redirect]<br>
{<br>
if($T_reply_code == 301 || $T_reply_code == 302)<br>
{<br>
do redirect ...<br>
}<br>
}<br>
<br>
and the final failure with:<br>
failure_route[FAILURE_ROUTE_LO<wbr>CAL]<br>
{<br>
do something ...<br>
}<br>
<br>
Since we have 'modparam("tm", "failure_reply_mode", 3)' my expectation is to get the winning reply from the branch of last step.<br>
<br>
<br>
<br>
Is there any configuration I'm missing?<br>
Since we manage the redirect with a branch-failure, is the winning reply calculated in a different way?<br>
<br>
<br>
Thanks<br>
Marco<br>
<br>
______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi<wbr>-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Daniel-Constantin Mierla - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a></div><div><a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a></div></div></div></div></div>
</div>