[OpenSIPS-Users] Opensips Active Calls
Vlad Paiu
vladpaiu at opensips.org
Fri Mar 16 15:19:16 CET 2012
Hello,
The ringing status is not in the database because, as Bogdan mentioned
in a previous email, the dialogs are only inserted into the DB after
dialog establishment ( after 200 Ok was received ).
In regards to dlg_list showing different number of lines for different
calls, that's only normal because, depending of the state of a call, it
can have zero, one, or multiple callee legs ( zero if no replies have
been received for the INVITE, one if there was a reply from a single
branch or multiple legs in case you have serial or parallel forking ).
So your choices would be to either work a little extra to parse the
dlg_list output ( which is not that complicated at all :) ) and also
have information about early dialogs, or be lazy and use the DB, but
then you only have established dialogs information, and you also put a
higher load on the DB.
Regards,
Vlad Paiu
OpenSIPS Developer
http://www.opensips-solutions.com
On 03/16/2012 04:11 PM, Rodrigo Ferreira wrote:
> The db_mode from dialog module almost fit my needs, the only thing
> that it doesnt show me, its the ringing status.
> Do I have to make changes to the routing logic to do that?
> *From:* Rodrigo Ferreira <mailto:rodrigo.ferreira at vipway.net.br>
> *Sent:* Friday, March 16, 2012 9:36 AM
> *To:* OpenSIPS users mailling list <mailto:users at lists.opensips.org>
> *Subject:* Re: [OpenSIPS-Users] Opensips Active Calls
> I’m thinking in build a web interface to show me all the calls and
> theirs status.
> I have tried to make using dlg_list from fifo, but they give me only
> text, and sometimes the dialog on fifo doesnt show all the lines that
> I expected.
> For example, if a call is going normal, it shows me a number of lines
> (I dont remember exactly how much lines it shows me), but if I had
> dialed a number, and hung up the call right after I dialed, it showed
> me a different number of lines. Thats why i’m thinking on query a
> databases to make a friendly web interface for my users.
> *From:* Bogdan-Andrei Iancu <mailto:bogdan at opensips.org>
> *Sent:* Friday, March 16, 2012 9:25 AM
> *To:* OpenSIPS users mailling list <mailto:users at lists.opensips.org>
> *Subject:* Re: [OpenSIPS-Users] Opensips Active Calls
> Just a small note - by looking into DB, to dialog table, you will not
> be able to see calls in early state ; dialog module pushes calls to DB
> only when established.
>
> The "dlg_list" gives you all calls, including the ones in early state.
>
> Regards,
> Bogdan
>
>
> On 03/16/2012 02:19 PM, Vlad Paiu wrote:
>> Hello,
>>
>> You can also enable DB persistency for the dialog module, see the
>> db_mode parameter [1] , and after than you can query the database to
>> get the ongoing dialogs.
>>
>> But why doesn't the dlg_list fifo command satisfy your needs ? It
>> should be much faster to get the ongoing dialogs from the OpenSIPS
>> internal memory, instead of querying a database.
>>
>> [1] http://www.opensips.org/html/docs/modules/devel/dialog.html#id292771
>>
>> Regards,
>> Vlad Paiu
>> OpenSIPS Developer
>> http://www.opensips-solutions.com
>>
>> On 03/16/2012 02:14 PM, Rodrigo Ferreiraw wrote:
>>> Good Morning,
>>> there’s a way to see active calls on Opensips besides “opensips fifo
>>> dlg_list”? Because I wanna make a call viewer, to make easier the
>>> call visualization, I know that “dlg_list” show me actual status of
>>> the call, like, ringing, active or hanging up.
>>> Is there something databased who keeps this information too?
>>> Thanks
>>>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> 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
>
>
> --
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developer
> http://www.opensips-solutions.com
>
> ------------------------------------------------------------------------
> _______________________________________________
> Users mailing list
> 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
>
>
> _______________________________________________
> 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/20120316/646ed182/attachment.htm>
More information about the Users
mailing list