<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <tt>Hi Cesar,<br>
      <br>
      Be aware that all the MI commands (like dlg_list) can be triggered
      via different backends. Maybe doing it via mi_json will give you a
      better (and easy to parse) answer.<br>
          <a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/2.2.x/mi_json.html">http://www.opensips.org/html/docs/modules/2.2.x/mi_json.html</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 27.07.2016 22:57, Cesar Alberto
      Rodriguez Fierro wrote:<br>
    </div>
    <blockquote
cite="mid:CAFgFmXo8dk_cA=7DJwhvuXei-mQbqOs1ZPSj4SN+HscMW-qSKQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">There was a wrong configuration of the  <span
          style="font-size:12.8px">"dialog.so" module.</span>
        <div><span style="font-size:12.8px"><br>
          </span></div>
        <div><span style="font-size:12.8px">I will try to parse the
            output in order to obtain the current calls.</span></div>
        <div><span style="font-size:12.8px"><br>
          </span></div>
        <div><span style="font-size:12.8px"> Thanks for the help.</span><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Wed, Jul 27, 2016 at 1:20 PM, Carlos
          Eduardo <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:kaduww@gmail.com" target="_blank">kaduww@gmail.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">Cesar,
              <div><br>
              </div>
              <div>Are you using the dialog module in your script?</div>
              <div><br>
              </div>
              <div>This MI command will only return a valid value if the
                dialog module is loaded (loadmodule "dialog.so") and if
                the dialogs are criated durign the script processing
                (create_dialog() command). </div>
              <div class="gmail_extra">
                <div>
                  <div class="h5"><br>
                    <div class="gmail_quote">2016-07-27 16:12 GMT-03:00
                      Daniel Zanutti <span dir="ltr">&lt;<a
                          moz-do-not-send="true"
                          href="mailto:daniel.zanutti@gmail.com"
                          target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:daniel.zanutti@gmail.com">daniel.zanutti@gmail.com</a></a>&gt;</span>:<br>
                      <blockquote class="gmail_quote" style="margin:0 0
                        0 .8ex;border-left:1px #ccc
                        solid;padding-left:1ex">
                        <div dir="ltr">On my sample, you should run:
                          <div><br>
                          </div>
                          <div>opensipsctl fifo profile_get_size inbound<br>
                          </div>
                          <div><br>
                          </div>
                          <div><br>
                          </div>
                          <div>Using dlg_list you should get something
                            like this:</div>
                          <div>
                            <div># opensipsctl fifo dlg_list</div>
                            <div>dialog::  hash=84:1411689852</div>
                            <div>        state:: 4</div>
                            <div>        user_flags:: 0</div>
                            <div>        timestart:: 1469646635</div>
                            <div>        datestart:: 2016-07-27 16:10:35</div>
                            <div>        timeout:: 1469653835</div>
                            <div>        dateout:: 2016-07-27 18:10:35</div>
                            <div>...</div>
                            <div>dialog::  hash=289:324429409<br>
                            </div>
                            <div>        state:: 2</div>
                            <div>        user_flags:: 0</div>
                            <div>        timestart:: 0</div>
                            <div>        timeout:: 0</div>
                            <div>...</div>
                            <div>dialog::  hash=640:1695114669<br>
                            </div>
                            <div>        state:: 4</div>
                          </div>
                          <div>...</div>
                          <div><br>
                          </div>
                          <div>Check if modules are successfully loaded.</div>
                          <div><br>
                          </div>
                          <div>Regards</div>
                        </div>
                        <div>
                          <div>
                            <div class="gmail_extra"><br>
                              <div class="gmail_quote">On Wed, Jul 27,
                                2016 at 3:41 PM, Cesar Alberto Rodriguez
                                Fierro <span dir="ltr">&lt;<a
                                    moz-do-not-send="true"
                                    href="mailto:crf@transtelco.net"
                                    target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:crf@transtelco.net">crf@transtelco.net</a></a>&gt;</span>
                                wrote:<br>
                                <blockquote class="gmail_quote"
                                  style="margin:0 0 0
                                  .8ex;border-left:1px #ccc
                                  solid;padding-left:1ex">
                                  <div dir="ltr">
                                    <div><br>
                                    </div>
                                    <div><font face="arial, helvetica,
                                        sans-serif">Thanks for your
                                        help. </font></div>
                                    <div><font face="arial, helvetica,
                                        sans-serif"><br>
                                      </font></div>
                                    <div><font face="arial, helvetica,
                                        sans-serif">I trying to use <span
                                          style="color:rgb(0,0,0)"> </span><span
                                          style="color:rgb(0,0,0)">FIFO
                                          in order to  send requests to
                                          OpenSIPS, I have read some
                                          documentation about the </span><span
                                          style="color:rgb(0,0,0)"> Dialog
                                          Module.  I guess using the "</span><font
                                          color="#000000">opensipsctl
                                          fifo dlg_list" command can be
                                          useful to obtain the current
                                          calls, but I am not sure why
                                          the command is
                                          not available in my OpenSIPS
                                          version.   When I execute the
                                          command ./opensipsctl fifo
                                          version, I am getting the
                                          following information </font></font></div>
                                    <div><font color="#000000"><font
                                          face="arial, helvetica,
                                          sans-serif">Server:: OpenSIPS
                                          (1.8.2-notls (x86_64/linux)).</font><br>
                                      </font></div>
                                    <div><br>
                                    </div>
                                    <div><br>
                                    </div>
                                  </div>
                                  <div class="gmail_extra"><br>
                                    <div class="gmail_quote">
                                      <div>
                                        <div>On Wed, Jul 27, 2016 at
                                          11:42 AM, Rodrigo Pimenta
                                          Carvalho <span dir="ltr">&lt;<a
                                              moz-do-not-send="true"
                                              href="mailto:pimenta@inatel.br"
                                              target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:pimenta@inatel.br">pimenta@inatel.br</a></a>&gt;</span>
                                          wrote:<br>
                                        </div>
                                      </div>
                                      <blockquote class="gmail_quote"
                                        style="margin:0 0 0
                                        .8ex;border-left:1px #ccc
                                        solid;padding-left:1ex">
                                        <div>
                                          <div>
                                            <div dir="ltr">
                                              <div
style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
                                                <p>Now, thinking more
                                                  about it, I would
                                                  suggest you to put a
                                                  SQL query in your
                                                  proprietary software
                                                  to query the OpenSIPS
                                                  database directly.</p>
                                                <p>The table dialog will
                                                  be always updated
                                                  about current calls.<br>
                                                </p>
                                                <span>
                                                  <p><br>
                                                  </p>
                                                  <p>Regards.<br>
                                                  </p>
                                                  <p><br>
                                                  </p>
                                                  <div>
                                                    <div
                                                      name="divtagdefaultwrapper">
                                                      <div><font
                                                          size="2">
                                                          <div>RODRIGO
                                                          PIMENTA
                                                          CARVALHO<br>
                                                          Inatel
                                                          Competence
                                                          Center<br>
                                                          Software<br>
                                                          Ph: <a
                                                          moz-do-not-send="true"
href="tel:%2B55%2035%203471%209200" value="+553534719200"
                                                          target="_blank">+55
                                                          35 3471 9200</a>
                                                          RAMAL 979<br>
                                                          </div>
                                                        </font></div>
                                                    </div>
                                                  </div>
                                                  <br>
                                                  <br>
                                                </span>
                                                <div
                                                  style="color:rgb(0,0,0)">
                                                  <hr
                                                    style="display:inline-block;width:98%">
                                                  <div dir="ltr"><font
                                                      style="font-size:11pt"
                                                      face="Calibri,
                                                      sans-serif"
                                                      color="#000000"><b>De:</b>
                                                      <a
                                                        moz-do-not-send="true"
href="mailto:users-bounces@lists.opensips.org" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:users-bounces@lists.opensips.org">users-bounces@lists.opensips.org</a></a>
                                                      &lt;<a
                                                        moz-do-not-send="true"
href="mailto:users-bounces@lists.opensips.org" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:users-bounces@lists.opensips.org">users-bounces@lists.opensips.org</a></a>&gt;
                                                      em nome de Rodrigo
                                                      Pimenta Carvalho
                                                      &lt;<a
                                                        moz-do-not-send="true"
href="mailto:pimenta@inatel.br" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:pimenta@inatel.br">pimenta@inatel.br</a></a>&gt;<br>
                                                      <b>Enviado:</b>
                                                      quarta-feira, 27
                                                      de julho de 2016
                                                      14:39<br>
                                                      <b>Para:</b> <a
                                                        moz-do-not-send="true"
href="mailto:users@lists.opensips.org" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:users@lists.opensips.org">users@lists.opensips.org</a></a><br>
                                                      <b>Assunto:</b>
                                                      Re:
                                                      [OpenSIPS-Users]
                                                      Get concurrent
                                                      calls from sip
                                                      server.</font>
                                                    <div> </div>
                                                  </div>
                                                  <div>
                                                    <div>
                                                      <div>
                                                        <div
style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
                                                          <p>With FIFO
                                                          you can send
                                                          requests to
                                                          OpenSIPS, for
                                                          example from a
                                                          proprietary
                                                          software. So,
                                                          if a request
                                                          wants to
                                                          execute a
                                                          query with
                                                          avpops, I
                                                          guess FIFO
                                                          will be
                                                          useful.</p>
                                                          <p><br>
                                                          </p>
                                                          <p>Regards.<br>
                                                          </p>
                                                          <p><br>
                                                          </p>
                                                          <p><br>
                                                          </p>
                                                          <div>
                                                          <div
                                                          name="divtagdefaultwrapper">
                                                          <div><font
                                                          size="2">
                                                          <div>RODRIGO
                                                          PIMENTA
                                                          CARVALHO<br>
                                                          Inatel
                                                          Competence
                                                          Center<br>
                                                          Software<br>
                                                          Ph: <a
                                                          moz-do-not-send="true"
href="tel:%2B55%2035%203471%209200" value="+553534719200"
                                                          target="_blank">+55
                                                          35 3471 9200</a>
                                                          RAMAL 979<br>
                                                          </div>
                                                          </font></div>
                                                          </div>
                                                          </div>
                                                          <br>
                                                          <br>
                                                          <div
                                                          style="color:rgb(0,0,0)">
                                                          <hr
                                                          style="display:inline-block;width:98%">
                                                          <div dir="ltr"><font
style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>De:</b>
                                                          <a
                                                          moz-do-not-send="true"
href="mailto:users-bounces@lists.opensips.org" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:users-bounces@lists.opensips.org">users-bounces@lists.opensips.org</a></a>
                                                          &lt;<a
                                                          moz-do-not-send="true"
href="mailto:users-bounces@lists.opensips.org" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:users-bounces@lists.opensips.org">users-bounces@lists.opensips.org</a></a>&gt;
                                                          em nome de
                                                          Cesar Alberto
                                                          Rodriguez
                                                          Fierro &lt;<a
moz-do-not-send="true" href="mailto:crf@transtelco.net" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:crf@transtelco.net">crf@transtelco.net</a></a>&gt;<br>
                                                          <b>Enviado:</b>
                                                          quarta-feira,
                                                          27 de julho de
                                                          2016 14:29<br>
                                                          <b>Para:</b> <a
moz-do-not-send="true" href="mailto:users@lists.opensips.org"
                                                          target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:users@lists.opensips.org">users@lists.opensips.org</a></a><br>
                                                          <b>Assunto:</b>
                                                          [OpenSIPS-Users]
                                                          Get concurrent
                                                          calls from sip
                                                          server.</font>
                                                          <div> </div>
                                                          </div>
                                                          <div>
                                                          <div dir="ltr">Hi
                                                          !
                                                          <div><br>
                                                          </div>
                                                          <div>I am
                                                          currently
                                                          working in a
                                                          project
                                                          related with
                                                          display in
                                                          real time the
                                                          active calls
                                                          of our VoIP
                                                          traffic, I
                                                          would like to
                                                          get the active
                                                          sip-calls from
                                                          a Kamailio Sip
                                                          Server
                                                          (running
                                                          opensips), is
                                                          there any way
                                                          to obtain this
                                                          information.</div>
                                                          <div><br>
                                                          </div>
                                                          <div>Best
                                                          Regards. 
                                                          <div dir="ltr"><br>
                                                          </div>
                                                          <div dir="ltr"><br>
                                                          </div>
                                                          <div dir="ltr"><br>
                                                          </div>
                                                          <div dir="ltr"><br>
                                                          </div>
                                                          <div dir="ltr"><font
                                                          size="1"><img
                                                          alt="Inline
                                                          image 1"
                                                          src="cid:part15.00020902.06050506@opensips.org"
                                                          height="14"
                                                          width="120"><span
style="font-family:verdana;color:rgb(0,0,0)"> </span><span
                                                          style="font-family:verdana;color:rgb(102,102,102)">|Cesar

                                                          Rodriguez | <span style="white-space:pre-wrap">VoiceOPS </span> |
                                                          MX: <a
                                                          moz-do-not-send="true"
href="tel:%2B52%20656-257-4112" value="+526562574112" target="_blank">+52
                                                          656-257-4112</a> | </span></font>
                                                          <div
                                                          style="margin:2px
                                                          0px
                                                          0px;font-size:12.8px">
                                                          <div><img
                                                          moz-do-not-send="true"
src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif"></div>
                                                          </div>
                                                          <div
                                                          style="font-size:12.8px"><span><br>
                                                          <div><span
                                                          style="font-family:verdana;color:rgb(102,102,102)">
                                                          <div
style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:12.8px"><span
style="color:rgb(153,153,153);font-family:verdana,sans-serif;font-size:10.6667px">CONFIDENTIALITY
                                                          NOTICE:  This
                                                          communication
                                                          is intended
                                                          only for the
                                                          use of the
                                                          individual or
                                                          entity to
                                                          which it is
                                                          addressed and
                                                          may contain
                                                          information
                                                          that is
                                                          privileged,
                                                          confidential,
                                                          and exempt
                                                          from
                                                          disclosure
                                                          under
                                                          applicable
                                                          law.  If you
                                                          are not the
                                                          intended
                                                          recipient of
                                                          this
                                                          information,
                                                          you are
                                                          notified that
                                                          any use,
                                                          dissemination,
                                                          distribution,
                                                          or copying of
                                                          the
                                                          communication
                                                          is strictly
                                                          prohibited.</span></div>
                                                          </span></div>
                                                          </span></div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          </div>
                                                        </div>
                                                      </div>
                                                    </div>
                                                  </div>
                                                </div>
                                              </div>
                                            </div>
                                            <br>
                                          </div>
                                        </div>
                                        <span>_______________________________________________<br>
                                          Users mailing list<br>
                                          <a moz-do-not-send="true"
                                            href="mailto:Users@lists.opensips.org"
                                            target="_blank">Users@lists.opensips.org</a><br>
                                          <a moz-do-not-send="true"
                                            href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
                                            rel="noreferrer"
                                            target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
                                          <br>
                                        </span></blockquote>
                                    </div>
                                    <br>
                                  </div>
                                  <br>
_______________________________________________<br>
                                  Users mailing list<br>
                                  <a moz-do-not-send="true"
                                    href="mailto:Users@lists.opensips.org"
                                    target="_blank">Users@lists.opensips.org</a><br>
                                  <a moz-do-not-send="true"
                                    href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
                                    rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
                                  <br>
                                </blockquote>
                              </div>
                              <br>
                            </div>
                          </div>
                        </div>
                        <br>
                        _______________________________________________<br>
                        Users mailing list<br>
                        <a moz-do-not-send="true"
                          href="mailto:Users@lists.opensips.org"
                          target="_blank">Users@lists.opensips.org</a><br>
                        <a moz-do-not-send="true"
                          href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
                          rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
                        <br>
                      </blockquote>
                    </div>
                    <br>
                    <br clear="all">
                    <div><br>
                    </div>
                  </div>
                </div>
                <span class="HOEnZb"><font color="#888888">-- <br>
                    <div data-smartmail="gmail_signature">
                      <div dir="ltr">
                        <div>
                          <div dir="ltr">
                            <div dir="ltr">
                              <div dir="ltr">
                                <div>
                                  <div style="font-size:small"><b>Carlos
                                      E. Wagner</b></div>
                                  <div
                                    style="font-size:small;font-family:arial"><font
style="font-family:arial,sans-serif;font-size:13px"><font
                                        style="font-size:x-small;color:rgb(0,0,0)"><i>Tecnólogo
                                          em Telecomunicações, OCP, dCAA</i></font><br>
                                      <b
                                        style="font-family:arial;font-size:small"><font
                                          face="arial, sans-serif"
                                          color="#000000"><br>
                                        </font></b></font></div>
                                  <div
                                    style="font-size:small;font-family:arial"><font
style="font-family:arial,sans-serif;font-size:13px"><b
                                        style="font-family:arial;font-size:small"><font
                                          face="arial, sans-serif"
                                          color="#000000">Gnotel Telecom</font></b></font></div>
                                  <div
                                    style="font-size:small;font-family:arial"><font
style="font-family:arial,sans-serif;font-size:13px"><b
                                        style="font-family:arial;font-size:small"><font
                                          face="arial, sans-serif">E-mail:</font></b><font
                                        style="font-size:small"
                                        face="arial, sans-serif"> <u><a
                                            moz-do-not-send="true"
                                            href="mailto:kaduww@gmail.com"
                                            target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:kaduww@gmail.com">kaduww@gmail.com</a></a></u></font></font></div>
                                  <div
                                    style="font-size:small;font-family:arial"><font
style="font-family:arial,sans-serif;font-size:13px"><font
                                        style="font-size:small"
                                        face="arial, sans-serif">       
                                            <u><a moz-do-not-send="true"
href="mailto:carlos@gnotel.com.br" target="_blank">carlos@gnotel.com.br</a></u></font></font></div>
                                  <div
                                    style="font-size:small;font-family:arial"><font
style="font-family:arial,sans-serif;font-size:13px" color="#000000"><b>Fone:</b></font><font
                                      face="arial, sans-serif"> <a
                                        moz-do-not-send="true"
                                        href="tel:%2B55%2048%209981-0894"
                                        value="+554899810894"
                                        target="_blank">+55 48 9981-0894</a></font><br>
                                    <font
                                      style="font-family:arial,sans-serif;font-size:13px"
                                      color="#000000"><b>Skype:</b></font><font
                                      face="arial, sans-serif"> </font><font
                                      face="arial, sans-serif">carlos.e.wagner</font></div>
                                  <div
                                    style="font-size:small;font-family:arial"><font
                                      face="arial, sans-serif"><a
                                        moz-do-not-send="true"
                                        href="http://www.gnotel.com.br"
                                        target="_blank"><a class="moz-txt-link-abbreviated" href="http://www.gnotel.com.br">www.gnotel.com.br</a></a></font></div>
                                  <div
                                    style="font-size:small;font-family:arial"><font
                                      face="arial, sans-serif"><a
                                        moz-do-not-send="true"
                                        href="http://www.blogdovoip.com"
                                        target="_blank"><a class="moz-txt-link-abbreviated" href="http://www.blogdovoip.com">www.blogdovoip.com</a></a></font></div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </font></span></div>
            </div>
            <br>
            _______________________________________________<br>
            Users mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
              rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <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>