<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div dir="ltr">What could change this behavior? I see that the first
      404 I get return is passed on.
      <div><br>
      </div>
      <div>Could it be the t_newtran(). I Honestly don't remember why we
        put it there.</div>
      <div>
        <div>if ( !lookup("doorlocation") ) {</div>
        <div>                $var(rc) = $rc;</div>
        <div>                t_newtran();</div>
        <div>                switch ($var(rc)) {</div>
      </div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div>The doorlocation is also a "fake" location table, not used
        for registrations, but to make a branch to either a fixed
        terminal, or a mobile phone, which uses a second location
        table. </div>
      <div>The fixed terminal can right away return 404, but the mobile
        phone, first has to receive a push, which can take some seconds.</div>
      <div>Can this time difference in reply cause the issue?</div>
      <div><br>
      </div>
      <div>  Kjeld Flarup</div>
    </div>
    <div class="gmail_extra"><br>
      <div class="gmail_quote">2018-04-16 9:23 GMT+02:00
        Daniel-Constantin Mierla <span dir="ltr"><<a
            href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span>:<br>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
          <br>
          you do not need to discard the branch replies at all. Kamailio
          sends<br>
          only one reply back, even if you do many outgoing branches,
          kamailio is<br>
          going to wait until all of the get a final reply and then
          selects the<br>
          one with highest priority to send back.<br>
          <br>
          Cheers,<br>
          Daniel<br>
          <div class="HOEnZb">
            <div class="h5"><br>
              <br>
              On 14.04.18 23:05, Kjeld Flarup wrote:<br>
              > Hello<br>
              ><br>
              > What is the correct way to handle, if a branched call
              reaches a 404 on<br>
              > one of the branches.<br>
              ><br>
              > Currently I discard all 404 in onreply_route, but if
              all branches has<br>
              > 404, then this is never send to the caller.<br>
              ><br>
              <br>
              -- <br>
            </div>
          </div>
          <span class="HOEnZb"><font color="#888888">Daniel-Constantin
              Mierla<br>
              <a href="http://www.twitter.com/miconda" rel="noreferrer"
                target="_blank">www.twitter.com/miconda</a> -- <a
                href="http://www.linkedin.com/in/miconda"
                rel="noreferrer" target="_blank">www.linkedin.com/in/miconda</a><br>
              Kamailio Advanced Training - April 16-18, 2018, Berlin - <a
                href="http://www.asipto.com" rel="noreferrer"
                target="_blank">www.asipto.com</a><br>
              Kamailio World Conference - May 14-16, 2018 - <a
                href="http://www.kamailioworld.com" rel="noreferrer"
                target="_blank">www.kamailioworld.com</a><br>
              <br>
            </font></span></blockquote>
      </div>
      <br>
    </div>
  </body>
</html>