<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.10.0">
</HEAD>
<BODY>
Hi,<BR>
<BR>
&nbsp;&nbsp;&nbsp; we are using openser 1.3.0<BR>
&nbsp;&nbsp;&nbsp; we add new module dialog in openser.cfg file. which&nbsp; provides dialog awareness to OpenSER proxy.<BR>
&nbsp;&nbsp;&nbsp; also set the modparam...........<BR>
<BR>
&nbsp;&nbsp;&nbsp; <FONT COLOR="#000080">modparam(&quot;dialog&quot;, &quot;db_url&quot;, &quot;mysql://openser:<A HREF="mailto:routing@localhost">routing@localhost</A>/openser&quot;)</FONT><BR>
<FONT COLOR="#000080">&nbsp;&nbsp;&nbsp; modparam(&quot;dialog&quot;, &quot;db_mode&quot;, 1)</FONT><BR>
<FONT COLOR="#000080">&nbsp;&nbsp;&nbsp; modparam(&quot;dialog&quot;, &quot;table_name&quot;, &quot;dialog&quot;)</FONT><BR>
<FONT COLOR="#000080">&nbsp;&nbsp;&nbsp; modparam(&quot;dialog&quot;, &quot;dlg_flag&quot;, 4)</FONT><BR>
<BR>
&nbsp;&nbsp;&nbsp; but dialogs are not add into table called &quot;dialog&quot; when dialogs are active.........<BR>
&nbsp;&nbsp;&nbsp; what is wrong???????<BR>
<BR>
<BR>
Thanks &amp; Regards,<BR>
Amit Vijayvargiya<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
On Sat, 2008-06-07 at 03:33 +0200, David Villasmil wrote:<BR>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000">True!</FONT><BR>
    <BR>
    <FONT COLOR="#000000">Got it, working great now!</FONT><BR>
    <BR>
    <FONT COLOR="#000000">Thanks a lot!</FONT><BR>
    <BR>
    <BR>
    <FONT COLOR="#000000">David</FONT><BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000">On Fri, Jun 6, 2008 at 5:54 PM, Bogdan-Andrei Iancu &lt;<A HREF="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</A>&gt; wrote:</FONT><BR>
    <BLOCKQUOTE>
        <FONT COLOR="#000000">Hi David,</FONT><BR>
        <BR>
        <FONT COLOR="#000000">This is because you do not use loose_route() at all, even if you do record_route(). See the dialog module documentation.</FONT><BR>
        <BR>
        <FONT COLOR="#000000">Regards,</FONT><BR>
        <FONT COLOR="#000000">Bogdan</FONT><BR>
        <BR>
        <FONT COLOR="#000000">David Villasmil wrote:</FONT>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        <BLOCKQUOTE>
            <BR>
        </BLOCKQUOTE>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        <BLOCKQUOTE>
            <FONT COLOR="#000000">Hello List,</FONT><BR>
            <BR>
            <FONT COLOR="#000000">&nbsp; &nbsp; I have a simple load balancer with dispatcher. I'm using the DIALOG module, it is supposed to store in db all info about ongoing dialogs. But my setup must be wrong, because a lot of dialogs are not removed when the call is hung up.</FONT><BR>
            <BR>
            <FONT COLOR="#000000">Here's my cfg:</FONT><BR>
            <BR>
            <BR>
            <FONT COLOR="#000000">#</FONT><BR>
            <FONT COLOR="#000000"># $Id: openser.cfg 1827 2007-03-12 15:22:53Z bogdan_iancu $</FONT><BR>
            <FONT COLOR="#000000">#</FONT><BR>
            <FONT COLOR="#000000"># simple quick-start config script</FONT><BR>
            <FONT COLOR="#000000"># Please refer to the Core CookBook at <A HREF="http://www.openser.org/dokuwiki/doku.php">http://www.openser.org/dokuwiki/doku.php</A></FONT><BR>
            <FONT COLOR="#000000"># for a explanation of possible statements, functions and parameters.</FONT><BR>
            <FONT COLOR="#000000">#</FONT><BR>
            <BR>
            <FONT COLOR="#000000"># ----------- global configuration parameters ------------------------</FONT><BR>
            <FONT COLOR="#000000">debug=3 # debug level (cmd line: -dddddddddd)</FONT><BR>
            <FONT COLOR="#000000">fork=yes</FONT><BR>
            <FONT COLOR="#000000">log_stderror=no &nbsp; # (cmd line: -E)</FONT><BR>
            <FONT COLOR="#000000">children=4</FONT><BR>
            <FONT COLOR="#000000">check_via=no</FONT><BR>
            <FONT COLOR="#000000">dns=no</FONT><BR>
            <FONT COLOR="#000000">rev_dns=no</FONT><BR>
            <FONT COLOR="#000000">listen=a.b.c.d</FONT><BR>
            <FONT COLOR="#000000">disable_dns_blacklist=true</FONT><BR>
            <FONT COLOR="#000000">port=5060</FONT><BR>
            <BR>
            <FONT COLOR="#000000">#set module path</FONT><BR>
            <FONT COLOR="#000000">mpath=&quot;/lib/openser/modules/&quot;</FONT><BR>
            <BR>
            <FONT COLOR="#000000"># ------------------ module loading ----------------------------------</FONT><BR>
            <FONT COLOR="#000000">loadmodule &quot;mysql.so&quot;</FONT><BR>
            <FONT COLOR="#000000">loadmodule &quot;maxfwd.so&quot;</FONT><BR>
            <FONT COLOR="#000000">loadmodule &quot;sl.so&quot;</FONT><BR>
            <FONT COLOR="#000000">loadmodule &quot;dispatcher.so&quot;</FONT><BR>
            <FONT COLOR="#000000">loadmodule &quot;tm.so&quot;</FONT><BR>
            <FONT COLOR="#000000">loadmodule &quot;mi_fifo.so&quot;</FONT><BR>
            <FONT COLOR="#000000">loadmodule &quot;textops.so&quot;</FONT><BR>
            <FONT COLOR="#000000">loadmodule &quot;xlog.so&quot;</FONT><BR>
            <FONT COLOR="#000000">loadmodule &quot;rr.so&quot;</FONT><BR>
            <FONT COLOR="#000000">loadmodule &quot;dialog.so&quot;</FONT><BR>
            <FONT COLOR="#000000">loadmodule &quot;avpops.so&quot;</FONT><BR>
            <BR>
            <FONT COLOR="#000000">modparam(&quot;mi_fifo&quot;,&quot;fifo_name&quot;, &quot;/tmp/openser_fifo&quot;)</FONT><BR>
            <FONT COLOR="#000000">modparam(&quot;tm&quot;, &quot;fr_timer&quot;, 5)</FONT><BR>
            <BR>
            <FONT COLOR="#000000">modparam(&quot;dispatcher&quot;, &quot;list_file&quot;, &quot;/etc/openser/dispatcher.list&quot;)</FONT><BR>
            <FONT COLOR="#000000">modparam(&quot;dispatcher&quot;, &quot;flags&quot;, 2)</FONT><BR>
            <FONT COLOR="#000000">modparam(&quot;dispatcher&quot;, &quot;force_dst&quot;, 1)</FONT><BR>
            <FONT COLOR="#000000">modparam(&quot;dispatcher&quot;, &quot;dst_avp&quot;, &quot;$avp(i:271)&quot;)</FONT><BR>
            <FONT COLOR="#000000">modparam(&quot;dispatcher&quot;, &quot;grp_avp&quot;, &quot;$avp(i:272)&quot;)</FONT><BR>
            <FONT COLOR="#000000">modparam(&quot;dispatcher&quot;, &quot;cnt_avp&quot;, &quot;$avp(i:273)&quot;)</FONT><BR>
            <BR>
            <FONT COLOR="#000000">modparam(&quot;dialog&quot;, &quot;dlg_flag&quot;, 4)</FONT><BR>
            <FONT COLOR="#000000">modparam(&quot;dialog&quot;, &quot;db_mode&quot;, 1)</FONT><BR>
            <FONT COLOR="#000000">modparam(&quot;dialog&quot;, &quot;table_name&quot;, &quot;dialog&quot;)</FONT><BR>
            <FONT COLOR="#000000">modparam(&quot;dialog&quot;, &quot;db_url&quot;, &quot;mysql://user:pass@localhost/openser&quot;)</FONT><BR>
            <BR>
            <FONT COLOR="#000000">modparam(&quot;avpops&quot;,&quot;avp_url&quot;,&quot;mysql://user:pass@localhost/openser&quot;)</FONT><BR>
            <FONT COLOR="#000000">modparam(&quot;avpops&quot;, &quot;avp_table&quot;, &quot;dialog&quot;)</FONT><BR>
            <BR>
            <FONT COLOR="#000000">route{</FONT><BR>
            <FONT COLOR="#000000">&nbsp; &nbsp;# initial sanity checks -- messages with</FONT><BR>
            <FONT COLOR="#000000">&nbsp; &nbsp;# max_forwards==0, or excessively long requests</FONT><BR>
            <FONT COLOR="#000000">&nbsp; &nbsp;if (!mf_process_maxfwd_header(&quot;10&quot;)) {</FONT><BR>
            <FONT COLOR="#000000">&nbsp; &nbsp; &nbsp; &nbsp;sl_send_reply(&quot;483&quot;,&quot;Too Many Hops&quot;);</FONT><BR>
            <FONT COLOR="#000000">&nbsp; &nbsp; &nbsp; &nbsp;exit;</FONT><BR>
            <FONT COLOR="#000000">&nbsp; &nbsp;};</FONT><BR>
            <BR>
            <FONT COLOR="#000000">&nbsp; &nbsp;if (msg:len &gt;= &nbsp;2048 ) {</FONT><BR>
            <FONT COLOR="#000000">&nbsp; &nbsp; &nbsp; &nbsp;sl_send_reply(&quot;513&quot;, &quot;Message too big&quot;);</FONT><BR>
            <FONT COLOR="#000000">&nbsp; &nbsp; &nbsp; &nbsp;exit;</FONT><BR>
            <FONT COLOR="#000000">&nbsp; &nbsp;};</FONT><BR>
            <BR>
            <FONT COLOR="#000000">&nbsp; &nbsp; if (!method==&quot;REGISTER&quot;)</FONT><BR>
            <FONT COLOR="#000000">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;record_route();</FONT><BR>
            <BR>
            <FONT COLOR="#000000">&nbsp; &nbsp; if (method==&quot;INVITE&quot;) { setflag(4); }</FONT><BR>
            <BR>
            <FONT COLOR="#000000">&nbsp; &nbsp;if ( method==&quot;INVITE&quot; || method==&quot;ACK&quot; || method==&quot;BYE&quot; || method==&quot;OPTIONS&quot; || method==&quot;CANCEL&quot; ) {</FONT><BR>
            <FONT COLOR="#000000">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ds_select_dst(&quot;1&quot;,&quot;2&quot;);</FONT><BR>
            <FONT COLOR="#000000">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;t_on_failure(&quot;1&quot;);</FONT><BR>
            <FONT COLOR="#000000">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;t_relay();</FONT><BR>
            <FONT COLOR="#000000">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;exit;</FONT><BR>
            <FONT COLOR="#000000">&nbsp; &nbsp; };</FONT><BR>
            <BR>
            <FONT COLOR="#000000">}</FONT><BR>
            <BR>
            <FONT COLOR="#000000">failure_route[1] {</FONT><BR>
            <BR>
            <FONT COLOR="#000000">&nbsp; &nbsp; &nbsp; &nbsp; if (t_check_status(&quot;408&quot;)) {</FONT><BR>
            <FONT COLOR="#000000">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xlog(&quot;L_INFO&quot;,&quot;Marking GW as failed...\n&quot;);</FONT><BR>
            <FONT COLOR="#000000">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ds_mark_dst(&quot;p&quot;);</FONT><BR>
            <FONT COLOR="#000000">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ds_next_dst();</FONT><BR>
            <FONT COLOR="#000000">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; t_on_failure(&quot;1&quot;);</FONT><BR>
            <FONT COLOR="#000000">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; t_relay();</FONT><BR>
            <FONT COLOR="#000000">&nbsp; &nbsp; &nbsp; &nbsp; } else{</FONT><BR>
            <FONT COLOR="#000000">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; t_reply(&quot;501&quot;,&quot;Not Implemented&quot;);</FONT><BR>
            <FONT COLOR="#000000">&nbsp; &nbsp; &nbsp; &nbsp; }</FONT><BR>
            <FONT COLOR="#000000">}</FONT><BR>
            <BR>
            <BR>
            <FONT COLOR="#000000">As far as I know, using the record_route assures that all messages are passed through the proxy so that dialogs must be removed... but they'r not</FONT><BR>
            <BR>
            <BR>
            <BR>
            <FONT COLOR="#000000">Any ideas?</FONT><BR>
            <BR>
            <BR>
            <FONT COLOR="#000000">Thanks a lot.</FONT><BR>
            <BR>
            <BR>
            <BR>
            <FONT COLOR="#000000">David Villasmil</FONT><BR>
            <BR>
        </BLOCKQUOTE>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        <BLOCKQUOTE>
            <FONT COLOR="#000000">------------------------------------------------------------------------</FONT><BR>
            <BR>
            <FONT COLOR="#000000">_______________________________________________</FONT><BR>
            <FONT COLOR="#000000">Users mailing list</FONT><BR>
            <FONT COLOR="#000000"><A HREF="mailto:Users@lists.openser.org">Users@lists.openser.org</A></FONT><BR>
            <FONT COLOR="#000000"><A HREF="http://lists.openser.org/cgi-bin/mailman/listinfo/users">http://lists.openser.org/cgi-bin/mailman/listinfo/users</A></FONT><BR>
            <FONT COLOR="#000000">&nbsp;</FONT><BR>
        </BLOCKQUOTE>
        <BR>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
<PRE>
<FONT COLOR="#000000">_______________________________________________</FONT>
<FONT COLOR="#000000">Users mailing list</FONT>
<FONT COLOR="#000000"><A HREF="mailto:Users@lists.openser.org">Users@lists.openser.org</A></FONT>
<FONT COLOR="#000000"><A HREF="http://lists.openser.org/cgi-bin/mailman/listinfo/users">http://lists.openser.org/cgi-bin/mailman/listinfo/users</A></FONT>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>