<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Hello Andreas,<br>
<br>
The approach is good - still, for 480 or 487 you should not
anything - a the default behavior of the failure route is to let
the final reply to be routed back to the caller. You have to
explicitly handle there the cases (based on reply code) when you
want to re-route the call (create a new branch) to a new
destination. <br>
<br>
Best regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 02/07/2017 04:03 PM, Andreas
Bøckmann wrote:<br>
</div>
<blockquote
cite="mid:CAN1RbiDcd3=MLAihfg8kt20c4oLGOpHrSa3=vs9gRKVndVuAVQ@mail.gmail.com"
type="cite">
<div dir="ltr">Hello everybody
<div><br>
</div>
<div>How can I separate different Reason headers to achieve a
setup where NO_ANSWER (480) ends the dialog (and sends
CANCELs) while other reasons like e.g. TM timeout leads to
routing the requests to GW?<br>
<div><br>
</div>
</div>
<div>Could this be handled in the failure route as something
like below or am I way off here?</div>
<div><br>
</div>
<div> if (t_check_status("480")) {<br>
</div>
<div> t_relay();</div>
<div> exit;</div>
<div> }</div>
<div><br>
</div>
<div>
<div> if (t_check_status("487")) {<br>
</div>
<div> t_relay();</div>
<div> exit;</div>
<div> }</div>
</div>
<div><br>
</div>
<div>
<div> if (t_check_status("404")) {<br>
</div>
<div> route_to_gw("gwname");</div>
<div> t_on_failure("gwfailure");</div>
<div> }</div>
</div>
<div><br>
</div>
<div>Thanks!</div>
<div><br>
</div>
<div>//Andy</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<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>