<!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> </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>> I just
tested the save_memory() function and it works as I suspected.<BR>> <BR>>
The only bug in my example is that save_memory() should be<BR>>
save_memory("location") <BR>> <BR>> Regards,<BR>> Paul<BR>> <BR>>
<BR>> On Apr 6, 2005 9:28 AM, AJ Grinnell <ajgrinnell@gmail.com>
wrote:<BR>> That is exactly what I would need.<BR>> <BR>> On Apr 6,
2005 9:05 AM, Java Rockx <javarockx@gmail.com> wrote:<BR>>> Has
anyone ever seen the save_memory() function in the registrar<BR>>> module?
<BR>>> <BR>>> I'm wondering exactly what this does. Assuming I
have two (2) SER<BR>>> servers connected to the __same__ MySQL server, it
seems like<BR>>> something like this should be legal:<BR>>>
<BR>>> listen=10.255.15.1<BR>>> modparam("usrloc",
"db_mode", 2)<BR>>> <BR>>> route {<BR>>>
<BR>>> if (method=="REGISTER")
{<BR>>>
<BR>>>
if (src_ip==10.255.15.1) { # ip of peer SER proxy<BR>>>
<BR>>>
save_memory();<BR>>>
<BR>>>
} else {<BR>>>
<BR>>>
save("location");<BR>>>
t_replicate("10.255.15.2", 5060);<BR>>>
<BR>>>
};<BR>>> };<BR>>>
}<BR>>> <BR>>> <BR>>> What I don't know, however, is
will 10.255.15.2 attempt to write to<BR>>> the location table.<BR>>>
<BR>>> Does anyone know about this?<BR>>> <BR>>>
Regards,<BR>>> Paul<BR>>> <BR>>> <BR>>>
<BR>>> <BR>>> On Apr 6, 2005 1:55 AM, Greger V. Teigre
<greger@teigre.com> wrote:<BR>>>> <BR>>>> You have a
cluster and you want to do replication in SER? Do your<BR>>>> SER
servers have one or several databases in mysql? You cannot do<BR>>>>
both replication and have one DB. The problem of using a
cluster<BR>>>> is that SER will write back everything to the database,
but there<BR>>>> is no "refresh" when looking up a location, so you
cannot be sure<BR>>>> that SER B will pick up what SER A
stored.<BR>>>> g-)<BR>>>> <BR>>>> AJ Grinnell
wrote:<BR>>>>> So I can get replication working, but I constantly am
getting<BR>>>>> errors about receiving SERs usrloc not being able to
insert into<BR>>>>> the database. My guess is because the contact is
already there by<BR>>>>> the originating SER. I have a MySQL cluster
that both SERs are<BR>>>>> using. My question is this, how can I
save the contact in the SER<BR>>>>> that is receiving the contact,
without SER trying to write the<BR>>>>> contact to the
DB?<BR>>>>> <BR>>>>>
_______________________________________________<BR>>>>> Serusers
mailing list<BR>>>>> serusers@lists.iptel.org<BR>>>>>
http://lists.iptel.org/mailman/listinfo/serusers<BR>>>> <BR>>>>
_______________________________________________<BR>>>> Serusers mailing
list<BR>>>> serusers@lists.iptel.org<BR>>>>
http://lists.iptel.org/mailman/listinfo/serusers</DIV></BODY></HTML>