[SR-Users] kamcli doesn't function

Marko Tirs marko.tirs at yahoo.com
Wed Mar 22 15:49:50 CET 2017


Hello all,

I can't find any answer why my kamcli doesn't function.

I'm using Kamailio 5.0.0 at the Debian Jessy 8.7 and it functions well.

# kamctl ul show

functions well but when I use kamcli I get error:

# kamcli ul show
13(7452) ERROR: jsonrpcs [jsonrpcs_sock.c:542]: jsonrpc_dgram_send_data(): failed to send the response - ret: -1, len: 2443 (131072), err: 1 - Operation not permitted)
(log): Timeout receiving response on unix sock


The relevant parts of kamailio.cfg:

#------------------------------------------------------------------------

#!define WITH_DEBUG
#!define WITH_NAT
#!define WITH_MYSQL
#!define WITH_AUTH
#!define WITH_USRLOCDB


loadmodule "jsonrpcs.so"


# ----- jsonrpcs params -----
modparam("jsonrpcs", "pretty_format", 1)
/* set the path to RPC fifo control file */
modparam("jsonrpcs", "fifo_name", "/var/run/kamailio/kamailio_rpc.fifo")
/* set the path to RPC unix socket control file */
modparam("jsonrpcs", "dgram_socket", "/var/run/kamailio/kamailio_rpc.sock")

# ----- ctl params -----
modparam("ctl", "binrpc", "unix:/var/run/kamailio/kamailio_ctl")
#--------------------------------------------------------------------------


# ll /var/run/kamailio/
total 0
srw------- 1 root root 0 Mar 22 11:36 kamailio_ctl
prw-rw---- 1 root root 0 Mar 22 12:30 kamailio_rpc.fifo
srw-rw---- 1 root root 0 Mar 22 11:36 kamailio_rpc.sock


Can somebody tell me what is the problem?

Thank you!
Regards
Marko



More information about the sr-users mailing list