<DIV>Unfortunately this does not work. It sends the message to the ser2 2 times and won't send to ser4....(see below)</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;if (isflagset(...)) {<BR>&nbsp;&nbsp;&nbsp;rewritehostport("192.168.25.139:5060");<BR>&nbsp;&nbsp;&nbsp;append_branch();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;t_replicate("192.168.25.115","5060");<BR>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;log(1, "replicated to 139 n 115===\n");&nbsp;<BR>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;};</DIV>
<DIV>===========192.168.25.113:5060 -&gt; 192.168.25.103:5060<BR>&nbsp; REGISTER sip:192.168.25.103 SIP/2.0..Via: SIP/2.0/UDP 192.168.25.113:5060;rport;b<BR>&nbsp; ranch=z9hG4bK0D463F2A700A45A6BB50ADC7E5DFAE71..From: matuka &lt;sip:tuka@192.168.25.<BR>&nbsp; 103&gt;;tag=1369320418..To: matuka &lt;sip:tuka@192.168.25.103&gt;..Contact: "matuka" &lt;sip<BR>&nbsp; :tuka@192.168.25.113:5060&gt;..Call-ID: <A href="mailto:5E3468B20AF142938FC6D5069BC203D6@192.168.25">5E3468B20AF142938FC6D5069BC203D6@192.168.25</A>.<BR>&nbsp; 103..CSeq: 50582 REGISTER..Expires: 60..Max-Forwards: 70..User-Agent: X-Lite rele<BR>&nbsp; ase 1103m..Content-Length: 0....&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>#<BR>T 192.168.25.103:23 -&gt; 192.168.25.113:2469
 [AP]<BR>&nbsp;&nbsp; 4(2829) REGISTER++++fixing contact and port....Fix contact: Insert buf - sip:tuk<BR>&nbsp; <A href="mailto:a@192.168.25.113:5060">a@192.168.25.113:5060</A>..&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>#<BR>U 192.168.25.103:5060 -&gt; 192.168.25.113:5060<BR>&nbsp; SIP/2.0 200 OK..Via: SIP/2.0/UDP 192.168.25.113:5060;rport=5060;branch=z9hG4bK0D4<BR>&nbsp; 63F2A700A45A6BB50ADC7E5DFAE71..From: matuka &lt;sip:tuka@192.168.25.103&gt;;tag=1369320<BR>&nbsp; 418..To: matuka &lt;sip:tuka@192.168.25.103&gt;;tag=5607c0bdebf2a92111742e4bf83280c3.c1<BR>&nbsp; 3f..Call-ID: <A
 href="mailto:5E3468B20AF142938FC6D5069BC203D6@192.168.25.103..CSeq">5E3468B20AF142938FC6D5069BC203D6@192.168.25.103..CSeq</A>: 50582 REGISTE<BR>&nbsp; R..Contact: &lt;sip:tuka@192.168.25.113:5060&gt;;q=0.00;expires=60..Content-Length: 0..<BR>&nbsp; Warning: 392 192.168.25.103:5060 "Noisy feedback tells:&nbsp; pid=2829 req_src_ip=192.<BR>&nbsp; 168.25.113 req_src_port=5060 in_uri=sip:192.168.25.103 out_uri=sip:192.168.25.103<BR>&nbsp;&nbsp; via_cnt==1"....&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>#<BR>U 192.168.25.103:5060 -&gt; 192.168.25.115:5060<BR>&nbsp; REGISTER sip:192.168.25.139:5060 SIP/2.0..Via: SIP/2.0/UDP
 192.168.25.103;branch=<BR>&nbsp; z9hG4bK2a77.fafffe65.0..Via: SIP/2.0/UDP 192.168.25.113:5060;rport=5060;branch=z9<BR>&nbsp; hG4bK0D463F2A700A45A6BB50ADC7E5DFAE71..From: matuka &lt;sip:tuka@192.168.25.103&gt;;tag<BR>&nbsp; =1369320418..To: matuka &lt;sip:tuka@192.168.25.103&gt;..Contact: "matuka" &lt;sip:tuka@19<BR>&nbsp; 2.168.25.113:5060&gt;..Call-ID: <A href="mailto:5E3468B20AF142938FC6D5069BC203D6@192.168.25.103..CSe">5E3468B20AF142938FC6D5069BC203D6@192.168.25.103..CSe</A><BR>&nbsp; q: 50582 REGISTER..Expires: 60..Max-Forwards: 69..User-Agent: X-Lite release 1103<BR>&nbsp; m..Content-Length: 0....&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>#<BR>U 192.168.25.103:5060 -&gt;
 192.168.25.115:5060<BR>&nbsp; REGISTER sip:192.168.25.139:5060 SIP/2.0..Via: SIP/2.0/UDP 192.168.25.103;branch=<BR>&nbsp; z9hG4bK2a77.fafffe65.1..Via: SIP/2.0/UDP 192.168.25.113:5060;rport=5060;branch=z9<BR>&nbsp; hG4bK0D463F2A700A45A6BB50ADC7E5DFAE71..From: matuka &lt;sip:tuka@192.168.25.103&gt;;tag<BR>&nbsp; =1369320418..To: matuka &lt;sip:tuka@192.168.25.103&gt;..Contact: "matuka" &lt;sip:tuka@19<BR>&nbsp; 2.168.25.113:5060&gt;..Call-ID: <A href="mailto:5E3468B20AF142938FC6D5069BC203D6@192.168.25.103..CSe">5E3468B20AF142938FC6D5069BC203D6@192.168.25.103..CSe</A><BR>&nbsp; q: 50582 REGISTER..Expires: 60..Max-Forwards: 69..User-Agent: X-Lite release 1103<BR>&nbsp; m..Content-Length: 0....&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </DIV>
<DIV>&nbsp;</DIV>
<DIV><BR><B><I>Evan Borgström &lt;evan.borgstrom@ca.mci.com&gt;</I></B> wrote: </DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"><BR>It's just the way that t_register works, if you call t_relay_to more <BR>than once the same error will occur... It's quite messy, you probably <BR>have to use append_branch like;<BR><BR>save("location");<BR><BR>rewritehostport("ser2.domain.com:5060");<BR>append_branch();<BR>rewritehostport("ser3.domain.com:5060");<BR>append_branch();<BR>t_replicate("ser4.domain.com:5060");<BR><BR>I haven't tested this but the logic should work since the t_replicate <BR>function just calls t_relay_to. Also, you'll probably want to use <BR>save_noreply() on the hosts processing the replicated register messages <BR>otherwise the host replicating the register will spew errors. Like I <BR>said, messy.<BR><BR><BR>You could probably do it more elegantly using avpops similar to the <BR>trusted ip example in the docs.<BR><BR>-Evan<BR><BR>Tina wrote:<BR>&gt; Yep, it didn't help<BR>&gt; <BR>&gt;
 */REGISTER++++fixing contact and port/*<BR>&gt; */Fix contact: Insert buf - sip:tuka@192.168.25.113:5060<BR>&gt; 6(1305) ERROR: t_newtran: transaction already in process 0x28361068<BR>&gt; /*<BR>&gt; */"Greger V. Teigre" <GREGER@TEIGRE.COM>/* wrote:<BR>&gt; <BR>&gt; The error means that t_newtran has been run while an<BR>&gt; existing transaction is still in the workings. Have you tried<BR>&gt; moving your save() to *before* the t_replicate()?<BR>&gt; g-)<BR>&gt; <BR>&gt; ---- Original Message ----<BR>&gt; From: Tina<BR>&gt; To: Matt Schulte<BR>&gt; Cc: serusers@lists.iptel.org ; greger@teigre.com<BR>&gt; Sent: Tuesday, April 05, 2005 05:00 PM<BR>&gt; Subject: RE: [Serusers] still no help - usrloc synchronization<BR>&gt; <BR>&gt; &gt; Thanks a lot, gentelmens!<BR>&gt; &gt;<BR>&gt; &gt; I have jumped to the same conclusion. The only thing I am worried -<BR>&gt; &gt; t_replicate() creates aditional SIP traffic between sers. And I also<BR>&gt; &gt; get some strange error with each REGISTER:
 <BR>&gt; &gt;<BR>&gt; &gt; 1(712) ERROR: t_newtran: transaction already in process 0x28336768<BR>&gt; &gt;<BR>&gt; &gt; Don't have any idea what I am doing wrong....<BR>&gt; &gt;<BR>&gt; &gt; Below is my ser.cfg snippet.<BR>&gt; &gt; As far as you see I am using mediaproxy package to solve NAT issues.<BR>&gt; &gt; I always force relay, cause I had nathelper problems with<BR>&gt; &gt; UAC1-&gt;ser-&gt;NAT-&gt;UAC2 configuration. <BR>&gt; &gt; I am going to test new mediaproxy release.<BR>&gt; &gt; BRs,<BR>&gt; &gt; Tina<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt; &lt; BR&gt;&gt; ============================<BR>&gt; &gt;<BR>&gt; &gt; . . .<BR>&gt; &gt; # ------------------------- request routing logic<BR>&gt; -------------------<BR>&gt; &gt; # main routing logic<BR>&gt; &gt; route{<BR>&gt; &gt; #-------------------------------------------------------<BR>&gt; &gt; if (!method=="REGISTER") record_route();<BR>&gt; &gt;<BR>&gt;
 #-------------------------------------------------------????????????????????<BR>&gt; &gt; # loose-route processing<BR>&gt; &gt; if (loose_route()) {<BR>&gt; &gt; route(8); #--go to mediaproxy processing<BR>&gt; &gt; break;<BR>&gt; &gt; };<BR>&gt; &gt; ...<BR>&gt; &gt; if (method=="REGISTER") {<BR>&gt; &gt; #------Replicate to the peers<BR>&gt; &gt;<BR>&gt; &gt; #---Ser 1<BR>&gt; &gt; if (!src_ip==192.168.25.103)<BR>&gt; &gt; t_replicate("192.168.25.103","5060");<BR>&gt; &gt; #---Ser 2<BR>&gt; &gt; if (!src_ip==192.168.25.115)<BR>&gt; &gt; t_replicate("192.168.25.115","5060");<BR>&gt; &gt;<BR>&gt; &gt; save ("location");<BR>&gt; &gt; break;<BR>&gt; &gt; };<BR>&gt; &gt; #-----------------------------------------------INVITE<BR>&gt; &gt; if (method=="INVITE") {<BR>&gt; &gt; log (1, "INVITE: Radius Accounting\n");<BR>&gt; &gt; t_on_failure("4"); #---voice mail<BR>&gt; &gt; use_media_proxy();<BR>&gt; &gt; t_on_reply("5"); #--mediaproxy<BR>&gt; &gt; };<BR>&gt; &gt;
 #--------------------------------------------------BYE<BR>&gt; &gt; if (method=="BYE" || method=="CANCEL") {<BR>&gt; &gt; log (1, "BYE or CANCEL: Radius Accounting\n");<BR>&gt; &gt; };<BR>&gt; &gt; #---------------------------------------------------<BR>&gt; &gt; if (!lookup("location") &amp;&amp; !lookup("aliases")) {<BR>&gt; &gt; sl_send_reply("404", "Not Found");<BR>&gt; &gt; break;<BR>&gt; &gt; };<BR>&gt; &gt; if (!t_relay()) {<BR>&gt; &gt; sl_reply_error();<BR>&gt; &gt; };<BR>&gt; &gt; }<BR>&gt; &gt;<BR>&gt; &gt; #-------------------------------------------------------<BR>&gt; &gt; failure_route[4]{<BR>&gt; &gt; if (t_check_status("408|486")){<BR>&gt; &gt; append_hf("P-hint: Rewrited to VM");<BR>&gt; &gt; rewritehostport("192.168.25.116:5060");<BR>&gt; &gt; append_branch();<BR>&gt; &gt; t_relay();<BR>&gt; &gt; break;<BR>&gt; &gt; };<BR>&gt; &gt; }<BR>&gt; &gt; #---------------------------------------------------------<BR>&gt; &gt; onreply_route[5]{<BR>&gt; &gt; if (status =~
 "(183)|2[0-9][0-9]" &amp;&amp; !search("^Content-Length:\<BR>&gt; &gt; 0")) {<BR>&gt; &gt; if ( (!(src_ip=="SERVER1"))<BR>&gt; &gt; &amp;&amp; (!(src_ip=="SERVER2"))<BR>&gt; &gt; &amp;&amp; (!(src_ip=="SERVER3")) ){<BR>&gt; &gt; if ( search("c=IN IP4 192.168.*")||search("c=IN IP4<BR>&gt; &gt; 10.*")||search("c=IN IP4 172.16.*") ) {<BR>&gt; &gt; fix_contact();<BR>&gt; &gt; };<BR>&gt; &gt; };<BR>&gt; &gt; use_media_proxy();<BR>&gt; &gt; }<BR>&gt; &gt; }<BR>&gt; &gt;<BR>&gt; &gt; ===================================================<BR>&gt; &gt;<BR>&gt; &gt; Matt Schulte <MSCHULTE@NETLOGIC.NET>wrote:<BR>&gt; &gt; I'm starting to lean this direction, using t_replicate and all. I<BR>&gt; &gt; could<BR>&gt; &gt; never get usrloc (db mode) to function properly.. t_replicate is a<BR>&gt; &gt; dirty<BR>&gt; &gt; but very effective workaround.<BR>&gt; &gt;<BR>&gt; &gt; -----Original Message-----<BR>&gt; &gt; From: Greger V. Teigre [mailto:greger@teigre.com]<BR>&gt; &gt; Sent: Saturday, April
 02, 2005 1:33 AM<BR>&gt; &gt; To: kramarv@yahoo.com<BR>&gt; &gt; Cc: serusers@lists.iptel.org<BR>&gt; &gt; Subject: Re: [Serusers] still no help - usrloc synchronization<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt; Have a look at this thread:<BR>&gt; &gt; http://lists.iptel.org/pipermail/serusers/2005-January/014669.html<BR>&gt; &gt; g-)<BR>&gt; &gt;<BR>&gt; &gt; Java Rockx wrote:<BR>&gt; &gt;&gt; Tina,<BR>&gt; &gt;&amp; gt;<BR>&gt; &gt;&gt; I thought I saw you post the other day that you did not want to use<BR>&gt; &gt;&gt; t_replicate(), however, this is probably your best bet to getting<BR>&gt; &gt;&gt; this<BR>&gt; &gt;<BR>&gt; &gt;&gt; to work, IMHO.<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; Regards,<BR>&gt; &gt;&gt; Paul<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; On Apr 1, 2005 4:08 PM, Tina wrote:&gt;&gt;<BR>&gt; &gt;&gt;&gt; Hi, please help me, I'm stuck with it!!!!!<BR>&gt; &gt;&gt;&gt; I am trying to set up several sers with a shared MySQL database for<BR>&gt; &gt;&gt;&gt; location service.<BR>&gt;
 &gt;&gt;&gt;<BR>&gt; &gt;&gt;&gt; I set in each ser.cfg:<BR>&gt; &gt;&gt;&gt;<BR>&gt; &gt;&gt;&gt; modparam("usrloc", "db_mode", 2)<BR>&gt; &gt;&gt;&gt; modparam("usrloc",<BR>&gt; &gt;&gt;&gt; "db_url","sql://ser:heslo@192.168.25.163/ser")<BR>&gt; &gt;&gt;&gt;<BR>&gt; &gt;&gt;&gt; and the servers are not synchronized.<BR>&gt; &gt;&gt;&gt; The I set<BR>&gt; &gt;&gt;&gt; modparam("usrloc", "db_mode", 2)<BR>&gt; &gt;&gt;&gt;<BR>&gt; &gt;&gt;&gt;<BR>&gt; &gt;&gt;&gt; made UAC (Xlite) register to one of the servers.<BR>&gt; &gt;&gt;&gt; ; I see it via usrloc, but there is no record in "location" mySQL<BR>&gt; &gt;&gt;&gt; table....So others do not see the client and I'm unable to make<BR>&gt; &gt;&gt;&gt; calls....<BR>&gt; &gt;&gt;&gt;<BR>&gt; &gt;&gt;&gt;<BR>&gt; &gt;&gt;&gt; Please help how to work with usrloc and mySQL...<BR>&gt; &gt;&gt;&gt;<BR>&gt; &gt;&gt;&gt; Tina,<BR>&gt; &gt;&gt;&gt; software engineer<BR>&gt; &gt;&gt;&gt;<BR>&gt; &gt;&gt;&gt;
 ________________________________<BR>&gt; &gt;&gt;&gt; Do you Yahoo!?<BR>&gt; &gt;&gt;&gt; Better first dates. More second dates. Yahoo! Personals<BR>&gt; &gt;&gt;&gt;<BR>&gt; &gt;&gt;&gt;<BR>&gt; &gt;&gt;&gt; _______________________________________________<BR>&gt; &gt;&gt;&gt; Serusers mailing list<BR>&gt; &gt;&gt;&gt; serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers<BR>&gt; &gt;&gt;&gt;<BR>&gt; &gt;&gt;&gt;<BR>&gt; &gt;&gt;&gt;<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; _______________________________________________<BR>&gt; &gt;&gt; Serusers mailing list<BR>&gt; &gt;&gt; serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers<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; &gt; Do you Yahoo!?<BR>&gt; &gt; Yahoo! Mail - Find what you need with new enhanced search. Learn<BR>&gt;
 more.<BR>&gt; <BR>&gt; __________________________________________________<BR>&gt; Do You Yahoo!?<BR>&gt; Tired of spam? Yahoo! Mail has the best spam protection around<BR>&gt; http://mail.yahoo.com<BR>&gt; <BR>&gt; <BR>&gt; ------------------------------------------------------------------------<BR>&gt; <BR>&gt; _______________________________________________<BR>&gt; Serusers mailing list<BR>&gt; serusers@lists.iptel.org<BR>&gt; http://lists.iptel.org/mailman/listinfo/serusers<BR><BR></BLOCKQUOTE><p>
                <hr size=1>Do you Yahoo!?<br> 
Better first dates. More second dates. <a href="http://us.rd.yahoo.com/evt=27808/*http://personals.yahoo.com">Yahoo! Personals</a>