<div dir="ltr"><div>Matthew,</div><div><br></div><div>In failure_route[], you're dealing with transaction, not branch. And winning transaction is one with biggest return code.</div><div>But can you please explain a bit more about your task?</div><div>Means I did not get what is first branch and second one.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">вт, 15 февр. 2022 г. в 19:54, Marrold <<a href="mailto:kamailio@marrold.co.uk">kamailio@marrold.co.uk</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div>Hello,<br></div><div><br></div>I'm using Kamailio as a proxy between several voice gateways and if the call fails for whatever reason (far end is busy etc) I am forwarding to an Asterisk box to play an announcement.<br></div><div><br></div><div>Within the failure route I am using  allow_source_address_group() to <span><span>ascertain if the failure response was from a Voice Gateway or Asterisk itself, however it appears to return the group for the first branch when the reply is from the second branch to Asterisk.<br><br></span></span></div><div><span><span>To handle the failure I am adding some headers, and setting a new destination indirectly with ds_select_dst before t_relay. I am using 5.5.3 on Debian 11, using KEMI / Python.</span></span></div><div><span><span><br></span></span></div><div><span><span>Does anyone have any ideas?<br></span></span></div><div><br></div><div>Thanks</div><div>Matthew<br></div><br></div>
__________________________________________________________<br>
Kamailio - Users Mailing List - Non Commercial Discussions<br>
  * <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
Important: keep the mailing list in the recipients, do not reply only to the sender!<br>
Edit mailing list options or unsubscribe:<br>
  * <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Best regards,<div>Igor</div></div></div>