<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hi Carlos,<br>
      <br>
      I made 2 commits on master:<br>
      <br>
      1) the dlg_end_dlg MI command may identify the call also by the
      SIP Call-ID<br>
         
<a class="moz-txt-link-freetext" href="https://github.com/OpenSIPS/opensips/commit/9a4f435bc1f550b0c047926fea7e9b83f71f4c7d">https://github.com/OpenSIPS/opensips/commit/9a4f435bc1f550b0c047926fea7e9b83f71f4c7d</a><br>
      <br>
      2) added a teardown MI command in rtpengine module - this is
      simple wrapper to dlg_end_dlg, just to make rtpengine happy<br>
         
<a class="moz-txt-link-freetext" href="https://github.com/OpenSIPS/opensips/commit/dd41b34cbcc7f5a8bfcd393016badde2c8ea6d5c">https://github.com/OpenSIPS/opensips/commit/dd41b34cbcc7f5a8bfcd393016badde2c8ea6d5c</a><br>
      <br>
      Best 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 02/02/2017 12:35 PM, Carlos Oliva
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAPsm+20aVoNvB0X=8S0DpugpyowPka05rtmm6bcuyU4tZ=3Kfw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>Thank you Bogdan, If you think is right I'll open a
            feature request about this.<br>
            <br>
          </div>
          Another related question: Is there any way to end a dialog
          with MI using the callID instead of dialogID? If there is, I
          can make a patch for rtpengine and try contribute it, If they
          accept.<br>
          <br>
        </div>
        thanks and regards,<br>
      </div>
      <div class="gmail_extra"><br clear="all">
        <div>
          <div class="gmail_signature" data-smartmail="gmail_signature"><b
              style="font-size:13px">
              <p dir="ltr"
style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;margin-left:30pt"><br>
                <span style="font-size:11px;font-family:Verdana;color:rgb(0,204,204);font-weight:normal;vertical-align:baseline;white-space:pre-wrap"></span></p>
              <p dir="ltr"
style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;margin-left:30pt"><br>
                <span style="font-size:11px;font-family:Verdana;color:rgb(0,204,204);font-weight:normal;vertical-align:baseline;white-space:pre-wrap"></span></p>
              <p dir="ltr"
style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;margin-left:30pt"><span style="font-size:11px;font-family:Verdana;color:rgb(0,204,204);font-weight:normal;vertical-align:baseline;white-space:pre-wrap"><img moz-do-not-send="true" src="https://lh6.googleusercontent.com/WN6hk84ri7BRmKal1fKNiC-AMmPYSDb0PtICYSJrzUa8tBua0VLuBXzjNCsxZYm2STOwRHUUnQmBKAirtvexlLg_AHY40gGbdEYQGf9oPE3yuTka_QfxoMajnQ" height="28px;" width="200px;"></span></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;margin-left:30pt"><span style="font-size:11px;font-family:Verdana;color:rgb(0,204,204);font-weight:normal;vertical-align:baseline;white-space:pre-wrap">_________________________________________________</span></p>
<span style="font-size:11px;font-family:Verdana;color:rgb(0,204,204);font-weight:normal;vertical-align:baseline;white-space:pre-wrap"></span><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;margin-left:30pt">
<span style="font-family:Verdana;color:rgb(102,102,102);vertical-align:baseline;white-space:pre-wrap">Carlos Oliva</span></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;margin-left:30pt"><span style="font-family:Verdana;color:rgb(102,102,102);font-weight:normal;vertical-align:baseline;white-space:pre-wrap">Departamento de Sistemas</span></p>

<span style="font-family:Verdana;color:rgb(102,102,102);font-weight:normal;vertical-align:baseline;white-space:pre-wrap"></span><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;margin-left:30pt"><span style="font-family:Verdana;color:rgb(102,102,102);font-weight:normal;vertical-align:baseline;white-space:pre-wrap">C/ Pujades, 77-79, 8a Planta 9B | 08005 Barcelona</span></p>
<p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;margin-left:30pt"><a moz-do-not-send="true" href="http://www.numintec.com/" style="text-decoration:none" target="_blank"><span style="font-family:Verdana;font-weight:normal;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap">www.numintec.com</span></a><span style="font-family:Verdana;color:rgb(102,102,102);font-weight:normal;vertical-align:baseline;white-space:pre-wrap"> | </span><span style="font-family:Verdana;color:rgb(17,85,204);font-weight:normal;vertical-align:baseline;white-space:pre-wrap"><a moz-do-not-send="true" href="mailto:carlos.oliva@numintec.com" target="_blank">carlos.oliva@numintec.com</a></span><span style="font-family:Verdana;color:rgb(102,102,102);font-weight:normal;vertical-align:baseline;white-space:pre-wrap"> </span><span style="font-family:Verdana;font-weight:normal;vertical-align:baseline;white-space:pre-wrap">|</span><span style="font-family:Verdana;color:rgb(102,102,102);font-weight:normal;vertical-align:baseline;white-space:pre-wrap"> T: </span><span style="font-family:Verdana;color:rgb(17,85,204);font-weight:normal;vertical-align:baseline;white-space:pre-wrap">902 02 02 97</span><span style="font-family:Verdana;color:rgb(102,102,102);font-weight:normal;vertical-align:baseline;white-space:pre-wrap"> </span></p>

<span style="font-family:Verdana;color:rgb(102,102,102);font-weight:normal;vertical-align:baseline;white-space:pre-wrap"></span><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;margin-left:30pt"><span style="font-size:11px;font-family:Verdana;color:rgb(0,204,204);font-weight:normal;vertical-align:baseline;white-space:pre-wrap">_________________________________________________</span><span style="font-family:Verdana;color:rgb(102,102,102);font-weight:normal;vertical-align:baseline;white-space:pre-wrap"></span></p>

<span style="font-family:Verdana;color:rgb(102,102,102);font-weight:normal;vertical-align:baseline;white-space:pre-wrap"></span><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;margin-left:30pt"><a moz-do-not-send="true" href="http://www.youtube.com/user/numintec" style="text-decoration:none" target="_blank"><span style="font-size:11px;font-family:Verdana;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap">Talking Numintec: Dialogando con empresarios de éxito</span></a></p>

<a moz-do-not-send="true" href="http://www.youtube.com/user/numintec" style="text-decoration:none" target="_blank"><span style="font-size:11px;font-family:Verdana;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap"></span></a><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;margin-left:30pt">
<a moz-do-not-send="true" href="http://www.numintec.com/category/caso-de-exito/" style="text-decoration:none" target="_blank"><span style="font-size:11px;font-family:Verdana;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap">Las soluciones en la nube de Numintec - Casos de éxito</span></a></p>

<a moz-do-not-send="true" href="http://www.numintec.com/category/caso-de-exito/" style="text-decoration:none" target="_blank"><span style="font-size:11px;font-family:Verdana;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap"></span></a><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;margin-left:30pt">
<a moz-do-not-send="true" href="http://www.numintec.com/demo/" style="text-decoration:none" target="_blank"><span style="font-size:11px;font-family:Verdana;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap">Solicita una demo</span></a></p>
<p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;margin-left:30pt"><span style="font-size:11px;font-family:Verdana;color:rgb(0,204,204);font-weight:normal;vertical-align:baseline;white-space:pre-wrap">_________________________________________________</span><span style="font-family:Verdana;color:rgb(102,102,102);font-weight:normal;vertical-align:baseline;white-space:pre-wrap"></span></p>

<span style="font-family:Verdana;color:rgb(102,102,102);font-weight:normal;vertical-align:baseline;white-space:pre-wrap"></span><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;margin-left:30pt"><span style="font-size:11px;font-family:Verdana;color:rgb(0,204,204);vertical-align:baseline;white-space:pre-wrap">Medio Ambiente: </span><span style="font-size:11px;font-family:Verdana;color:rgb(102,102,102);font-weight:normal;vertical-align:baseline;white-space:pre-wrap">Antes de imprimir este mensaje, asegúrese de que es necesario. </span></p>
<p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;margin-left:30pt"><span style="font-size:11px;font-family:Verdana;color:rgb(0,204,204);vertical-align:baseline;white-space:pre-wrap">Nota Legal:</span><span style="font-size:11px;font-family:Verdana;color:rgb(102,102,102);font-weight:normal;vertical-align:baseline;white-space:pre-wrap"> </span><span style="font-size:11px;font-family:Verdana;color:rgb(102,102,102);font-weight:normal;font-style:italic;vertical-align:baseline;white-space:pre-wrap">La información contenida en la presente transmisión es confidencial y su 
uso únicamente está permitido a su(s) destinatario(s). Le informamos que
 los datos personales que facilite/ha facilitado pasarán/han pasado a 
formar parte de un fichero responsabilidad de NUMINTEC COMUNICACIONES 
S.L.. y que tiene por finalidad gestionar las relaciones. Tiene la 
posibilidad de ejercitar los derechos de acceso, rectificación, 
cancelación y oposición respecto a sus datos ante la empresa, en el 
e-mail</span><span style="font-size:11px;font-family:Arial;color:rgb(102,102,102);font-weight:normal;font-style:italic;vertical-align:baseline;white-space:pre-wrap"> </span><span style="font-size:11px;font-family:Arial;color:rgb(17,85,204);font-weight:normal;font-style:italic;vertical-align:baseline;white-space:pre-wrap"><a moz-do-not-send="true" href="mailto:comunicacion@numintec.com" target="_blank">comunicacion@numintec.com</a></span><span style="font-size:11px;font-family:Arial;color:rgb(102,102,102);font-weight:normal;font-style:italic;vertical-align:baseline;white-space:pre-wrap"> </span><span style="font-size:11px;font-family:Verdana;color:rgb(102,102,102);font-weight:normal;font-style:italic;vertical-align:baseline;white-space:pre-wrap"> o bien en el  domicilio sito en C/ Pujades, 77-79 8ª Planta 9-B</span><span style="font-size:11px;font-family:Arial;color:rgb(102,102,102);font-weight:normal;font-style:italic;vertical-align:baseline;white-space:pre-wrap"> </span><span style="font-size:11px;font-family:Verdana;color:rgb(102,102,102);font-weight:normal;font-style:italic;vertical-align:baseline;white-space:pre-wrap">08005 de Barcelona.</span></p></b></div></div>

<div class="gmail_quote">2017-02-01 13:26 GMT+01:00 Bogdan-Andrei Iancu <span dir="ltr"><<a moz-do-not-send="true" href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>></span>:
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <tt>Hi Carlos,

      

      OpenSIPS does not have any "teardown" MI command - this looks like
      a private extension of the rtpengine. Unfortunately, the rtpengine
      team is not so communicative (at least not with our team), so we
      were not aware of this extension.

      

      Of course, we can do the one-way effort to align OpenSIPS to the
      rtpengine (again). Still, if we do this, it will be for OpenSIPS
      2.3 - new extensions are not backported to the existing stable
      releases.

      

      Best regards,

    </tt>
    <pre class="m_-2433830512247834162moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" class="m_-2433830512247834162moz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.<wbr>com</a></pre><div><div class="h5">
    <div class="m_-2433830512247834162moz-cite-prefix">On 01/30/2017 12:05 AM, Carlos Oliva
      wrote:

    </div>
    </div></div><blockquote type="cite"><div><div class="h5">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>
                <div>
                  <div>
                    <div>
                      <div>
                        <div>Hi List!

                          

                        </div>
                        I'm using Opensips 1.11 and doing some tests to
                        change my mediaproxy rtprelays to
                        ngcp-rtpengine. My reasons to try this change
                        are efficiency and that the mediaproxy project
                        seems to be a little abandoned by AGProjects
                        (not really abandoned but has no new features in
                        years)

                        

                      </div>
                      After the change I started to see some dialogs in
                      state 3 that ends at timeout (6 hours in my
                      config)

                      

                    </div>
                    I tried to use the RTPTimeout function in rtpengine
                    (in mediaproxy  it works very well) to try to end
                    the dialogs which don't have RTP.

                    

                  </div>
                  To try this I used the rtpengine flags
                  --b2b-url=<a moz-do-not-send="true" class="m_-2433830512247834162moz-txt-link-freetext" href="http://%%:8000/RPC2" target="_blank">http://%%:8000/RPC2</a> --xmlrpc-format=1 to
                  send Opensips the order to end the related dialog.

                  

                </div>
                It doesn't work. Doing some ngrep at xmlrpc interface
                seems that rtpengine send some commands to opensips RPC
                interface that Opensips does not understand. The command
                is: "teardown" and the callid, here is an example:

                

                POST /RPC2 HTTP/1.1..Host: XXX.XXX.XXX.XXX:8000..Accept:
                */*..Content-Type: text/xml..User-Agent:
                Xmlrpc-c/1.33.14 Curl/<a moz-do-not-send="true" href="http://7.38.0." target="_blank">7.38.0.</a>.Content-Length:
                204....<?xml version="1.0" enco

                 
ding="UTF-8"?>..<methodCall>..<wbr><methodName>teardown</<wbr>methodName>..<params>..<param><wbr><value><string><a moz-do-not-send="true" class="m_-2433830512247834162moz-txt-link-abbreviated" href="mailto:822048991-40759-5@BJC.BGI.B.GE" target="_blank">822048991-<wbr>40759-5@BJC.BGI.B.GE</a></string><<wbr>/value></param>..</params>..</<wbr>methodCall>

                

              </div>
              and the opensips response:

              

              HTTP/1.1 200 OK..Connection: Keep-Alive..Content-Length:
              48..Content-Type: text/xml; charset=utf-8..Date: Sun, 29
              Jan 2017 20:31:36 GMT....<html><body>Internal
              server error!</body></html>

              

            </div>
            Obviously OpenSips does not implement this "teardown"
            method.

            

          </div>
          My questions are:

          

        </div>
        <div>Anybody has a good idea of how to deal with this? 

        </div>
        <div>

        </div>
        <div>
          <div>Devels: Do you think is a good idea to open a feature
            request in github about this? I'll try to backport to 1.11
            later.if you accept the request.

          </div>
          <div>
            <div>
              <div>

                

                <div>
                  <div>
                    <div>
                      <div>
                        <div>
                          <div>
                            <div>Thanks and Regards,

                              

                            </div>
                            <div>Carlos Oliva

                            </div>
                            <div>

                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      

      <fieldset class="m_-2433830512247834162mimeAttachmentHeader"></fieldset>
      

      </div></div><pre>______________________________<wbr>_________________
Users mailing list
<a moz-do-not-send="true" class="m_-2433830512247834162moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" class="m_-2433830512247834162moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    

  </div>

</blockquote></div>
</div>



</blockquote>
</body></html>