<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hi Tito,<br>
      <br>
      The 477 is locally generated by OpenSIPS prior to send the the
      request out. This is why you cannot have in in the failure route
      (which is triggered by the failure of the transaction, AFTER the
      request was sent out).<br>
      <br>
      What you can do is to use the 2 flag for t_relay() (see
      <a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/2.3.x/tm.html#t_relay">http://www.opensips.org/html/docs/modules/2.3.x/tm.html#t_relay</a>)
      and check in script for the failure of t_relay().<br>
      <br>
      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>

OpenSIPS Summit May 2017 Amsterdam
  <a class="moz-txt-link-freetext" href="http://www.opensips.org/events/Summit-2017Amsterdam.html">http://www.opensips.org/events/Summit-2017Amsterdam.html</a>
</pre>
    <div class="moz-cite-prefix">On 05/01/2017 10:55 PM, Tito Cumpen
      wrote:<br>
    </div>
    <blockquote
cite="mid:CANZPVB7vgG0SSceoCaGupscRhwieDOcNLWqqokiRc-YSZa6gew@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>Group,</div>
        <div><br>
        </div>
        Is there a tm param to force 477 failures to go to failure block
        ?
        <div><br>
        </div>
        <div>IE: I have a wss socket that times out or closes connection
          but the UL entry is still active</div>
        <div>so the connection attempt fails and the 477 is sent back to
          the UAC instead of trying the logic in the failure block. Can
          anything be done here ?</div>
        <div><br>
        </div>
        <div><br>
          Thanks,<br>
          Tito</div>
        <div>
          <div><br>
          </div>
          <div><br>
          </div>
        </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>