[OpenSIPS-Users] Get concurrent calls from sip server.
Rodrigo Pimenta Carvalho
pimenta at inatel.br
Wed Jul 27 21:48:34 CEST 2016
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: users-bounces at lists.opensips.org <users-bounces at lists.opensips.org> em nome de Carlos Eduardo <kaduww at gmail.com>
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 <daniel.zanutti at gmail.com<mailto:daniel.zanutti at gmail.com>>:
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 <crf at transtelco.net<mailto:crf at transtelco.net>> 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 <pimenta at inatel.br<mailto:pimenta at inatel.br>> 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: users-bounces at lists.opensips.org<mailto:users-bounces at lists.opensips.org> <users-bounces at lists.opensips.org<mailto:users-bounces at lists.opensips.org>> em nome de Rodrigo Pimenta Carvalho <pimenta at inatel.br<mailto:pimenta at inatel.br>>
Enviado: quarta-feira, 27 de julho de 2016 14:39
Para: users at lists.opensips.org<mailto:users at lists.opensips.org>
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: users-bounces at lists.opensips.org<mailto:users-bounces at lists.opensips.org> <users-bounces at lists.opensips.org<mailto:users-bounces at lists.opensips.org>> em nome de Cesar Alberto Rodriguez Fierro <crf at transtelco.net<mailto:crf at transtelco.net>>
Enviado: quarta-feira, 27 de julho de 2016 14:29
Para: users at lists.opensips.org<mailto:users at lists.opensips.org>
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
Users at lists.opensips.org<mailto:Users at lists.opensips.org>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
Users at lists.opensips.org<mailto:Users at lists.opensips.org>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
Users at lists.opensips.org<mailto:Users at lists.opensips.org>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
--
Carlos E. Wagner
Tecnólogo em Telecomunicações, OCP, dCAA
Gnotel Telecom
E-mail: kaduww at gmail.com<mailto:kaduww at gmail.com>
carlos at gnotel.com.br<mailto:carlos at gnotel.com.br>
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>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20160727/067026c1/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logo_transtelco.png
Type: image/png
Size: 2194 bytes
Desc: logo_transtelco.png
URL: <http://lists.opensips.org/pipermail/users/attachments/20160727/067026c1/attachment.png>
More information about the Users
mailing list