<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p><font size="-1">Denis,</font></p>
    <p><font size="-1">all the examples I have seen for this do the
        status check in a failure route:</font></p>
    <p><font size="-1">t_on_failure("1");</font></p>
    <p><font size="-1">..........<br>
      </font></p>
    <p><font size="-1">failure_route[1] {<br>
             if (t_was_cancelled()) {<br>
                 exit;<br>
             }<br>
         <br>
             # uncomment the following lines if you want to block client
        <br>
             # redirect based on 3xx replies.<br>
             ##if (t_check_status("3[0-9][0-9]")) {<br>
             ##t_reply("404","Not found");<br>
             ##    exit;<br>
             ##}<br>
      </font></p>
    <p><font size="-1">}<br>
      </font></p>
    <div class="moz-signature"><font size="-1"><font face="Verdana">Kind
          regards,<br>
          <br>
          Adrian Fretwell<br>
          <br>
        </font></font><small><small><small><font face="Verdana"></font></small></small></small>
    </div>
    <div class="moz-cite-prefix">On 18/08/16 09:58, Denis wrote:<br>
    </div>
    <blockquote cite="mid:686221444.20160818115830@ptl.ru" type="cite">
      <title>reject 3xx code</title>
      <span style=" font-family:'Times New Roman'; font-size: 12pt;">Hello<br>
        <br>
        I am using Opensips 2.1.2.<br>
        I want to block sending 3xx codes to caller.<br>
        <br>
        In reply route i wrote such code <br>
        if (status=~"30[1,2]") {<br>
         drop();<br>
        }<br>
        <br>
        but i see that 302, for example, still process successfully.<br>
        <br>
        Thank you for any help.<br>
        <br>
        <span style=" font-family:'arial'; font-size: 10pt;"><i>-- <br>
          </i></span></span><a moz-do-not-send="true" style="
        font-family:'arial'; font-size: 10pt;"
        href="mailto:denis7979@mail.ru">mailto:denis7979@mail.ru</a>
      <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>