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.t...@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@lists.sip-router.org > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users -- Daniel-Constantin Mierla www.kamailio.org -- www.asipto.com _______________________________________________ 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