<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"><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></head><body bgcolor="white" lang="ES-CL" link="blue" vlink="purple"><div class="WordSection1"><p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black">Ok.</span></p><p class="MsoNormal">
<span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black">It was a “typo” problem.</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black">The command : </span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black">kamctl fifo profile_get_size your_dlg_profile</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black"> </span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:black">Works ok.</span></p><p class="MsoNormal">
<span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black">So.. question : </span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black">I’m using the documentation in the DIALOG MODULE and there it says : </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"> </span></p><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span lang="EN-US" style="font-size:13.5pt;font-family:&quot;Helvetica&quot;,&quot;sans-serif&quot;">8.5. </span></b><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;">profile_get_size</span></b><b><span lang="EN-US" style="font-size:13.5pt;font-family:&quot;Helvetica&quot;,&quot;sans-serif&quot;"></span></b></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:justify"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Helvetica&quot;,&quot;sans-serif&quot;">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="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:justify"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Helvetica&quot;,&quot;sans-serif&quot;">Name:</span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Helvetica&quot;,&quot;sans-serif&quot;"> <i>profile_get_size</i></span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Helvetica&quot;,&quot;sans-serif&quot;"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:justify"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Helvetica&quot;,&quot;sans-serif&quot;">Parameters:</span></p>
<ul type="disc"><li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:justify;mso-list:l0 level1 lfo1"><i><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Helvetica&quot;,&quot;sans-serif&quot;">profile</span></i><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Helvetica&quot;,&quot;sans-serif&quot;"> </span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Helvetica&quot;,&quot;sans-serif&quot;">- name of the profile to get the value for.</span></li>
<li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:justify;mso-list:l0 level1 lfo1"><i><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Helvetica&quot;,&quot;sans-serif&quot;">value</span></i><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Helvetica&quot;,&quot;sans-serif&quot;"> </span><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Helvetica&quot;,&quot;sans-serif&quot;">(optional)- string value to further restrict the check;</span></li>
</ul><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:justify"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Helvetica&quot;,&quot;sans-serif&quot;">MI FIFO Command Format:</span></p>
<div style="mso-element:para-border-div;border:solid #99CCCC 1.0pt;padding:0cm 0cm 0cm 15.0pt;background:#FEFEEE"><p class="MsoNormal" style="background:#FEFEEE;border:none;padding:0cm"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;">               :profile_get_size:_reply_fifo_file_</span></p>
<p class="MsoNormal" style="background:#FEFEEE;border:none;padding:0cm"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Courier New&quot;">               </span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">inbound_calls</span></p>
<p class="MsoNormal" style="background:#FEFEEE;border:none;padding:0cm"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">               _empty_line_</span></p></div><p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:#1F497D"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:#1F497D"> </span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:#1F497D"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black">This is something different from the command you gave me.  Why?.l. or maybe I’m misunderstanding the documentation?</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black"> </span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black">Thanks anyway.</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black"> </span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:black">Regards,</span></p><p class="MsoNormal">
<span style="font-size:10.0pt;font-family:Consolas;color:black">Ricardo.-</span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:#1F497D"> </span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:#1F497D"> </span></p>
<div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal"><b><span lang="ES" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext">De:</span></b><span lang="ES" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext"> Daniel-Constantin Mierla [mailto:<a 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 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 lang="EN-US" style="font-family:Consolas">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 lang="EN-US" style="font-family:Consolas"> </span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas">kamctl fifo profile_get_size:kamailio_fifo</span></p><p class="MsoNormal">
<span style="font-size:12.0pt;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 lang="EN-US" style="font-family:Consolas"> </span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas"> </span></p><p class="MsoNormal">
<span lang="EN-US" style="font-family:Consolas">and I’m getting the next output in the log file : </span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas"> </span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas">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 lang="EN-US" style="font-family:Consolas">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 lang="EN-US" style="font-family:Consolas"> </span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas"> </span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas">What I’m doing wrong?</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas"> </span></p><p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US" style="font-family:Consolas">This is part of the configuration file : </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas"># ----- mi_fifo params ------</span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas">modparam(&quot;mi_fifo&quot;, &quot;fifo_name&quot;, &quot;/tmp/kamailio_fifo&quot;)</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas">modparam(&quot;mi_fifo&quot;, &quot;fifo_group&quot;, 0)</span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas">modparam(&quot;mi_fifo&quot;, &quot;fifo_group&quot;, &quot;root&quot;)</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas">modparam(&quot;mi_fifo&quot;, &quot;fifo_user&quot;, 0)</span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas">modparam(&quot;mi_fifo&quot;, &quot;fifo_user&quot;, &quot;root&quot;)</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas"> </span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas"> </span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas">and this is  the file kamailio_fifo in the /tmp directory :</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas"> </span></p><p class="MsoNormal"><span style="font-family:Consolas">[root@kamailio]# ls -la /tmp</span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas">total 52</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas">drwxrwxrwt.  4 root   root    4096 Jan 11 12:38 .</span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas">dr-xr-xr-x. 25 root   root    4096 Jan  7 09:25 ..</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas">drwxrwxrwt   2 root   root    4096 Jan  7 09:25 .ICE-unix</span></p><p class="MsoNormal"><b><span lang="EN-US" style="font-family:Consolas">prw-rw----   1 root   root       0 Jan 11 12:34 kamailio_fifo</span></b></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas">drwx------   2 root   root    4096 Jan 11 09:54 ssh-gpTCQ12700</span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas">Hope someone could help me.</span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas"> </span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas">Regards,</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas">Ricardo.-</span></p><pre> </pre><pre> </pre><pre>_______________________________________________</pre><pre>SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list</pre>
<pre><a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a></pre><pre><a 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:12.0pt;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 href="http://www.asipto.com">http://www.asipto.com</a></pre></div></body></html>