<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<font face="monospace">Hi Yury,<br>
<br>
Yes, the failure route is per-transaction - it is triggered when
the whole transaction fails, meaning it got negative replies on
all its branches. In failure route you see only the "wining"
branch (from all existing branches), meaning the branch with the
lowest reply code.<br>
<br>
Best regards,<br>
</font>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
<a class="moz-txt-link-freetext" href="https://www.siphub.com">https://www.siphub.com</a></pre>
<div class="moz-cite-prefix">On 5/14/23 4:47 PM, Yury Kirsanov
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAD1_sesMwG8eYEprh5_O+nYTmAP6ZAxspM33XwJWDC8jBAfzYQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hi,
<div>I'm adding multiple branches to the initial request and
then use t_relay() to fire them all up to multiple
destinations. But it seems that I can only set up only one
t_on_failure route. How do I distinguish between branches in
that failure route? Part of the branches can respond with 4xx,
part - with 5xx and so on and only one would respond with 200
OK. I need to process all FAILED branches, not caring too much
about the successful one. What would be the best way to do
this? Thanks.</div>
<div><br>
</div>
<div>Regards,</div>
<div>Yury.</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>