On 02/27/2015 09:33 AM, Thomas Baeumer wrote:
> Hi there,
> 
> I want to use kamctl to monitor the state of a sip-proxy.
> I just have no idea which commands are available or should i use 
> "kamctl mi" or "kamctl fifo" commands.
> Google dont give helpful links for that.
> 
> Im am using kamailio 4.2.3+wheezy on a Debian wheezy and kamctrl dont
> work:
> 
> # kamctl fifo uptime
> Control engine 'FIFO' loaded
> entering fifo_cmd uptime
> 500 command 'uptime' not available
> FIFO command was:
> :uptime:kamailio_receiver_19959
> 
> 
> # kamctl fifo which
> Control engine 'FIFO' loaded
> entering fifo_cmd which
> 500 command 'which' not available
> FIFO command was:
> :which:kamailio_receiver_19985
> 
> # kamctl mi which
> Control engine 'FIFO' loaded
> entering fifo_cmd which
> 500 command 'which' not available
> FIFO command was:
> :which:kamailio_receiver_20016
> 
> 
> 
> here is my config:
> 
> # grep -i fifo kamailio.cfg
> loadmodule "mi_fifo.so"
> modparam("mi_fifo", "fifo_name", "/tmp/kamailio_fifo")
> modparam("mi_fifo", "fifo_user", "kamailio")
> modparam("mi_fifo", "fifo_mode", 0640)
> 
> 
> # ls -la /tmp/kam*
> srw-r----- 1 kamailio root     0 Feb 27 12:39 /tmp/kamailio_ctl
> prw-r----- 1 kamailio kamailio 0 Feb 27 14:25 /tmp/kamailio_fifo
> 
> 
> The only known command what is working is to look into a hashtable:
> 
> 
> # kamctl mi sht_dump foo
> Control engine 'FIFO' loaded
> entering fifo_cmd sht_dump foo
> Entry:: 135
>       sip:0049xxxxxxxx...@sip.domain.tld:: 1
> Entry:: 205
>       sip:0049yyyyyyyy...@sip.domain.tld:: 1
> FIFO command was:
> :sht_dump:kamailio_receiver_20144
> foo
> 
> 
> any idea what is wrong?
> and is there a documentation how to use "kamcrl mi" and "kamctl fifo"?
> 
> Thanks
>   Thomas

If you're just trying to monitor the state... I'd recommend either

kamctl monitor
or
kamctl uptime


Fred Posner
The Palner Group, Inc.
http://www.palner.com (web)
+1-503-914-0999 (direct)

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to