<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2604" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>So, just to be sure that I understand it's use correctly:</DIV>
<DIV>It will save the UA's location to memory, but not to DB, and it will reply 
to UA as save() does?</DIV>
<DIV>g-)</DIV>
<DIV>&nbsp;</DIV>
<DIV>---- Original Message ----<BR>From: Java Rockx<BR>To: AJ Grinnell<BR>Cc: 
Greger V. Teigre ; serusers@lists.iptel.org<BR>Sent: Wednesday, April 06, 2005 03:48 
PM<BR>Subject: Re: [Serusers] More usrloc sync questions<BR><BR>&gt; I just 
tested the save_memory() function and it works as I suspected.<BR>&gt; <BR>&gt; 
The only bug in my example is that save_memory() should be<BR>&gt; 
save_memory("location") <BR>&gt; <BR>&gt; Regards,<BR>&gt; Paul<BR>&gt; <BR>&gt; 
<BR>&gt; On Apr 6, 2005 9:28 AM, AJ Grinnell &lt;ajgrinnell@gmail.com&gt; 
wrote:<BR>&gt; That is exactly what I would need.<BR>&gt; <BR>&gt; On Apr 6, 
2005 9:05 AM, Java Rockx &lt;javarockx@gmail.com&gt; wrote:<BR>&gt;&gt; Has 
anyone ever seen the save_memory() function in the registrar<BR>&gt;&gt; module? 
<BR>&gt;&gt; <BR>&gt;&gt;&nbsp; I'm wondering exactly what this does. Assuming I 
have two (2) SER<BR>&gt;&gt; servers connected to the __same__ MySQL server, it 
seems like<BR>&gt;&gt; something like this should be legal:<BR>&gt;&gt; 
<BR>&gt;&gt;&nbsp; listen=10.255.15.1<BR>&gt;&gt;&nbsp; modparam("usrloc", 
"db_mode", 2)<BR>&gt;&gt; <BR>&gt;&gt;&nbsp; route {<BR>&gt;&gt; 
<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (method=="REGISTER") 
{<BR>&gt;&gt; 
<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
if (src_ip==10.255.15.1) {&nbsp; # ip of peer SER proxy<BR>&gt;&gt; 
<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
save_memory();<BR>&gt;&gt; 
<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
} else {<BR>&gt;&gt; 
<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
save("location");<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
t_replicate("10.255.15.2", 5060);<BR>&gt;&gt; 
<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
};<BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };<BR>&gt;&gt;&nbsp; 
}<BR>&gt;&gt; <BR>&gt;&gt; <BR>&gt;&gt;&nbsp; What I don't know, however, is 
will 10.255.15.2 attempt to write to<BR>&gt;&gt; the location table.<BR>&gt;&gt; 
<BR>&gt;&gt;&nbsp; Does anyone know about this?<BR>&gt;&gt; <BR>&gt;&gt;&nbsp; 
Regards,<BR>&gt;&gt;&nbsp; Paul<BR>&gt;&gt; <BR>&gt;&gt; <BR>&gt;&gt; 
<BR>&gt;&gt; <BR>&gt;&gt; On Apr 6, 2005 1:55 AM, Greger V. Teigre 
&lt;greger@teigre.com&gt; wrote:<BR>&gt;&gt;&gt; <BR>&gt;&gt;&gt; You have a 
cluster and you want to do replication in SER?&nbsp; Do your<BR>&gt;&gt;&gt; SER 
servers have one or several databases in mysql? You cannot do<BR>&gt;&gt;&gt; 
both replication and have one DB.&nbsp; The problem of using a 
cluster<BR>&gt;&gt;&gt; is that SER will write back everything to the database, 
but there<BR>&gt;&gt;&gt; is no "refresh" when looking up a location, so you 
cannot be sure<BR>&gt;&gt;&gt; that SER B will pick up what SER A 
stored.<BR>&gt;&gt;&gt; g-)<BR>&gt;&gt;&gt; <BR>&gt;&gt;&gt; AJ Grinnell 
wrote:<BR>&gt;&gt;&gt;&gt; So I can get replication working, but I constantly am 
getting<BR>&gt;&gt;&gt;&gt; errors about receiving SERs usrloc not being able to 
insert into<BR>&gt;&gt;&gt;&gt; the database. My guess is because the contact is 
already there by<BR>&gt;&gt;&gt;&gt; the originating SER. I have a MySQL cluster 
that both SERs are<BR>&gt;&gt;&gt;&gt; using. My question is this, how can I 
save the contact in the SER<BR>&gt;&gt;&gt;&gt; that is receiving the contact, 
without SER trying to write the<BR>&gt;&gt;&gt;&gt; contact to the 
DB?<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<BR>&gt;&gt;&gt;&gt; 
http://lists.iptel.org/mailman/listinfo/serusers<BR>&gt;&gt;&gt; <BR>&gt;&gt;&gt; 
_______________________________________________<BR>&gt;&gt;&gt; Serusers mailing 
list<BR>&gt;&gt;&gt; serusers@lists.iptel.org<BR>&gt;&gt;&gt; 
http://lists.iptel.org/mailman/listinfo/serusers</DIV></BODY></HTML>