<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#42392c" bgcolor="#ffffff">
    <br>
    <font size="+1"><font face="Cantarell">Hello Fulo,<br>
        Bogdan provided work around some time ago.<br>
        Inside  onreply route  <br>
        <br>
                # Drop other 200 OK <br>
                if(isbflagset("RETRY_200OK_BFLAG")) {<br>
                        if(is_method("INVITE|UPDATE") &&
        t_check_status("200")) {<br>
                                drop();<br>
                        }<br>
                }<br>
        <br>
               # mark first INVITE<br>
                if(is_method("INVITE|UPDATE") &&
        t_check_status("200")) {<br>
                        setbflag("RETRY_200OK_BFLAG");<br>
        <br>
        volga629<br>
        <br>
      </font></font>
    <div class="moz-cite-prefix">On 8/30/21 4:22 AM, Fulo Lin wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAMADgHpTeFdTA40JqbN3cfRxTj8dhX5v6FuGcc-Y7DvBtiVMRA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div>When the user has two devices answering the phone at the
          same time, I expect the first device to answer the call and
          the second device to be cancelled.<br>
          <br>
          The current opensips will indeed cancel the second call, but
          the first call will have no sound, and the call will be
          disconnected after a few seconds.<br>
          <br>
          I found that opensips sends all 200 Ok (SDP) to the caller,
          and I expect that the second 200 Ok (SDP) should not be sent
          to the caller.<br>
          <br>
        </div>
        <div>I try to block the second 200 Ok(SDP) in onreply_route,
          like this.</div>
        <div><br>
          onreply_route[handle_nat] {<br>
                   if (t_check_status("200")) {<br>
                           # t_cancel_branch(); No effect<br>
                           # drop(); No effect<br>
                           #exit;<br>
                   }<br>
          }<br>
          <br>
          But this seems to have no effect.<br>
          <br>
          Is there a way to block the second 200 Ok (SDP) in
          onreply_route?<br>
          <br>
          Or is there any other way to handle concurrent answering
          calls?<br>
          <br>
          I use opensips 3.1.5 and rtpproxy 2.2.0.</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-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>