Re: [OpenSIPS-Users] Get concurrent calls from sip server.

2016-08-01 Thread Bogdan-Andrei Iancu

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 
mailto:c...@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 mailto:kad...@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
mailto:daniel.zanu...@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 mailto:c...@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 mailto:pime...@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
 RAMAL 979




*De:* users-boun...@lists.opensips.org
<mailto:users-boun...@lists.opensips.org>
mailto:users-boun...@lists.opensips.org>> em nome
de Rodrigo Pimenta Carvalho mailto:pime...@inatel.br>>
*Enviado:* quarta-feira, 27 de julho de 2016 14:39
*Para:* users@lists.opensips.org
        <mailto:users@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
 RAMAL 979




*De:* users-boun...@lists.opensips.org
<mailto:users-boun...@lists.opensips.org>
mailto:users-boun...@lists.opensips.org>> em nome
de Cesar Alberto Rodriguez Fierro
   

Re: [OpenSIPS-Users] Get concurrent calls from sip server.

2016-08-01 Thread Patrick Wakano
Nice!
Thanks Bogdan!

On Thu, Jul 28, 2016 at 1:08 PM, Bogdan-Andrei Iancu 
wrote:

> 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 Developerhttp://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 <
> c...@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 < 
>> kad...@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.zanu...@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 <
>>>> c...@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 <
>>>>> pime...@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 <%2B55%2035%203471%209200> RAMAL 979
>>>>>>
>>>>>>
>>>>>> --
>>>>>> *De:* 
>>>>>> users-boun...@lists.opensips.org < 
>>>>>> users-boun...@lists.opensips.org> em nome de Rodrigo Pimenta
>>>>>> Carvalho < pime...@inatel.br>
>>>>>> *Enviado:* quarta-feira, 27 de julho de 2016 14:39
>>>>>> *Para:* users@lists.opensips.org
>>>>>> *Assunto:* Re: [OpenSIPS-Users] Get concurrent calls from sip server.
>>>>>>
>>>>>>
>>>>>> With FIFO you can send requests to OpenSIPS, for exa

Re: [OpenSIPS-Users] Get concurrent calls from sip server.

2016-07-28 Thread Patrick Wakano
>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 <
c...@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  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 :
>>
>>> 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 <
>>> c...@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 <
>>>> pime...@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 RAMAL 979
>>>>>
>>>>>
>>>>> --
>>>>> *De:* users-boun...@lists.opensips.org <
>>>>> users-boun...@lists.opensips.org> em nome de Rodrigo Pimenta Carvalho
>>>>> 
>>>>> *Enviado:* quarta-feira, 27 de julho de 2016 14:39
>>>>> *Para:* users@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 RAMAL 979
>>>>>
>>>>>
>>>>> --
>>>>> *De:* users-boun...@lists.opensips.org <
>>>>> users-boun...@lists.opensips.org> em nome de Cesar Alberto Rodriguez
>>>>> Fierro 
>>>>> *Enviado:* quarta-feira, 27 de julho de 2016 14:29
>>>>> *Para:* users@lists.opensips.org
>>>>> *Assunto:* [OpenSIPS-Users] Get concurrent calls from sip server.
>>>>>
>>>>> Hi !
>>>>>

Re: [OpenSIPS-Users] Get concurrent calls from sip server.

2016-07-28 Thread Bogdan-Andrei Iancu

Hi Cesar,

Be aware that all the MI commands (like dlg_list) can be triggered via 
different backends. Maybe doing it via mi_json will give you a better 
(and easy to parse) answer.

http://www.opensips.org/html/docs/modules/2.2.x/mi_json.html

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 27.07.2016 22:57, Cesar Alberto Rodriguez Fierro 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 <mailto:kad...@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
mailto:daniel.zanu...@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 mailto:c...@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
mailto:pime...@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 
RAMAL 979




*De:* users-boun...@lists.opensips.org
<mailto:users-boun...@lists.opensips.org>
mailto:users-boun...@lists.opensips.org>> em nome de
Rodrigo Pimenta Carvalho mailto:pime...@inatel.br>>
*Enviado:* quarta-feira, 27 de julho de 2016 14:39
*Para:* users@lists.opensips.org
    <mailto:users@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 
RAMAL 979




*De:* users-boun...@lists.opensips.org
<mailto:users-boun...@lists.opensips.org>
mailto:users-boun...@lists.opensips.org>> em nome de
Cesar Alberto Rodriguez Fierro mailto:c...@transtelco.net>>
*Enviado:* quarta-feira, 27 de julho de 2016 14:29
*Para:* users@lists.opensips.org
    <mailto:users@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

Re: [OpenSIPS-Users] Get concurrent calls from sip server.

2016-07-27 Thread Cesar Alberto Rodriguez Fierro
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  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 :
>
>> 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 <
>> c...@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 <
>>> pime...@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 RAMAL 979
>>>>
>>>>
>>>> --
>>>> *De:* users-boun...@lists.opensips.org <
>>>> users-boun...@lists.opensips.org> em nome de Rodrigo Pimenta Carvalho <
>>>> pime...@inatel.br>
>>>> *Enviado:* quarta-feira, 27 de julho de 2016 14:39
>>>> *Para:* users@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 RAMAL 979
>>>>
>>>>
>>>> --
>>>> *De:* users-boun...@lists.opensips.org <
>>>> users-boun...@lists.opensips.org> em nome de Cesar Alberto Rodriguez
>>>> Fierro 
>>>> *Enviado:* quarta-feira, 27 de julho de 2016 14:29
>>>> *Para:* users@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.
>>>>
>>>>
>>>>
>>>>
>>>> [image: Inline image 1] |Cesar Rodriguez | VoiceOPS  | MX: +52
>>>> 656-257-4112 |
>>>>
>>>> CONFIDENTIALITY NOTICE:  This communic

Re: [OpenSIPS-Users] Get concurrent calls from sip server.

2016-07-27 Thread Rodrigo Pimenta Carvalho
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-boun...@lists.opensips.org  em nome 
de Carlos Eduardo 
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 
mailto:daniel.zanu...@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 
mailto:c...@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 
mailto:pime...@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 RAMAL 979



De: users-boun...@lists.opensips.org<mailto:users-boun...@lists.opensips.org> 
mailto:users-boun...@lists.opensips.org>> em 
nome de Rodrigo Pimenta Carvalho mailto:pime...@inatel.br>>
Enviado: quarta-feira, 27 de julho de 2016 14:39
Para: users@lists.opensips.org<mailto:users@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 RAMAL 979



De: users-boun...@lists.opensips.org<mailto:users-boun...@lists.opensips.org> 
mailto:users-boun...@lists.opensips.org>> em 
nome de Cesar Alberto Rodriguez Fierro 
mailto:c...@transtelco.net>>
Enviado: quarta-feira, 27 de julho de 2016 14:29
Para: users@lists.opensips.org<mailto:users@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 |
[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@lists.opensips.org<mailto:Users@lists.opensips.org>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



___
Users mailing list
Users@lists.opensips.org<mailto:Users@lists.opensips.org>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



___
Users mai

Re: [OpenSIPS-Users] Get concurrent calls from sip server.

2016-07-27 Thread Carlos Eduardo
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 :

> 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 <
> c...@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 <
>> pime...@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 RAMAL 979
>>>
>>>
>>> --
>>> *De:* users-boun...@lists.opensips.org 
>>> em nome de Rodrigo Pimenta Carvalho 
>>> *Enviado:* quarta-feira, 27 de julho de 2016 14:39
>>> *Para:* users@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 RAMAL 979
>>>
>>>
>>> --
>>> *De:* users-boun...@lists.opensips.org 
>>> em nome de Cesar Alberto Rodriguez Fierro 
>>> *Enviado:* quarta-feira, 27 de julho de 2016 14:29
>>> *Para:* users@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.
>>>
>>>
>>>
>>>
>>> [image: Inline image 1] |Cesar Rodriguez | VoiceOPS  | MX: +52
>>> 656-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@lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>>
>>
>> ___
>> Users mailing list
>> Users@lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>
> ___
> Users mailing list
> Users@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:* *kad...@gmail.com *
*car...@gnotel.com.br *
*Fone:* +55 48 9981-0894
*Skype:* carlos.e.wagner
www.gnotel.com.br
www.blogdovoip.com
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Get concurrent calls from sip server.

2016-07-27 Thread Daniel Zanutti
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 <
c...@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 <
> pime...@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 RAMAL 979
>>
>>
>> --
>> *De:* users-boun...@lists.opensips.org 
>> em nome de Rodrigo Pimenta Carvalho 
>> *Enviado:* quarta-feira, 27 de julho de 2016 14:39
>> *Para:* users@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 RAMAL 979
>>
>>
>> --
>> *De:* users-boun...@lists.opensips.org 
>> em nome de Cesar Alberto Rodriguez Fierro 
>> *Enviado:* quarta-feira, 27 de julho de 2016 14:29
>> *Para:* users@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.
>>
>>
>>
>>
>> [image: Inline image 1] |Cesar Rodriguez | VoiceOPS  | MX: +52
>> 656-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@lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Get concurrent calls from sip server.

2016-07-27 Thread Cesar Alberto Rodriguez Fierro
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 <
pime...@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 RAMAL 979
>
>
> --
> *De:* users-boun...@lists.opensips.org 
> em nome de Rodrigo Pimenta Carvalho 
> *Enviado:* quarta-feira, 27 de julho de 2016 14:39
> *Para:* users@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 RAMAL 979
>
>
> --
> *De:* users-boun...@lists.opensips.org 
> em nome de Cesar Alberto Rodriguez Fierro 
> *Enviado:* quarta-feira, 27 de julho de 2016 14:29
> *Para:* users@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.
>
>
>
>
> [image: Inline image 1] |Cesar Rodriguez | VoiceOPS  | MX: +52
> 656-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@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Get concurrent calls from sip server.

2016-07-27 Thread Rodrigo Pimenta Carvalho
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 RAMAL 979



De: users-boun...@lists.opensips.org  em nome 
de Rodrigo Pimenta Carvalho 
Enviado: quarta-feira, 27 de julho de 2016 14:39
Para: users@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 RAMAL 979



De: users-boun...@lists.opensips.org  em nome 
de Cesar Alberto Rodriguez Fierro 
Enviado: quarta-feira, 27 de julho de 2016 14:29
Para: users@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 |
[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@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Get concurrent calls from sip server.

2016-07-27 Thread Rodrigo Pimenta Carvalho
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 RAMAL 979



De: users-boun...@lists.opensips.org  em nome 
de Cesar Alberto Rodriguez Fierro 
Enviado: quarta-feira, 27 de julho de 2016 14:29
Para: users@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 |
[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@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Get concurrent calls from sip server.

2016-07-27 Thread Daniel Zanutti
Hi Cesar

For realtime querying, you can use dialog profiles. Set a profile (for
example: inbound) on all calls like this:
set_dlg_profile("inbound");

Then read this using FIFO.

I just didn't get the "Kamailio Sip Server running Opensips".

Regards

On Wed, Jul 27, 2016 at 2:29 PM, Cesar Alberto Rodriguez Fierro <
c...@transtelco.net> wrote:

> 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.
>
>
>
>
> [image: Inline image 1] |Cesar Rodriguez | VoiceOPS  | MX: +52
> 656-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@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Get concurrent calls from sip server.

2016-07-27 Thread Rodrigo Pimenta Carvalho
Hi.


Table dialog from the OpenSIPS database will contain information useful for 
your needing.

You will have to query the database to get data from such table and then handle 
data as you need.

For querying the database, see about 
http://www.opensips.org/html/docs/modules/2.2.x/avpops.html


Regards.

AVPops Module - 
OpenSIPS<http://www.opensips.org/html/docs/modules/2.2.x/avpops.html>
www.opensips.org
AVPops (AVP-operations) modules implements a set of script functions which 
allow access and manipulation of user AVPs (preferences) and pseudo-variables.




RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979



De: users-boun...@lists.opensips.org  em nome 
de Cesar Alberto Rodriguez Fierro 
Enviado: quarta-feira, 27 de julho de 2016 14:29
Para: users@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 |
[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@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Get concurrent calls from sip server.

2016-07-27 Thread Cesar Alberto Rodriguez Fierro
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.




[image: Inline image 1] |Cesar Rodriguez | VoiceOPS  | MX: +52 656-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@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users