[OpenSIPS-Users] Get concurrent calls from sip server.
Bogdan-Andrei Iancu
bogdan at opensips.org
Thu Jul 28 18:08:12 CEST 2016
Patrick,
if you just want to count them, do "opensipsctl fifo get_statistics
active_dialogs"
See http://www.opensips.org/html/docs/modules/2.2.x/dialog.html#id296704
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 28.07.2016 16:38, Patrick Wakano wrote:
> From the linux CLI you can run:
> opensipsctl fifo dlg_list | grep -c "state:: 4"
>
> On Wed, Jul 27, 2016 at 4:57 PM, Cesar Alberto Rodriguez Fierro
> <crf at transtelco.net <mailto:crf at transtelco.net>> wrote:
>
> There was a wrong configuration of the "dialog.so" module.
>
> I will try to parse the output in order to obtain the current calls.
>
> Thanks for the help.
>
> On Wed, Jul 27, 2016 at 1:20 PM, Carlos Eduardo <kaduww at gmail.com
> <mailto:kaduww at gmail.com>> wrote:
>
> 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> |
>
> 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 <tel:%2B55%2048%209981-0894>
> *Skype:*carlos.e.wagner
> www.gnotel.com.br <http://www.gnotel.com.br>
> www.blogdovoip.com <http://www.blogdovoip.com>
>
> _______________________________________________
> 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
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20160728/fb43d0f6/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 2194 bytes
Desc: not available
URL: <http://lists.opensips.org/pipermail/users/attachments/20160728/fb43d0f6/attachment-0001.png>
More information about the Users
mailing list