<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix"><tt>Hi Mickael,<br>
        <br>
        If you do the "drop" in branch route, that branch will be
        discarded (not sent out at all). IF no branch is actually sent
        out, you will get the error logs from "t_forward_nonack" (as you
        have).<br>
        <br>
        In this case, the t_relay() will fail (nothing sent) - to get
        that error in script, set flag 0x02
        (<a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/1.11.x/tm.html#id294578">http://www.opensips.org/html/docs/modules/1.11.x/tm.html#id294578</a>),
        otherwise the error will be internally handled.<br>
        <br>
        A failure on sending does not trigger a failure route - failure
        route is triggered only if request sent out and the transaction
        completed with a negative code.<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></pre>
      On 06.10.2014 11:59, Mickael Marrache wrote:<br>
    </div>
    <blockquote
cite="mid:CA+=4G23dptidtFQE-0qDn_hstw-jF01puG0TK+odR+qYBm-f_w@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi,
        <div><br>
        </div>
        <div>What happens after drop() is called from a branch_route?</div>
        <div><br>
        </div>
        <div>In my case, I armed a failure route for the incoming INVITE
          in the request route and therefore, I would expect that the
          failure route would be called after drop() is called. However,
          I see the following error in the logs and the following reply
          is returned to the UAC.</div>
        <div><br>
        </div>
        <div>
          <div>Oct  6 08:57:27 DBG:tm:pre_print_uac_request: dropping
            branch &lt;sip:xxxxxxxxx@xxxxxxxxx:xxxx;user=phone&gt;</div>
          <div>Oct  6 08:57:27 ERROR:tm:t_forward_nonack: failure to add
            branches</div>
        </div>
        <div><br>
        </div>
        <div>SIP/2.0 500 Server error occurred (1/TM)<br>
        </div>
        <div><br>
        </div>
        <div>I use the failure route to detect current transaction
          failure and try the next termination if there is.</div>
        <div><br>
        </div>
        <div>Thanks,</div>
        <div>Mickael</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>