<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hello,<br>
    <br>
    On 1/11/11 5:20 PM, Ricardo Martinez wrote:
    <blockquote
      cite="mid:07f8b3fde0546a3e7628556bec89dea3@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 12 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
h3
        {mso-style-priority:9;
        mso-style-link:"T\00EDtulo 3 Car";
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:13.5pt;
        font-family:"Times New Roman","serif";
        font-weight:bold;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
code
        {mso-style-priority:99;
        font-family:"Courier New";}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML con formato previo Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.EstiloCorreo17
        {mso-style-type:personal;
        font-family:Consolas;
        color:windowtext;}
span.HTMLconformatoprevioCar
        {mso-style-name:"HTML con formato previo Car";
        mso-style-priority:99;
        mso-style-link:"HTML con formato previo";
        font-family:Consolas;
        color:black;}
span.EstiloCorreo20
        {mso-style-type:personal-reply;
        font-family:Consolas;
        color:#1F497D;}
span.Ttulo3Car
        {mso-style-name:"T\00EDtulo 3 Car";
        mso-style-priority:9;
        mso-style-link:"T\00EDtulo 3";
        font-weight:bold;}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:1869639139;
        mso-list-template-ids:1306195788;}
@list l0:level1
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:36.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></style>
      <div class="WordSection1">
        <p class="MsoNormal"><span style="font-size: 10pt; font-family:
            Consolas; color: black;" lang="EN-US">Ok.</span></p>
        <p class="MsoNormal">
          <span style="font-size: 10pt; font-family: Consolas; color:
            black;" lang="EN-US">It was a “typo” problem.</span></p>
        <p class="MsoNormal"><span style="font-size: 10pt; font-family:
            Consolas; color: black;" lang="EN-US">The command : </span><span
            style="font-size: 10pt; font-family: Consolas; color:
            black;" lang="EN-US">kamctl fifo profile_get_size
            your_dlg_profile</span></p>
        <p class="MsoNormal"><span style="font-size: 10pt; font-family:
            Consolas; color: black;" lang="EN-US"> </span></p>
        <p class="MsoNormal"><span style="font-size: 10pt; font-family:
            Consolas; color: black;">Works ok.</span></p>
        <p class="MsoNormal">
          <span style="font-size: 10pt; font-family: Consolas; color:
            black;" lang="EN-US">So.. question : </span></p>
        <p class="MsoNormal"><span style="font-size: 10pt; font-family:
            Consolas; color: black;" lang="EN-US">I’m using the
            documentation in the DIALOG MODULE and there it says : </span></p>
        <p class="MsoNormal"><span style="font-size: 12pt; font-family:
            &quot;Times New Roman&quot;,&quot;serif&quot;;" lang="EN-US"> </span></p>
        <p class="MsoNormal" style=""><b><span style="font-size: 13.5pt;
              font-family:
              &quot;Helvetica&quot;,&quot;sans-serif&quot;;"
              lang="EN-US">8.5. </span></b><b><span style="font-size:
              10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">profile_get_size</span></b><b><span
              style="font-size: 13.5pt; font-family:
              &quot;Helvetica&quot;,&quot;sans-serif&quot;;"
              lang="EN-US"></span></b></p>
        <p class="MsoNormal" style="text-align: justify;"><span
            style="font-size: 10pt; font-family:
            &quot;Helvetica&quot;,&quot;sans-serif&quot;;" lang="EN-US">Returns
            the number of dialogs belonging to a profile. If the profile
            supports values, the check can be reinforced to take into
            account a specific value - how many dialogs were inserted
            into the profile with a specific value. If no value is
            passed, only the simply belonging of the dialog to the
            profile is checked. Note that if the profile does not
            supports values, this will be silently discarded.</span></p>
        <p class="MsoNormal" style="text-align: justify;"><span
            style="font-size: 10pt; font-family:
            &quot;Helvetica&quot;,&quot;sans-serif&quot;;" lang="EN-US">Name:</span><span
            style="font-size: 10pt; font-family:
            &quot;Helvetica&quot;,&quot;sans-serif&quot;;" lang="EN-US"> <i>profile_get_size</i></span><span
            style="font-size: 10pt; font-family:
            &quot;Helvetica&quot;,&quot;sans-serif&quot;;" lang="EN-US"></span></p>
        <p class="MsoNormal" style="text-align: justify;"><span
            style="font-size: 10pt; font-family:
            &quot;Helvetica&quot;,&quot;sans-serif&quot;;" lang="EN-US">Parameters:</span></p>
        <ul type="disc">
          <li class="MsoNormal" style="text-align: justify;"><i><span
                style="font-size: 10pt; font-family:
                &quot;Helvetica&quot;,&quot;sans-serif&quot;;"
                lang="EN-US">profile</span></i><span style="font-size:
              10pt; font-family:
              &quot;Helvetica&quot;,&quot;sans-serif&quot;;"
              lang="EN-US"> </span><span style="font-size: 10pt;
              font-family:
              &quot;Helvetica&quot;,&quot;sans-serif&quot;;"
              lang="EN-US">- name of the profile to get the value for.</span></li>
          <li class="MsoNormal" style="text-align: justify;"><i><span
                style="font-size: 10pt; font-family:
                &quot;Helvetica&quot;,&quot;sans-serif&quot;;"
                lang="EN-US">value</span></i><span style="font-size:
              10pt; font-family:
              &quot;Helvetica&quot;,&quot;sans-serif&quot;;"
              lang="EN-US"> </span><span style="font-size: 10pt;
              font-family:
              &quot;Helvetica&quot;,&quot;sans-serif&quot;;"
              lang="EN-US">(optional)- string value to further restrict
              the check;</span></li>
        </ul>
        <p class="MsoNormal" style="text-align: justify;"><span
            style="font-size: 10pt; font-family:
            &quot;Helvetica&quot;,&quot;sans-serif&quot;;" lang="EN-US">MI
            FIFO Command Format:</span></p>
        <div style="border: 1pt solid rgb(153, 204, 204); padding: 0cm
          0cm 0cm 15pt; background: none repeat scroll 0% 0% rgb(254,
          254, 238);">
          <p class="MsoNormal" style="background: none repeat scroll 0%
            0% rgb(254, 254, 238); border: medium none; padding: 0cm;"><span
              style="font-size: 10pt; font-family: &quot;Courier
              New&quot;;" lang="EN-US">              
              :profile_get_size:_reply_fifo_file_</span></p>
          <p class="MsoNormal" style="background: none repeat scroll 0%
            0% rgb(254, 254, 238); border: medium none; padding: 0cm;"><span
              style="font-size: 10pt; font-family: &quot;Courier
              New&quot;;" lang="EN-US">               </span><span
              style="font-size: 10pt; font-family: &quot;Courier
              New&quot;;">inbound_calls</span></p>
          <p class="MsoNormal" style="background: none repeat scroll 0%
            0% rgb(254, 254, 238); border: medium none; padding: 0cm;"><span
              style="font-size: 10pt; font-family: &quot;Courier
              New&quot;;">               _empty_line_</span></p>
        </div>
        <p class="MsoNormal"><span style="font-size: 10pt; font-family:
            Consolas; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>
        <p class="MsoNormal"><span style="font-size: 10pt; font-family:
            Consolas; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>
        <p class="MsoNormal"><span style="font-size: 10pt; font-family:
            Consolas; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>
        <p class="MsoNormal"><span style="font-size: 10pt; font-family:
            Consolas; color: black;" lang="EN-US">This is something
            different from the command you gave me.  Why?.l. or maybe
            I’m misunderstanding the documentation?</span></p>
      </div>
    </blockquote>
    the documentation is about what to write in the fifo file. It is
    what kamctl writes there.<br>
    <br>
    kamctl sets it own reply fifo file and the parameters after the fifo
    command are written one per line in the fifo file.<br>
    <br>
    The generic fifo command format to be written to fifo file is:<br>
    <br>
    :command:reply_fifo_file<br>
    param1<br>
    ...<br>
    paramN<br>
    _empty_line_<br>
    <br>
    So, for kamctl tool, that should be given like:<br>
    <br>
    kamctl fifo command param1 ... paramN<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <blockquote
      cite="mid:07f8b3fde0546a3e7628556bec89dea3@mail.gmail.com"
      type="cite">
      <div class="WordSection1">
        <p class="MsoNormal"><span style="font-size: 10pt; font-family:
            Consolas; color: black;" lang="EN-US"> </span></p>
        <p class="MsoNormal"><span style="font-size: 10pt; font-family:
            Consolas; color: black;" lang="EN-US">Thanks anyway.</span></p>
        <p class="MsoNormal"><span style="font-size: 10pt; font-family:
            Consolas; color: black;" lang="EN-US"> </span></p>
        <p class="MsoNormal"><span style="font-size: 10pt; font-family:
            Consolas; color: black;">Regards,</span></p>
        <p class="MsoNormal">
          <span style="font-size: 10pt; font-family: Consolas; color:
            black;">Ricardo.-</span></p>
        <p class="MsoNormal"><span style="font-size: 10pt; font-family:
            Consolas; color: rgb(31, 73, 125);"> </span></p>
        <p class="MsoNormal"><span style="font-size: 10pt; font-family:
            Consolas; color: rgb(31, 73, 125);"> </span></p>
        <div>
          <div style="border-right: medium none; border-width: 1pt
            medium medium; border-style: solid none none; border-color:
            rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color;
            padding: 3pt 0cm 0cm;">
            <p class="MsoNormal"><b><span style="font-size: 10pt;
                  font-family:
                  &quot;Tahoma&quot;,&quot;sans-serif&quot;; color:
                  windowtext;" lang="ES">De:</span></b><span
                style="font-size: 10pt; font-family:
                &quot;Tahoma&quot;,&quot;sans-serif&quot;; color:
                windowtext;" lang="ES"> Daniel-Constantin Mierla
                [mailto:<a moz-do-not-send="true"
                  href="mailto:miconda@gmail.com">miconda@gmail.com</a>]
                <br>
                <b>Enviado el:</b> martes, 11 de enero de 2011 13:09<br>
                <b>Para:</b> Ricardo Martinez<br>
                <b>CC:</b> <a moz-do-not-send="true"
                  href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
                <b>Asunto:</b> Re: [SR-Users] mi_fifo question</span></p>
          </div>
        </div>
        <p class="MsoNormal"> </p>
        <p class="MsoNormal">Hello,<br>
          <br>
          On 1/11/11 4:40 PM, Ricardo Martinez wrote: </p>
        <p class="MsoNormal"><span style="font-family: Consolas;">Hello.</span></p>
        <p class="MsoNormal"><span style="font-family: Consolas;"
            lang="EN-US">I’m trying to use the kamctl command to get
            information about dialogs.  I’m using the next line : </span></p>
        <p class="MsoNormal"><span style="font-family: Consolas;"
            lang="EN-US"> </span></p>
        <p class="MsoNormal"><span style="font-family: Consolas;"
            lang="EN-US">kamctl fifo profile_get_size:kamailio_fifo</span></p>
        <p class="MsoNormal">
          <span style="font-size: 12pt; font-family: &quot;Times New
            Roman&quot;,&quot;serif&quot;;"><br>
            first the way you use the command is wrong, try:<br>
            <br>
            kamctl fifo profile_get_size your_dlg_profile<br>
            <br>
            <br>
            If the error persists, send the new output. Also, be sure
            kamailio is running as an user that has privileges to read
            from the fifo file.<br>
            <br>
            Cheers,<br>
            Daniel<br>
            <br>
          </span></p>
        <p class="MsoNormal"><span style="font-family: Consolas;"
            lang="EN-US"> </span></p>
        <p class="MsoNormal"><span style="font-family: Consolas;"
            lang="EN-US"> </span></p>
        <p class="MsoNormal">
          <span style="font-family: Consolas;" lang="EN-US">and I’m
            getting the next output in the log file : </span></p>
        <p class="MsoNormal"><span style="font-family: Consolas;"
            lang="EN-US"> </span></p>
        <p class="MsoNormal"><span style="font-family: Consolas;"
            lang="EN-US">Jan 11 12:34:38
            /usr/local/sbin/kamailio[15051]: ERROR: mi_fifo
            [fifo_fnc.c:223]: open error
            (/tmp/kamailio_fifo:openser_receiver_15073): No such file or
            directory</span></p>
        <p class="MsoNormal"><span style="font-family: Consolas;"
            lang="EN-US">Jan 11 12:34:38
            /usr/local/sbin/kamailio[15051]: ERROR: mi_fifo
            [fifo_fnc.c:484]: cannot open reply pipe
            /tmp/kamailio_fifo:openser_receiver_15073</span></p>
        <p class="MsoNormal"><span style="font-family: Consolas;"
            lang="EN-US"> </span></p>
        <p class="MsoNormal"><span style="font-family: Consolas;"
            lang="EN-US"> </span></p>
        <p class="MsoNormal"><span style="font-family: Consolas;"
            lang="EN-US">What I’m doing wrong?</span></p>
        <p class="MsoNormal"><span style="font-family: Consolas;"
            lang="EN-US"> </span></p>
        <p class="MsoNormal" style="margin-bottom: 12pt;"><span
            style="font-family: Consolas;" lang="EN-US">This is part of
            the configuration file : </span></p>
        <p class="MsoNormal"><span style="font-family: Consolas;"
            lang="EN-US"># ----- mi_fifo params ------</span></p>
        <p class="MsoNormal"><span style="font-family: Consolas;"
            lang="EN-US">modparam("mi_fifo", "fifo_name",
            "/tmp/kamailio_fifo")</span></p>
        <p class="MsoNormal"><span style="font-family: Consolas;"
            lang="EN-US">modparam("mi_fifo", "fifo_group", 0)</span></p>
        <p class="MsoNormal"><span style="font-family: Consolas;"
            lang="EN-US">modparam("mi_fifo", "fifo_group", "root")</span></p>
        <p class="MsoNormal"><span style="font-family: Consolas;"
            lang="EN-US">modparam("mi_fifo", "fifo_user", 0)</span></p>
        <p class="MsoNormal"><span style="font-family: Consolas;"
            lang="EN-US">modparam("mi_fifo", "fifo_user", "root")</span></p>
        <p class="MsoNormal"><span style="font-family: Consolas;"
            lang="EN-US"> </span></p>
        <p class="MsoNormal"><span style="font-family: Consolas;"
            lang="EN-US"> </span></p>
        <p class="MsoNormal"><span style="font-family: Consolas;"
            lang="EN-US">and this is  the file kamailio_fifo in the /tmp
            directory :</span></p>
        <p class="MsoNormal"><span style="font-family: Consolas;"
            lang="EN-US"> </span></p>
        <p class="MsoNormal"><span style="font-family: Consolas;">[root@kamailio]#
            ls -la /tmp</span></p>
        <p class="MsoNormal"><span style="font-family: Consolas;"
            lang="EN-US">total 52</span></p>
        <p class="MsoNormal"><span style="font-family: Consolas;"
            lang="EN-US">drwxrwxrwt.  4 root   root    4096 Jan 11 12:38
            .</span></p>
        <p class="MsoNormal"><span style="font-family: Consolas;"
            lang="EN-US">dr-xr-xr-x. 25 root   root    4096 Jan  7 09:25
            ..</span></p>
        <p class="MsoNormal"><span style="font-family: Consolas;"
            lang="EN-US">drwxrwxrwt   2 root   root    4096 Jan  7 09:25
            .ICE-unix</span></p>
        <p class="MsoNormal"><b><span style="font-family: Consolas;"
              lang="EN-US">prw-rw----   1 root   root       0 Jan 11
              12:34 kamailio_fifo</span></b></p>
        <p class="MsoNormal"><span style="font-family: Consolas;"
            lang="EN-US">drwx------   2 root   root    4096 Jan 11 09:54
            ssh-gpTCQ12700</span></p>
        <p class="MsoNormal"><span style="font-family: Consolas;"
            lang="EN-US"> </span></p>
        <p class="MsoNormal"><span style="font-family: Consolas;"
            lang="EN-US">Hope someone could help me.</span></p>
        <p class="MsoNormal"><span style="font-family: Consolas;"
            lang="EN-US"> </span></p>
        <p class="MsoNormal"><span style="font-family: Consolas;"
            lang="EN-US">Regards,</span></p>
        <p class="MsoNormal"><span style="font-family: Consolas;"
            lang="EN-US">Ricardo.-</span></p>
        <pre> </pre>
        <pre> </pre>
        <pre>_______________________________________________</pre>
        <pre>SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list</pre>
        <pre><a moz-do-not-send="true" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a></pre>
        <pre><a moz-do-not-send="true" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a></pre>
        <p class="MsoNormal"><span style="font-size: 12pt; font-family:
            &quot;Times New Roman&quot;,&quot;serif&quot;;"><br>
            <br>
          </span></p>
        <pre>-- </pre>
        <pre>Daniel-Constantin Mierla</pre>
        <pre>Kamailio (OpenSER) Advanced Training</pre>
        <pre>Jan 24-26, 2011, Irvine, CA, USA</pre>
        <pre><a moz-do-not-send="true" href="http://www.asipto.com">http://www.asipto.com</a></pre>
      </div>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
Kamailio (OpenSER) Advanced Training
Jan 24-26, 2011, Irvine, CA, USA
<a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a></pre>
  </body>
</html>