Hi Daniel,
no, I haven't changed anything in kamcli.ini, it seems to be the same
like this one behind your link.
I'm running both kamailio and kamcli as root.
Any other ideas for running of kamcli?
Regards
Marko
Last part of my kamcli.ini:
------------------------------------
### jsonrpc settings
[jsonrpc]
; transport - can be: fifo, socket
transport=socket
; path - where kamailio is listening for JSONRPC FIFO commands
path=/var/run/kamailio/kamailio_rpc.fifo
rplnamebase=kamailio_rpc_reply.fifo
rpldir=/tmp
; srvaddr - where kamailio is listening for JSONRPC socket commands
; - it has to be a path to unix socket file or udp:ipaddr:port
srvaddr=/var/run/kamailio/kamailio_rpc.sock
; rcvaddr - where kamclie is listening for the JSONRPC responses
; - it has to be a path to unix socket file or udp:ipaddr:port
; - pid of kamcli is added at the end to allow multiple use at same time
rcvaddr=/var/run/kamailio/kamailio_rpc.sock
; outformat - how RPC result is printed, can be: json or yaml
; - yaml is more compact output
outformat=yaml
----- Forwarded Message -----
*From:* Daniel-Constantin Mierla <miconda(a)gmail.com>
*To:* Marko Tirs <marko.tirs(a)yahoo.com>om>; Kamailio (SER) - Users
Mailing List <sr-users(a)lists.sip-router.org>
*Sent:* Monday, March 27, 2017 2:18 PM
*Subject:* Re: [SR-Users] kamcli doesn't function
Hello,
have you changed the rpldir in any way for kamcli?
Hi Daniel,
Kamailio is running as root.
How to solve the socket problem?
Regards
Marko
------------------------------------------------------------------------
*From:* Daniel-Constantin Mierla <daniel(a)kamailio.org>
<mailto:daniel@kamailio.org>
*To:* Marko Tirs <marko.tirs(a)yahoo.com>
<mailto:marko.tirs@yahoo.com>; Kamailio (SER) - Users Mailing List
<sr-users(a)lists.sip-router.org> <mailto:sr-users@lists.sip-router.org>
*Sent:* Thursday, March 23, 2017 1:46 PM
*Subject:* Re: [SR-Users] kamcli doesn't function
Hello,
kamcli is creating its own (temporary) socket file in order to
retrieve the response from kamailio. I guess there is a problem with
access rights to it. Is kamailio running as root or other user?
Cheers,
Daniel
March 22, 2017 3:53 PM, "Marko Tirs" <marko.tirs(a)yahoo.com
<mailto:marko.tirs@yahoo.com>> wrote:
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
_______________________________________________
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
www.kamailio.org <http://www.kamailio.org/> --
www.asipto.com
<http://www.asipto.com/>
_______________________________________________
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 <http://www.linkedin.com/in/miconda>
Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) -
<http://www.kamailioworld.com/>
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org