<!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>
we are using openser 1.3.0<BR>
we add new module dialog in openser.cfg file. which provides dialog awareness to OpenSER proxy.<BR>
also set the modparam...........<BR>
<BR>
<FONT COLOR="#000080">modparam("dialog", "db_url", "mysql://openser:<A HREF="mailto:routing@localhost">routing@localhost</A>/openser")</FONT><BR>
<FONT COLOR="#000080"> modparam("dialog", "db_mode", 1)</FONT><BR>
<FONT COLOR="#000080"> modparam("dialog", "table_name", "dialog")</FONT><BR>
<FONT COLOR="#000080"> modparam("dialog", "dlg_flag", 4)</FONT><BR>
<BR>
but dialogs are not add into table called "dialog" when dialogs are active.........<BR>
what is wrong???????<BR>
<BR>
<BR>
Thanks & 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 <<A HREF="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</A>> 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"> 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 # (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="/lib/openser/modules/"</FONT><BR>
<BR>
<FONT COLOR="#000000"># ------------------ module loading ----------------------------------</FONT><BR>
<FONT COLOR="#000000">loadmodule "mysql.so"</FONT><BR>
<FONT COLOR="#000000">loadmodule "maxfwd.so"</FONT><BR>
<FONT COLOR="#000000">loadmodule "sl.so"</FONT><BR>
<FONT COLOR="#000000">loadmodule "dispatcher.so"</FONT><BR>
<FONT COLOR="#000000">loadmodule "tm.so"</FONT><BR>
<FONT COLOR="#000000">loadmodule "mi_fifo.so"</FONT><BR>
<FONT COLOR="#000000">loadmodule "textops.so"</FONT><BR>
<FONT COLOR="#000000">loadmodule "xlog.so"</FONT><BR>
<FONT COLOR="#000000">loadmodule "rr.so"</FONT><BR>
<FONT COLOR="#000000">loadmodule "dialog.so"</FONT><BR>
<FONT COLOR="#000000">loadmodule "avpops.so"</FONT><BR>
<BR>
<FONT COLOR="#000000">modparam("mi_fifo","fifo_name", "/tmp/openser_fifo")</FONT><BR>
<FONT COLOR="#000000">modparam("tm", "fr_timer", 5)</FONT><BR>
<BR>
<FONT COLOR="#000000">modparam("dispatcher", "list_file", "/etc/openser/dispatcher.list")</FONT><BR>
<FONT COLOR="#000000">modparam("dispatcher", "flags", 2)</FONT><BR>
<FONT COLOR="#000000">modparam("dispatcher", "force_dst", 1)</FONT><BR>
<FONT COLOR="#000000">modparam("dispatcher", "dst_avp", "$avp(i:271)")</FONT><BR>
<FONT COLOR="#000000">modparam("dispatcher", "grp_avp", "$avp(i:272)")</FONT><BR>
<FONT COLOR="#000000">modparam("dispatcher", "cnt_avp", "$avp(i:273)")</FONT><BR>
<BR>
<FONT COLOR="#000000">modparam("dialog", "dlg_flag", 4)</FONT><BR>
<FONT COLOR="#000000">modparam("dialog", "db_mode", 1)</FONT><BR>
<FONT COLOR="#000000">modparam("dialog", "table_name", "dialog")</FONT><BR>
<FONT COLOR="#000000">modparam("dialog", "db_url", "mysql://user:pass@localhost/openser")</FONT><BR>
<BR>
<FONT COLOR="#000000">modparam("avpops","avp_url","mysql://user:pass@localhost/openser")</FONT><BR>
<FONT COLOR="#000000">modparam("avpops", "avp_table", "dialog")</FONT><BR>
<BR>
<FONT COLOR="#000000">route{</FONT><BR>
<FONT COLOR="#000000"> # initial sanity checks -- messages with</FONT><BR>
<FONT COLOR="#000000"> # max_forwards==0, or excessively long requests</FONT><BR>
<FONT COLOR="#000000"> if (!mf_process_maxfwd_header("10")) {</FONT><BR>
<FONT COLOR="#000000"> sl_send_reply("483","Too Many Hops");</FONT><BR>
<FONT COLOR="#000000"> exit;</FONT><BR>
<FONT COLOR="#000000"> };</FONT><BR>
<BR>
<FONT COLOR="#000000"> if (msg:len >= 2048 ) {</FONT><BR>
<FONT COLOR="#000000"> sl_send_reply("513", "Message too big");</FONT><BR>
<FONT COLOR="#000000"> exit;</FONT><BR>
<FONT COLOR="#000000"> };</FONT><BR>
<BR>
<FONT COLOR="#000000"> if (!method=="REGISTER")</FONT><BR>
<FONT COLOR="#000000"> record_route();</FONT><BR>
<BR>
<FONT COLOR="#000000"> if (method=="INVITE") { setflag(4); }</FONT><BR>
<BR>
<FONT COLOR="#000000"> if ( method=="INVITE" || method=="ACK" || method=="BYE" || method=="OPTIONS" || method=="CANCEL" ) {</FONT><BR>
<FONT COLOR="#000000"> ds_select_dst("1","2");</FONT><BR>
<FONT COLOR="#000000"> t_on_failure("1");</FONT><BR>
<FONT COLOR="#000000"> t_relay();</FONT><BR>
<FONT COLOR="#000000"> exit;</FONT><BR>
<FONT COLOR="#000000"> };</FONT><BR>
<BR>
<FONT COLOR="#000000">}</FONT><BR>
<BR>
<FONT COLOR="#000000">failure_route[1] {</FONT><BR>
<BR>
<FONT COLOR="#000000"> if (t_check_status("408")) {</FONT><BR>
<FONT COLOR="#000000"> xlog("L_INFO","Marking GW as failed...\n");</FONT><BR>
<FONT COLOR="#000000"> ds_mark_dst("p");</FONT><BR>
<FONT COLOR="#000000"> ds_next_dst();</FONT><BR>
<FONT COLOR="#000000"> t_on_failure("1");</FONT><BR>
<FONT COLOR="#000000"> t_relay();</FONT><BR>
<FONT COLOR="#000000"> } else{</FONT><BR>
<FONT COLOR="#000000"> t_reply("501","Not Implemented");</FONT><BR>
<FONT COLOR="#000000"> }</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"> </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>