<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"Préformaté HTML Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.PrformatHTMLCar
        {mso-style-name:"Préformaté HTML Car";
        mso-style-priority:99;
        mso-style-link:"Préformaté HTML";
        font-family:Consolas;
        mso-fareast-language:EN-US;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=FR link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hello Daniel,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-GB>I installed from the sources.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>But you're right. I missed the "fifo_mode" param with the right permission. It works better, thank you.<br><br>Regards,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB>Igor.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='mso-fareast-language:FR'>De :</span></b><span style='mso-fareast-language:FR'> Daniel-Constantin Mierla <miconda@gmail.com> <br><b>Envoyé :</b> jeudi 30 juillet 2020 11:16<br><b>À :</b> Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>; Igor Potjevlesh <igor.potjevlesch@gmail.com>; sr-users@lists.sip-router.org<br><b>Objet :</b> Re: [SR-Users] Issue with kamctl after upgrading to 5.3.4<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p>Hello,<o:p></o:p></p><p>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.<o:p></o:p></p><p>Anyhow, jsonrpcs also uses a fifo file to receive commands from kamctl and <span lang=EN-GB>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.</span><o:p></o:p></p><p><span lang=EN-GB>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.</span><o:p></o:p></p><p><span lang=EN-GB>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...</span><o:p></o:p></p><p><span lang=EN-GB>Cheers,<br>Daniel</span><o:p></o:p></p><div><p class=MsoNormal>On 30.07.20 10:47, Igor Potjevlesh wrote:<o:p></o:p></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal>Hello there!<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal><span lang=EN-GB>I'm having trouble with kamctl since I upgraded to 5.3.4.</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB>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.</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB>I guess it's a permission problem. But I was thinking that FIFO is no more used. Only jsonrpcs.</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB>How can I fix that?</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB>Regards,</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-GB>Igor.</span><o:p></o:p></p><div id=DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2><p class=MsoNormal style='margin-bottom:12.0pt'><span style='mso-fareast-language:FR'><o:p> </o:p></span></p><div class=MsoNormal align=center style='text-align:center'><span style='mso-fareast-language:FR'><hr size=1 width="99%" noshade style='color:#909090' align=center></span></div><table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 style='border-collapse:collapse'><tr><td style='padding:0cm 11.25pt 0cm 6.0pt'><p class=MsoNormal><a href="https://www.avast.com/antivirus"><span style='mso-fareast-language:FR;text-decoration:none'><img border=0 width=90 height=33 style='width:.9375in;height:.3437in' id="_x0000_i1026" src="http://static.avast.com/emails/avast-mail-stamp.png" alt="Avast logo"></span></a><span style='mso-fareast-language:FR'><o:p></o:p></span></p></td><td style='padding:.75pt .75pt .75pt .75pt'><p><span style='font-size:12.0pt;color:#3D4D5A'>L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast. <br><a href="https://www.avast.com/antivirus">www.avast.com</a> <o:p></o:p></span></p></td></tr></table><p class=MsoNormal><span style='mso-fareast-language:FR'><br><br><o:p></o:p></span></p></div><p class=MsoNormal><span style='mso-fareast-language:FR'><br><br><o:p></o:p></span></p><pre>_______________________________________________<o:p></o:p></pre><pre>Kamailio (SER) - Users Mailing List<o:p></o:p></pre><pre><a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><o:p></o:p></pre><pre><a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><o:p></o:p></pre></blockquote><pre>-- <o:p></o:p></pre><pre>Daniel-Constantin Mierla -- <a href="http://www.asipto.com">www.asipto.com</a><o:p></o:p></pre><pre><a href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a><o:p></o:p></pre><pre>Funding: <a href="https://www.paypal.me/dcmierla">https://www.paypal.me/dcmierla</a><o:p></o:p></pre></div></body></html>