<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 22.01.20 19:19, Richard Fuchs wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:ecadb771-02e3-74dd-ecac-78dc122efcba@sipwise.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <div class="moz-cite-prefix">On 22/01/2020 13.15, George
        Diamantopoulos wrote:<br>
      </div>
      <blockquote type="cite"
cite="mid:CAPcKEYMVy5U293u_sZDBD2cu+K5X0bqXB5_t4U05OHYD2EBTYg@mail.gmail.com">
        <meta http-equiv="content-type" content="text/html;
          charset=UTF-8">
        <div dir="ltr">
          <div dir="ltr"><br>
          </div>
          <br>
          <div class="gmail_quote">
            <div dir="ltr" class="gmail_attr">On Wed, 22 Jan 2020 at
              18:28, Richard Fuchs <<a
                href="mailto:rfuchs@sipwise.com" moz-do-not-send="true">rfuchs@sipwise.com</a>>
              wrote:<br>
            </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
              0.8ex;border-left:1px solid
              rgb(204,204,204);padding-left:1ex">On 22/01/2020 11.06,
              Sebastian Damm wrote:<br>
              > Hi,<br>
              ><br>
              > our scenario is the following: We have two clients
              registered to our<br>
              > Kamailio server, one with a TLS capable phone, one
              via websocket. Now,<br>
              > when a call comes in, the call is forked and is sent
              out to both<br>
              > clients. rtpengine handling is done in the branch
              route, so there are<br>
              > two offers, and we use the "via-branch" parameter.<br>
              ><br>
              > Now, when one branch answers the call, what happens
              to the other<br>
              > branch? I there a way to delete the other branch? How
              and in which<br>
              > route? Or does Kamailio do this automatically?<br>
              <br>
              You do it the same way as you handle an answer: You issue
              a delete with <br>
              the via-branch option.<br>
            </blockquote>
            <div>Doesn't this happen automatically when one uses
              rtpengine_manage() in the failure_route?</div>
          </div>
        </div>
      </blockquote>
      <p>I would think it does, as long as you supply the via-branch
        parameter.</p>
    </blockquote>
    <p><br>
    </p>
    <p>A remark for kamailio transaction states point of view: in
      failure route the entire transaction is in failed state, so there
      is not active branch, so at that point it should delete all
      (previous) rtpengine sessions/branches.</p>
    <p>Re-routing to a new destinations should go via a branch route
      where a new session is initiated in the rtpengine.</p>
    <p>As I got it, the use of via-branch flag for deleting a session
      makes sense in event route for branch-failure, when other branches
      can still be active or one was answered.</p>
    <p>Btw, a few questions for further clarifications: if a call has
      parallel forking and rtpengine offer is executed for each branch,
      one is answered, but the other branch-sessions are not not
      deleted, what does rtpengine? It times them out, or keeps them for
      the duration of the call?</p>
    <p>Also in the case of parallel forking, if via-branch is not give
      to rtpengine offer command, does the 2nd (and the next) rtpengine
      offer command overwrite the previous one, so the rtpengine keeps
      only the data from the last one?<br>
    </p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - March 9-11, 2020, Berlin - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - April 27-29, 2020, in Berlin -- <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
  </body>
</html>