Hi.
In my case I used to run: echo $'dlg_list\n' | xargs ./opensipsctl fifo > RespostasFIFO.txt or ./opensipsctl fifo dlg_list > RespostasFIFO.txt The file RespostasFIFO.txt will be created automatically. I my script I also have loadmodule "dialog.so". Regards. RODRIGO PIMENTA CARVALHO Inatel Competence Center Software Ph: +55 35 3471 9200 RAMAL 979 ________________________________ De: [email protected] <[email protected]> em nome de Carlos Eduardo <[email protected]> Enviado: quarta-feira, 27 de julho de 2016 16:20 Para: OpenSIPS users mailling list Assunto: Re: [OpenSIPS-Users] Get concurrent calls from sip server. Cesar, Are you using the dialog module in your script? This MI command will only return a valid value if the dialog module is loaded (loadmodule "dialog.so") and if the dialogs are criated durign the script processing (create_dialog() command). 2016-07-27 16:12 GMT-03:00 Daniel Zanutti <[email protected]<mailto:[email protected]>>: On my sample, you should run: opensipsctl fifo profile_get_size inbound Using dlg_list you should get something like this: # opensipsctl fifo dlg_list dialog:: hash=84:1411689852 state:: 4 user_flags:: 0 timestart:: 1469646635 datestart:: 2016-07-27 16:10:35 timeout:: 1469653835 dateout:: 2016-07-27 18:10:35 ... dialog:: hash=289:324429409 state:: 2 user_flags:: 0 timestart:: 0 timeout:: 0 ... dialog:: hash=640:1695114669 state:: 4 ... Check if modules are successfully loaded. Regards On Wed, Jul 27, 2016 at 3:41 PM, Cesar Alberto Rodriguez Fierro <[email protected]<mailto:[email protected]>> wrote: Thanks for your help. I trying to use FIFO in order to send requests to OpenSIPS, I have read some documentation about the Dialog Module. I guess using the "opensipsctl fifo dlg_list" command can be useful to obtain the current calls, but I am not sure why the command is not available in my OpenSIPS version. When I execute the command ./opensipsctl fifo version, I am getting the following information Server:: OpenSIPS (1.8.2-notls (x86_64/linux)). On Wed, Jul 27, 2016 at 11:42 AM, Rodrigo Pimenta Carvalho <[email protected]<mailto:[email protected]>> wrote: Now, thinking more about it, I would suggest you to put a SQL query in your proprietary software to query the OpenSIPS database directly. The table dialog will be always updated about current calls. Regards. RODRIGO PIMENTA CARVALHO Inatel Competence Center Software Ph: +55 35 3471 9200<tel:%2B55%2035%203471%209200> RAMAL 979 ________________________________ De: [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>> em nome de Rodrigo Pimenta Carvalho <[email protected]<mailto:[email protected]>> Enviado: quarta-feira, 27 de julho de 2016 14:39 Para: [email protected]<mailto:[email protected]> Assunto: Re: [OpenSIPS-Users] Get concurrent calls from sip server. With FIFO you can send requests to OpenSIPS, for example from a proprietary software. So, if a request wants to execute a query with avpops, I guess FIFO will be useful. Regards. RODRIGO PIMENTA CARVALHO Inatel Competence Center Software Ph: +55 35 3471 9200<tel:%2B55%2035%203471%209200> RAMAL 979 ________________________________ De: [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>> em nome de Cesar Alberto Rodriguez Fierro <[email protected]<mailto:[email protected]>> Enviado: quarta-feira, 27 de julho de 2016 14:29 Para: [email protected]<mailto:[email protected]> Assunto: [OpenSIPS-Users] Get concurrent calls from sip server. Hi ! I am currently working in a project related with display in real time the active calls of our VoIP traffic, I would like to get the active sip-calls from a Kamailio Sip Server (running opensips), is there any way to obtain this information. Best Regards. [Inline image 1] |Cesar Rodriguez | VoiceOPS | MX: +52 656-257-4112<tel:%2B52%20656-257-4112> | [https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif] CONFIDENTIALITY NOTICE: This communication is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient of this information, you are notified that any use, dissemination, distribution, or copying of the communication is strictly prohibited. _______________________________________________ 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]<mailto:[email protected]> http://lists.opensips.org/cgi-bin/mailman/listinfo/users -- Carlos E. Wagner Tecnólogo em Telecomunicações, OCP, dCAA Gnotel Telecom E-mail: [email protected]<mailto:[email protected]> [email protected]<mailto:[email protected]> Fone: +55 48 9981-0894 Skype: carlos.e.wagner www.gnotel.com.br<http://www.gnotel.com.br> www.blogdovoip.com<http://www.blogdovoip.com>
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
