<DIV>
<DIV>Thanks a lot, gentelmens!</DIV>
<DIV> </DIV>
<DIV> I have jumped to the same conclusion. The only thing I am worried - t_replicate() creates aditional SIP traffic between sers. 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> </DIV>
<DIV>Don't have any idea what I am doing wrong....</DIV>
<DIV> </DIV>
<DIV>Below 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->ser->NAT->UAC2 configuration.</DIV>
<DIV>I am going to test new mediaproxy release.</DIV>
<DIV>BRs,</DIV>
<DIV>Tina</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><STRONG><EM>============================</EM></STRONG></DIV>
<DIV><STRONG><EM></EM></STRONG> </DIV>
<DIV><STRONG><EM>. . .</EM></STRONG></DIV>
<DIV># ------------------------- request routing logic -------------------</DIV>
<DIV># main routing logic</DIV>
<DIV>route{</DIV>
<DIV>#-------------------------------------------------------<BR> if (!method=="REGISTER") record_route(); <BR>#-------------------------------------------------------????????????????????<BR> # loose-route processing<BR> if (loose_route()) {<BR> route(8); #--go to mediaproxy processing<BR> break;<BR> };</DIV>
<DIV>...</DIV>
<DIV> if (method=="REGISTER") {</DIV>
<DIV>#------Replicate to the peers<BR> <BR>#---Ser 1<BR> if (!src_ip==192.168.25.103)<BR> t_replicate("192.168.25.103","5060");<BR>#---Ser 2<BR> if (!src_ip==192.168.25.115)<BR> t_replicate("192.168.25.115","5060");</DIV>
<DIV> </DIV>
<DIV> save ("location");<BR> break;<BR> };</DIV>
<DIV>#-----------------------------------------------INVITE <BR> if (method=="INVITE") {</DIV>
<DIV> log (1, "INVITE: Radius Accounting\n");<BR> t_on_failure("4"); #---voice mail<BR> use_media_proxy();<BR> t_on_reply("5"); #--mediaproxy<BR> };<BR>#--------------------------------------------------BYE<BR> if (method=="BYE" || method=="CANCEL") {<BR> log (1, "BYE or CANCEL: Radius Accounting\n");<BR>};<BR>#--------------------------------------------------- <BR> if (!lookup("location") && !lookup("aliases")) { <BR> sl_send_reply("404", "Not Found");<BR> break;<BR> };</DIV>
<DIV> if (!t_relay()) {<BR> sl_reply_error();<BR> };<BR>}</DIV>
<DIV> </DIV>
<DIV>#-------------------------------------------------------<BR>failure_route[4]{<BR> if (t_check_status("408|486")){<BR> append_hf("P-hint: Rewrited to VM");<BR> rewritehostport("192.168.25.116:5060");<BR> append_branch();<BR> t_relay();<BR> break;<BR> };<BR>}</DIV>
<DIV>#---------------------------------------------------------</DIV>
<DIV>onreply_route[5]{<BR> if (status =~ "(183)|2[0-9][0-9]" && !search("^Content-Length:\ 0")) {<BR> if ( (!(src_ip=="SERVER1"))<BR> && (!(src_ip=="SERVER2")) <BR> && (!(src_ip=="SERVER3")) ){<BR> if ( search("c=IN IP4 192.168.*")||search("c=IN IP4 10.*")||search("c=IN IP4 172.16.*") ) {<BR> fix_contact();<BR> };<BR>};<BR> use_media_proxy();<BR>}<BR>}</DIV>
<DIV> </DIV>
<DIV>===================================================</DIV>
<DIV><BR><B><I>Matt Schulte <mschulte@netlogic.net></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>> Tina,<BR>> <BR>> I thought I saw you post the other day that you did not want to use <BR>> t_replicate(), however, this is probably your best bet to getting this<BR><BR>> to work, IMHO.<BR>> <BR>> Regards,<BR>> Paul<BR>> <BR>> On Apr 1, 2005 4:08 PM, Tina <KRAMARV@YAHOO.COM>wrote:<BR>>>
<BR>>> Hi, please help me, I'm stuck with it!!!!!<BR>>> I am trying to set up several sers with a shared MySQL database for <BR>>> location service.<BR>>> <BR>>> I set in each ser.cfg:<BR>>> <BR>>> modparam("usrloc", "db_mode", 2)<BR>>> modparam("usrloc",<BR>>> "db_url","sql://ser:heslo@192.168.25.163/ser")<BR>>> <BR>>> and the servers are not synchronized.<BR>>> The I set<BR>>> modparam("usrloc", "db_mode", 2)<BR>>> <BR>>> <BR>>> made UAC (Xlite) register to one of the servers.<BR>>> I see it via usrloc, but there is no record in "location" mySQL <BR>>> table....So others do not see the client and I'm unable to make <BR>>> calls....<BR>>> <BR>>> <BR>>> Please help how to work with usrloc and mySQL...<BR>>> <BR>>> Tina,<BR>>> software engineer<BR>>> <BR>>> ________________________________<BR>>> Do you
Yahoo!?<BR>>> Better first dates. More second dates. Yahoo! Personals<BR>>> <BR>>> <BR>>> _______________________________________________<BR>>> Serusers mailing list<BR>>> serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers<BR>>> <BR>>> <BR>>> <BR>> <BR>> _______________________________________________<BR>> Serusers mailing list<BR>> 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>