[SR-Users] kamcli doesn't function
Daniel-Constantin Mierla
miconda at gmail.com
Mon Mar 27 14:18:33 CEST 2017
Hello,
have you changed the rpldir in any way for kamcli?
https://github.com/kamailio/kamcli/blob/master/kamcli/kamcli.ini#L43
Cheers,
Daniel
On 24/03/2017 00:10, Marko Tirs wrote:
> Hi Daniel,
>
> Kamailio is running as root.
> How to solve the socket problem?
>
> Regards
> Marko
>
>
> ------------------------------------------------------------------------
> *From:* Daniel-Constantin Mierla <daniel at kamailio.org>
> *To:* Marko Tirs <marko.tirs at yahoo.com>; Kamailio (SER) - Users
> Mailing List <sr-users at 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 at yahoo.com
> <mailto:marko.tirs at 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 at lists.sip-router.org <mailto:sr-users at 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 at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) - www.asipto.com
Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20170327/941b8047/attachment.html>
More information about the sr-users
mailing list