<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <tt>Rodrigo,<br>
      <br>
      See more on the MI interface in OpenSIPS:<br>
          <a class="moz-txt-link-freetext" href="http://www.opensips.org/Documentation/Interface-MI-1-11">http://www.opensips.org/Documentation/Interface-MI-1-11</a><br>
      <br>
      And about the MI commands exposed by the dialog module:<br>
         
      <a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/1.11.x/dialog.html#id296664">http://www.opensips.org/html/docs/modules/1.11.x/dialog.html#id296664</a><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>
    <div class="moz-cite-prefix">On 18.08.2015 15:19, Rodrigo Pimenta
      Carvalho wrote:<br>
    </div>
    <blockquote cite="mid:1439900345539.73189@inatel.br" type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
      <p>Ok Thanks.<br>
      </p>
      <p><br>
      </p>
      <p>I still have to know what is  a '<span style="color: rgb(33,
          33, 33); font-family: monospace; font-size: 16px;
          background-color: rgb(255, 255, 255);">dlg_list_dlg command</span>'
        and what is a '<span style="color: rgb(33, 33, 33); font-family:
          monospace; font-size: 16px; background-color: rgb(255, 255,
          255);">dlg_end_dlg</span>​ command'. But, your hint will serve
        as a direction to me.<br>
      </p>
      <p>Best regards.<br>
      </p>
      <p><br>
      </p>
      <div id="Signature">
        <div name="divtagdefaultwrapper"
          style="font-family:Calibri,Arial,Helvetica,sans-serif;
          font-size:; margin:0">
          <div class="BodyFragment"><font size="2">
              <div class="PlainText">RODRIGO PIMENTA CARVALHO<br>
                Inatel Competence Center<br>
                Software<br>
                Ph: +55 35 3471 9200 RAMAL 979<br>
              </div>
            </font></div>
        </div>
      </div>
      <div style="color: rgb(33, 33, 33);">
        <hr tabindex="-1" style="display:inline-block; width:98%">
        <div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt"
            color="#000000" face="Calibri, sans-serif"><b>De:</b>
            Bogdan-Andrei Iancu <a class="moz-txt-link-rfc2396E" href="mailto:bogdan@opensips.org">&lt;bogdan@opensips.org&gt;</a><br>
            <b>Enviado:</b> terça-feira, 18 de agosto de 2015 09:15<br>
            <b>Para:</b> OpenSIPS users mailling list; Rodrigo Pimenta
            Carvalho<br>
            <b>Assunto:</b> Re: [OpenSIPS-Users] How to tear down a
            call, when the UA receives a new INVITE? Is it possible?</font>
          <div> </div>
        </div>
        <div><tt>Hi Rodrigo,<br>
            <br>
            What you can do is to write down an external script to look
            for the S1 calls (using the MI dlg_list_dlg command) and to
            terminate the call (using the dlg_end_dlg MI command).<br>
            You can invoke such an external script via exec() module.<br>
            <br>
            Regards,<br>
          </tt>
          <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
          <div class="moz-cite-prefix">On 18.08.2015 15:03, Rodrigo
            Pimenta Carvalho wrote:<br>
          </div>
          <blockquote type="cite">
            <style type="text/css" style="">
<!--
p
        {margin-top:0px;
        margin-bottom:0px}
-->
</style>
            <p><br>
            </p>
            <p>Dear OpenSIPS-users,<br>
            </p>
            <p><br>
            </p>
            <p>Let´s suppose someone (S1) is talking at a softphone. <br>
            </p>
            <p>Let´s suppose another person (S2) needs to talk to S1 at
              same time.<br>
            </p>
            <p>So, S2 calls S1.<br>
            </p>
            <p><br>
            </p>
            <p>How to configure OpenSIPS to tear down ("hang up") the
              current S1 call and then  send the S2 INVITE message to
              S1? Some example?<br>
            </p>
            <p><br>
            </p>
            <p>In my scenery, the user in S2 has a kind of high priority
              when calling any another one. So, S2 must be answered as
              soon as possible.</p>
            <p><br>
            </p>
            <p>Any hint will be very helpful!<br>
            </p>
            <p><br>
            </p>
            <p>Best regards.<br>
            </p>
            <p>​<br>
            </p>
            <p><br>
            </p>
            <div id="Signature">
              <div name="divtagdefaultwrapper"
                style="font-family:Calibri,Arial,Helvetica,sans-serif;
                font-size:; margin:0">
                <div class="BodyFragment"><font size="2">
                    <div class="PlainText">RODRIGO PIMENTA CARVALHO<br>
                      Inatel Competence Center<br>
                      Software<br>
                      Ph: +55 35 3471 9200 RAMAL 979<br>
                    </div>
                  </font></div>
              </div>
            </div>
            <br>
            <fieldset class="mimeAttachmentHeader"></fieldset>
            <br>
            <pre>_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a moz-do-not-send="true" 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>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>