Hello,
On 1/11/11 5:20 PM, Ricardo Martinez wrote:
Ok.
It was a “typo” problem.
The command : kamctl fifo profile_get_size your_dlg_profile
Works ok.
So.. question :
I’m using the documentation in the DIALOG MODULE and there it says :
*8.5. **profile_get_size***
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.
Name:/profile_get_size/
Parameters:
* /profile/- name of the profile to get the value for.
* /value/(optional)- string value to further restrict the check;
MI FIFO Command Format:
:profile_get_size:_reply_fifo_file_
inbound_calls
_empty_line_
This is something different from the command you gave me. Why?.l. or
maybe I’m misunderstanding the documentation?
the documentation is about what to write in the fifo file. It is what
kamctl writes there.
kamctl sets it own reply fifo file and the parameters after the fifo
command are written one per line in the fifo file.
The generic fifo command format to be written to fifo file is:
:command:reply_fifo_file
param1
...
paramN
_empty_line_
So, for kamctl tool, that should be given like:
kamctl fifo command param1 ... paramN
Cheers,
Daniel
Thanks anyway.
Regards,
Ricardo.-
*De:*Daniel-Constantin Mierla [mailto:miconda@gmail.com
<mailto:miconda@gmail.com>]
*Enviado el:* martes, 11 de enero de 2011 13:09
*Para:* Ricardo Martinez
*CC:* sr-users(a)lists.sip-router.org <mailto:sr-users@lists.sip-router.org>
*Asunto:* Re: [SR-Users] mi_fifo question
Hello,
On 1/11/11 4:40 PM, Ricardo Martinez wrote:
Hello.
I’m trying to use the kamctl command to get information about
dialogs. I’m using the next line :
kamctl fifo profile_get_size:kamailio_fifo
first the way you use the command is wrong, try:
kamctl fifo profile_get_size your_dlg_profile
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.
Cheers,
Daniel
and I’m getting the next output in the log file :
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
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
What I’m doing wrong?
This is part of the configuration file :
# ----- mi_fifo params ------
modparam("mi_fifo", "fifo_name", "/tmp/kamailio_fifo")
modparam("mi_fifo", "fifo_group", 0)
modparam("mi_fifo", "fifo_group", "root")
modparam("mi_fifo", "fifo_user", 0)
modparam("mi_fifo", "fifo_user", "root")
and this is the file kamailio_fifo in the /tmp directory :
[root@kamailio]# ls -la /tmp
total 52
drwxrwxrwt. 4 root root 4096 Jan 11 12:38 .
dr-xr-xr-x. 25 root root 4096 Jan 7 09:25 ..
drwxrwxrwt 2 root root 4096 Jan 7 09:25 .ICE-unix
*prw-rw---- 1 root root 0 Jan 11 12:34 kamailio_fifo*
drwx------ 2 root root 4096 Jan 11 09:54 ssh-gpTCQ12700
Hope someone could help me.
Regards,
Ricardo.-
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org <mailto:sr-users@lists.sip-router.org>
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
Kamailio (OpenSER) Advanced Training
Jan 24-26, 2011, Irvine, CA, USA
http://www.asipto.com
--
Daniel-Constantin Mierla
Kamailio (OpenSER) Advanced Training
Jan 24-26, 2011, Irvine, CA, USA
http://www.asipto.com