<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hello,<br>
<br>
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 ).<br>
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 ).<br>
<br>
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.<br>
<br>
Regards,<br>
<pre class="moz-signature" cols="72">Vlad Paiu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a> </pre>
<br>
On 03/16/2012 04:11 PM, Rodrigo Ferreira wrote:
<blockquote cite="mid:D71349B5ACE54E309538DA9566F3C412@ZogaLovePC"
type="cite">
<title></title>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<div dir="ltr">
<div style="font-family: 'Calibri'; color: rgb(0, 0, 0);
font-size: 12pt;">
<div>The db_mode from dialog module almost fit my needs, the
only thing that it doesnt show me, its the ringing status.</div>
<div> </div>
<div>Do I have to make changes to the routing logic to do
that?</div>
<div style="font-style: normal; display: inline; font-family:
'Calibri'; color: rgb(0, 0, 0); font-size: small;
font-weight: normal; text-decoration: none;">
<div style="font: 10pt tahoma;">
<div> </div>
<div style="background: none repeat scroll 0% 0% rgb(245,
245, 245);">
<div style=""><b>From:</b> <a moz-do-not-send="true"
title="rodrigo.ferreira@vipway.net.br"
href="mailto:rodrigo.ferreira@vipway.net.br">Rodrigo
Ferreira</a> </div>
<div><b>Sent:</b> Friday, March 16, 2012 9:36 AM</div>
<div><b>To:</b> <a moz-do-not-send="true"
title="users@lists.opensips.org"
href="mailto:users@lists.opensips.org">OpenSIPS
users mailling list</a> </div>
<div><b>Subject:</b> Re: [OpenSIPS-Users] Opensips
Active Calls</div>
</div>
</div>
<div> </div>
</div>
<div style="font-style: normal; display: inline; font-family:
'Calibri'; color: rgb(0, 0, 0); font-size: small;
font-weight: normal; text-decoration: none;">
<div dir="ltr">
<div style="font-family: 'Calibri'; color: rgb(0, 0, 0);
font-size: 12pt;">
<div>I’m thinking in build a web interface to show me
all the calls and theirs status.</div>
<div> </div>
<div>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.</div>
<div> </div>
<div>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.</div>
<div> </div>
<div>
<div style="font: 10pt tahoma;">
<div style="background: none repeat scroll 0% 0%
rgb(245, 245, 245);">
<div style=""><b>From:</b> <a
moz-do-not-send="true"
title="bogdan@opensips.org"
href="mailto:bogdan@opensips.org">Bogdan-Andrei
Iancu</a> </div>
<div><b>Sent:</b> Friday, March 16, 2012 9:25 AM</div>
<div><b>To:</b> <a moz-do-not-send="true"
title="users@lists.opensips.org"
href="mailto:users@lists.opensips.org">OpenSIPS
users mailling list</a> </div>
<div><b>Subject:</b> Re: [OpenSIPS-Users] Opensips
Active Calls</div>
</div>
</div>
<div> </div>
</div>
<div style="font-style: normal; display: inline;
font-family: 'Calibri'; color: rgb(0, 0, 0);
font-size: small; font-weight: normal;
text-decoration: none;">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.<br>
<br>
The "dlg_list" gives you all calls, including the ones
in early state.<br>
<br>
Regards,<br>
Bogdan<br>
<br>
<br>
On 03/16/2012 02:19 PM, Vlad Paiu wrote:
<blockquote cite="mid:4F632FD9.10808@opensips.org"
type="cite">Hello,<br>
<br>
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. <br>
<br>
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.<br>
<br>
[1] <a class="moz-txt-link-freetext"
href="http://www.opensips.org/html/docs/modules/devel/dialog.html#id292771"
moz-do-not-send="true">http://www.opensips.org/html/docs/modules/devel/dialog.html#id292771</a><br>
<br>
Regards,<br>
<pre class="moz-signature" cols="72">Vlad Paiu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com" moz-do-not-send="true">http://www.opensips-solutions.com</a> </pre>
<br>
On 03/16/2012 02:14 PM, Rodrigo Ferreiraw wrote:
<blockquote
cite="mid:E6B98F1FFA1848D989BD360EFE1395B1@ZogaLovePC"
type="cite">
<div dir="ltr">
<div style="font-family: 'Calibri'; color:
rgb(0, 0, 0); font-size: 12pt;">
<div>Good Morning,</div>
<div> </div>
<div>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. </div>
<div> </div>
<div>Is there something databased who keeps
this information too?</div>
<div> </div>
<div>Thanks</div>
</div>
</div>
<pre wrap=""><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" moz-do-not-send="true">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<pre wrap=""><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<p>
</p>
<hr>
_______________________________________________<br>
Users mailing list<br>
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div>
</div>
</div>
<p>
</p>
<hr>
_______________________________________________<br>
Users mailing list<br>
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div>
</div>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</body>
</html>