[SR-Users] Issue with kamctl after upgrading to 5.3.4
Igor Potjevlesh
igor.potjevlesch at gmail.com
Thu Jul 30 12:34:19 CEST 2020
Hello Daniel,
I installed from the sources.
But you're right. I missed the "fifo_mode" param with the right permission. It works better, thank you.
Regards,
Igor.
De : Daniel-Constantin Mierla <miconda at gmail.com>
Envoyé : jeudi 30 juillet 2020 11:16
À : Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org>; Igor Potjevlesh <igor.potjevlesch at gmail.com>; sr-users at lists.sip-router.org
Objet : Re: [SR-Users] Issue with kamctl after upgrading to 5.3.4
Hello,
did you install from packages on an OS with systemd? I think I saw some discussion here on mailing list related to restriction/permissions enforced by systemd, but I am not sure it was about the same case.
Anyhow, jsonrpcs also uses a fifo file to receive commands from kamctl and kamailio_rpc.fifo is the one create in such case. The mi_fifo is no longer available, which was for MI commands, not for RPC commands.
The jsonrpcs module should have modparams to set access rights as well as user/group for the rpc fifo file. That should give enough flexibility to allow different users to access the fifo file.
Otherwise, I am not sure why it worked for you before, because it was supposed to be restricted access and as long as I can remember I used sudo to run kamctl...
Cheers,
Daniel
On 30.07.20 10:47, Igor Potjevlesh wrote:
Hello there!
I'm having trouble with kamctl since I upgraded to 5.3.4.
The command is working fine with root user but not with another user. The problem seems to be that the command try to access to /var/run/kamailio/kamailio_rpc.fifo even if the file exists.
I guess it's a permission problem. But I was thinking that FIFO is no more used. Only jsonrpcs.
How can I fix that?
Regards,
Igor.
_____
<https://www.avast.com/antivirus>
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast.
www.avast.com <https://www.avast.com/antivirus>
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users at lists.kamailio.org <mailto:sr-users at lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla -- www.asipto.com <http://www.asipto.com>
www.twitter.com/miconda <http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda <http://www.linkedin.com/in/miconda>
Funding: https://www.paypal.me/dcmierla
--
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast.
https://www.avast.com/antivirus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20200730/3134c1b3/attachment-0001.htm>
More information about the sr-users
mailing list