<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Ok. Thanks.</p>
<p><br>
</p>
<p>But, if I cann't edit the file, how could a program (let's say a C program) write into such file?</p>
<p><br>
</p>
<p>I will create a executable that will have to write down MI commands into the FIFO file.</p>
<p><br>
</p>
<p>Any hint will be very helpful!</p>
<p>Thanks a lot!<br>
</p>
<p><br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div class="BodyFragment"><font size="2">
<div class="PlainText">RODRIGO PIMENTA CARVALHO<br>
Inatel Competence Center<br>
Software<br>
Ph: +55 35 3471 9200 RAMAL 979<br>
</div>
</font></div>
</div>
</div>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>De:</b> users-bounces@lists.opensips.org <users-bounces@lists.opensips.org> em nome de Brian :: <bc@iptel.co><br>
<b>Enviado:</b> terça-feira, 1 de dezembro de 2015 16:38<br>
<b>Para:</b> OpenSIPS users mailling list<br>
<b>Assunto:</b> Re: [OpenSIPS-Users] How can I write down the MI commands into the FIFO file, using an editor.</font>
<div> </div>
</div>
<div>
<div dir="ltr">This is not the correct way to go about what you are trying to achieve.
<div><br>
</div>
<div>You *cant* edit the fifo file. You use (correctly configured) opensipsctl fifo to send commands in realtime</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Dec 1, 2015 at 5:04 PM, Rodrigo Pimenta Carvalho
<span dir="ltr"><<a href="mailto:pimenta@inatel.br" target="_blank">pimenta@inatel.br</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div style="font-size:12pt; color:#000000; background-color:#ffffff; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Dear OpenSIPS-users,</p>
<p><br>
</p>
<p>I my opensips.cfg I have:</p>
<p><br>
</p>
<p>---------------------------------------------------------</p>
<p><br>
</p>
<p>##### FIFO Management Interface<br>
loadmodule "mi_fifo.so"<br>
modparam("mi_fifo", "fifo_name", "/tmp/FifoCommands.txt") # arquivo para ler comandos solicitados por aplicações externas.<br>
modparam("mi_fifo", "reply_dir", "/tmp") # diretório onde serão escritas as respostas do OpenSIPS, que serão lidas pelas aplicações externas.<br>
modparam("mi_fifo", "fifo_mode", 0777) # permissão de scrita e leitura.<br>
modparam("mi_fifo", "fifo_group", "root") # grupo de usuários para o arquivo.<br>
modparam("mi_fifo", "fifo_user", "root") # usuário do arquivo.</p>
<p><br>
</p>
<p>----------------------------------------------------------</p>
<p><br>
</p>
<p><br>
</p>
<p>When OpenSIPS is not running, I can edit the file FifoCommands.txt using emacs or vi, for example.</p>
<p><br>
</p>
<p>However, when OpenSIPS is running I can not. The editor tells me that the file is read only Why? How to solve this? Any configuration?</p>
<p><br>
</p>
<p>Any hint will be very helpful!</p>
<p><br>
</p>
<p>Thanks a lot.</p>
<span class="HOEnZb"><font color="#888888">
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<div>
<div name="divtagdefaultwrapper">
<div><font size="2">
<div>RODRIGO PIMENTA CARVALHO<br>
Inatel Competence Center<br>
Software<br>
Ph: <a href="tel:%2B55%2035%203471%209200" value="+553534719200" target="_blank">
+55 35 3471 9200</a> RAMAL 979<br>
</div>
</font></div>
</div>
</div>
</font></span></div>
</div>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</body>
</html>