<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
<tt>Hello,<br>
<br>
The dialog modules does not flush dialogs from memory in realtime
to DB (see the docs for the db_mode in dialog module).<br>
<br>
To get an exact listing on the dialogs, use the "dlg_list_dlg" MI
command from dialog module.<br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<br>
On 11/08/2013 05:38 PM, M.Khaled W Chehab wrote:
<blockquote
cite="mid:!&!AAAAAAAAAAAYAAAAAAAAAMaR6fidqHJPngPImOGgDpHCgAAAEAAAAP8sKs3Fj1lNoGXtqAgIqYEBAAAAAA==@icucall.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">D<span style="font-size: 12pt; color:
black;">ears,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; color:
black;"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; color:
black;">I am loading opensips 1.10 with load balancer module
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; color:
black;"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; color:
black;">While applying opensipsctlf fiflo lb_list to the
command line I can see a sum of 408 calls where I can find
only 218 rows in dialog mysql table <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color: black;">How can I find
the 408 calls in my dialog table <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color: black;">My config <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; color:
black;"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; color:
black;">if (is_method("INVITE")) {<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 12pt;
color: black;"> if (!has_totag()) {<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 12pt;
color: black;">create_dialog("B");<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 12pt;
color: black;"> topology_hiding() ;<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 12pt;
color: black;">
load_balance("$avp(Cusid)","trunk","1");<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; color:
black;"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; color:
black;"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; color:
black;">route[<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; color:
black;"># opensipsctl fifo lb_list <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; color:
black;">database engine 'MYSQL' loaded<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; color:
black;">Control engine 'FIFO' loaded<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; color:
black;">entering fifo_cmd lb_list<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; color:
black;">Destination:: <a class="moz-txt-link-freetext" href="sip:xx.xx.xx.4">sip:xx.xx.xx.4</a> id=2 group=1
enabled=yes auto-re=on<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; color:
black;"> Resource:: trunk max=1000 load=208<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; color:
black;">Destination:: <a class="moz-txt-link-freetext" href="sip:xx.xx.xx.5">sip:xx.xx.xx.5</a> id=3 group=1
enabled=yes auto-re=on<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; color:
black;"> Resource:: trunk max=1000 load=200<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; color:
black;">Destination:: <a class="moz-txt-link-freetext" href="sip:37.220.108.10">sip:37.220.108.10</a> id=4 group=2
enabled=yes auto-re=on<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; color:
black;"> Resource:: trunk max=1000 load=0<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; color:
black;"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; color:
black;"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; color:
black;"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; color:
black;">failure_route[missed_call] {<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 12pt;
color: black;">if (t_check_status("(408)|([56][0-9][0-9])"))
{<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 12pt;
color: black;"> if
(load_balance("$avp(Cusid)","trunk","1"))<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; color:
black;"> {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; color:
black;"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; color:
black;">Please advise<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; color:
black;"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; color:
black;"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; color:
black;"><o:p> </o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 12pt;
color: black;">#### DIALOG module<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 12pt;
color: black;">loadmodule "dialog.so"<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 12pt;
color: black;">modparam("dialog", "dlg_match_mode", 1)<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 12pt;
color: black;">modparam("dialog", "default_timeout",3600) #
6 hours timeout<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 12pt;
color: black;">modparam("dialog", "db_mode", 2)<o:p></o:p></span></p>
<p class="MsoNormal" style=""><span style="font-size: 12pt;
color: black;">modparam("dialog",
"db_url","mysql://ckswitch:515155@localhost/ckswitch") #
CUSTOMIZE ME<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; color:
black;">modparam("dialog", "profiles_with_value",
"trunkCalls")<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</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>