<DIV>
<DIV>Thanks a lot, gentelmens!</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;I have jumped to the same conclusion. The only thing I am worried - t_replicate() creates aditional SIP traffic between sers.&nbsp; And I also get some strange error with each REGISTER:</DIV>
<DIV><BR><STRONG><EM>1(712) ERROR: t_newtran: transaction already in process 0x28336768</EM></STRONG></DIV>
<DIV><STRONG><EM></EM></STRONG>&nbsp;</DIV>
<DIV>Don't have any idea what I am doing wrong....</DIV>
<DIV>&nbsp;</DIV>
<DIV>Below&nbsp;is my ser.cfg snippet.</DIV>
<DIV>As far as you see I am using mediaproxy package to solve NAT issues. I always force relay, cause I had nathelper problems with UAC1-&gt;ser-&gt;NAT-&gt;UAC2 configuration.</DIV>
<DIV>I am going to test new mediaproxy release.</DIV>
<DIV>BRs,</DIV>
<DIV>Tina</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><STRONG><EM>============================</EM></STRONG></DIV>
<DIV><STRONG><EM></EM></STRONG>&nbsp;</DIV>
<DIV><STRONG><EM>. . .</EM></STRONG></DIV>
<DIV># -------------------------&nbsp; request routing logic -------------------</DIV>
<DIV># main routing logic</DIV>
<DIV>route{</DIV>
<DIV>#-------------------------------------------------------<BR>&nbsp;if (!method=="REGISTER") record_route();&nbsp;&nbsp;&nbsp;&nbsp;<BR>#-------------------------------------------------------????????????????????<BR>&nbsp;# loose-route processing<BR>&nbsp;if (loose_route()) {<BR>&nbsp;&nbsp;route(8); #--go to mediaproxy&nbsp;processing<BR>&nbsp;&nbsp;break;<BR>&nbsp;};</DIV>
<DIV>...</DIV>
<DIV>&nbsp;if (method=="REGISTER") {</DIV>
<DIV>#------Replicate to the peers<BR>&nbsp;<BR>#---Ser 1<BR>&nbsp;&nbsp;&nbsp;if (!src_ip==192.168.25.103)<BR>&nbsp;&nbsp;&nbsp;&nbsp;t_replicate("192.168.25.103","5060");<BR>#---Ser 2<BR>&nbsp;&nbsp;&nbsp;if (!src_ip==192.168.25.115)<BR>&nbsp;&nbsp;&nbsp;&nbsp;t_replicate("192.168.25.115","5060");</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;save ("location");<BR>&nbsp;break;<BR>&nbsp;};</DIV>
<DIV>#-----------------------------------------------INVITE&nbsp;<BR>&nbsp;if (method=="INVITE") {</DIV>
<DIV>&nbsp; log (1, "INVITE: Radius Accounting\n");<BR>&nbsp;t_on_failure("4"); #---voice mail<BR>&nbsp;&nbsp;&nbsp;&nbsp; use_media_proxy();<BR>&nbsp;t_on_reply("5"); #--mediaproxy<BR>&nbsp;};<BR>#--------------------------------------------------BYE<BR>&nbsp;if (method=="BYE" || method=="CANCEL") {<BR>&nbsp; log (1, "BYE or CANCEL: Radius Accounting\n");<BR>};<BR>#---------------------------------------------------&nbsp;&nbsp;<BR>&nbsp;&nbsp;if (!lookup("location") &amp;&amp; !lookup("aliases")) {&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;sl_send_reply("404", "Not Found");<BR>&nbsp;&nbsp;&nbsp;break;<BR>&nbsp;&nbsp;};</DIV>
<DIV>&nbsp;if (!t_relay()) {<BR>&nbsp;&nbsp;sl_reply_error();<BR>&nbsp;};<BR>}</DIV>
<DIV>&nbsp;</DIV>
<DIV>#-------------------------------------------------------<BR>failure_route[4]{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (t_check_status("408|486")){<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;append_hf("P-hint: Rewrited to VM");<BR>&nbsp;&nbsp;rewritehostport("192.168.25.116:5060");<BR>&nbsp;&nbsp;append_branch();<BR>&nbsp;&nbsp;t_relay();<BR>&nbsp;&nbsp;break;<BR>&nbsp;};<BR>}</DIV>
<DIV>#---------------------------------------------------------</DIV>
<DIV>onreply_route[5]{<BR>&nbsp;&nbsp;&nbsp; if (status =~ "(183)|2[0-9][0-9]" &amp;&amp; !search("^Content-Length:\ 0")) {<BR>&nbsp;&nbsp;&nbsp; &nbsp;if ( (!(src_ip=="SERVER1"))<BR>&nbsp;&nbsp;&nbsp; &nbsp;&amp;&amp; (!(src_ip=="SERVER2")) <BR>&nbsp;&nbsp;&nbsp; &nbsp;&amp;&amp; (!(src_ip=="SERVER3")) ){<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;if ( search("c=IN IP4 192.168.*")||search("c=IN IP4 10.*")||search("c=IN IP4 172.16.*") ) {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fix_contact();<BR>&nbsp;};<BR>};<BR>&nbsp;use_media_proxy();<BR>}<BR>}</DIV>
<DIV>&nbsp;</DIV>
<DIV>===================================================</DIV>
<DIV><BR><B><I>Matt Schulte &lt;mschulte@netlogic.net&gt;</I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">I'm starting to lean this direction, using t_replicate and all. I could<BR>never get usrloc (db mode) to function properly.. t_replicate is a dirty<BR>but very effective workaround.<BR><BR>-----Original Message-----<BR>From: Greger V. Teigre [mailto:greger@teigre.com] <BR>Sent: Saturday, April 02, 2005 1:33 AM<BR>To: kramarv@yahoo.com<BR>Cc: serusers@lists.iptel.org<BR>Subject: Re: [Serusers] still no help - usrloc synchronization<BR><BR><BR>Have a look at this thread:<BR>http://lists.iptel.org/pipermail/serusers/2005-January/014669.html<BR>g-)<BR><BR>Java Rockx wrote:<BR>&gt; Tina,<BR>&gt; <BR>&gt; I thought I saw you post the other day that you did not want to use <BR>&gt; t_replicate(), however, this is probably your best bet to getting this<BR><BR>&gt; to work, IMHO.<BR>&gt; <BR>&gt; Regards,<BR>&gt; Paul<BR>&gt; <BR>&gt; On Apr 1, 2005 4:08 PM, Tina <KRAMARV@YAHOO.COM>wrote:<BR>&gt;&gt;
 <BR>&gt;&gt; Hi, please help me, I'm stuck with it!!!!!<BR>&gt;&gt; I am trying to set up several sers with a shared MySQL database for <BR>&gt;&gt; location service.<BR>&gt;&gt; <BR>&gt;&gt; I set in each ser.cfg:<BR>&gt;&gt; <BR>&gt;&gt; modparam("usrloc", "db_mode", 2)<BR>&gt;&gt; modparam("usrloc",<BR>&gt;&gt; "db_url","sql://ser:heslo@192.168.25.163/ser")<BR>&gt;&gt; <BR>&gt;&gt; and the servers are not synchronized.<BR>&gt;&gt; The I set<BR>&gt;&gt; modparam("usrloc", "db_mode", 2)<BR>&gt;&gt; <BR>&gt;&gt; <BR>&gt;&gt; made UAC (Xlite) register to one of the servers.<BR>&gt;&gt; I see it via usrloc, but there is no record in "location" mySQL <BR>&gt;&gt; table....So others do not see the client and I'm unable to make <BR>&gt;&gt; calls....<BR>&gt;&gt; <BR>&gt;&gt; <BR>&gt;&gt; Please help how to work with usrloc and mySQL...<BR>&gt;&gt; <BR>&gt;&gt; Tina,<BR>&gt;&gt; software engineer<BR>&gt;&gt; <BR>&gt;&gt; ________________________________<BR>&gt;&gt; Do you
 Yahoo!?<BR>&gt;&gt; Better first dates. More second dates. Yahoo! Personals<BR>&gt;&gt; <BR>&gt;&gt; <BR>&gt;&gt; _______________________________________________<BR>&gt;&gt; Serusers mailing list<BR>&gt;&gt; serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers<BR>&gt;&gt; <BR>&gt;&gt; <BR>&gt;&gt; <BR>&gt; <BR>&gt; _______________________________________________<BR>&gt; Serusers mailing list<BR>&gt; serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers<BR><BR>_______________________________________________<BR>Serusers mailing list<BR>serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers<BR></BLOCKQUOTE></DIV><p>
                <hr size=1>Do you Yahoo!?<br> 
Yahoo! Mail - Find what you need with new enhanced search. <a href="http://us.rd.yahoo.com/evt=29917/*http://info.mail.yahoo.com/mail_250">Learn more.</a>