Ok. thanks.
I will search about it in operational system context. I used to think that such fifo file was 100% supported by OpenSIPS. I didn't realize that it could be something of unix. I'm kind of a beginner in unix or linux. Regards. RODRIGO PIMENTA CARVALHO Inatel Competence Center Software Ph: +55 35 3471 9200 RAMAL 979 ________________________________ De: [email protected] <[email protected]> em nome de Ionut Muntean <[email protected]> Enviado: terça-feira, 1 de dezembro de 2015 17:19 Para: [email protected] Assunto: Re: [OpenSIPS-Users] How can I write down the MI commands into the FIFO file, using an editor. Come on, read about FIFO in Linux, lot's of info on the net! Sorry, but you lack some basic Linux OS knowledge ... The FIFO is active and RW if the creating process is active and if you have the permissions to do this. On 01/12/2015 21:13, Rodrigo Pimenta Carvalho wrote: Ok. Thanks. But, if I cann't edit the file, how could a program (let's say a C program) write into such file? I will create a executable that will have to write down MI commands into the FIFO file. Any hint will be very helpful! Thanks a lot! RODRIGO PIMENTA CARVALHO Inatel Competence Center Software Ph: +55 35 3471 9200 RAMAL 979 ________________________________ De: [email protected]<mailto:[email protected]> <[email protected]><mailto:[email protected]> em nome de Brian :: <[email protected]><mailto:[email protected]> Enviado: terça-feira, 1 de dezembro de 2015 16:38 Para: OpenSIPS users mailling list Assunto: Re: [OpenSIPS-Users] How can I write down the MI commands into the FIFO file, using an editor. This is not the correct way to go about what you are trying to achieve. You *cant* edit the fifo file. You use (correctly configured) opensipsctl fifo to send commands in realtime On Tue, Dec 1, 2015 at 5:04 PM, Rodrigo Pimenta Carvalho <[email protected]<mailto:[email protected]>> wrote: Dear OpenSIPS-users, I my opensips.cfg I have: --------------------------------------------------------- ##### FIFO Management Interface loadmodule "mi_fifo.so" modparam("mi_fifo", "fifo_name", "/tmp/FifoCommands.txt") # arquivo para ler comandos solicitados por aplicações externas. modparam("mi_fifo", "reply_dir", "/tmp") # diretório onde serão escritas as respostas do OpenSIPS, que serão lidas pelas aplicações externas. modparam("mi_fifo", "fifo_mode", 0777) # permissão de scrita e leitura. modparam("mi_fifo", "fifo_group", "root") # grupo de usuários para o arquivo. modparam("mi_fifo", "fifo_user", "root") # usuário do arquivo. ---------------------------------------------------------- When OpenSIPS is not running, I can edit the file FifoCommands.txt using emacs or vi, for example. 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? Any hint will be very helpful! Thanks a lot. RODRIGO PIMENTA CARVALHO Inatel Competence Center Software Ph: +55 35 3471 9200<tel:%2B55%2035%203471%209200> RAMAL 979 _______________________________________________ Users mailing list [email protected]<mailto:[email protected]> http://lists.opensips.org/cgi-bin/mailman/listinfo/users _______________________________________________ Users mailing list [email protected]<mailto:[email protected]> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
