That appears to be what it does. I would love for the registrar module
README to include documentation of this function to be certain of its
purpose.<br>
<br>
P<br><br><div><span class="gmail_quote">On Apr 7, 2005 1:26 AM, <b class="gmail_sendername">Greger V. Teigre</b> <<a href="mailto:greger@teigre.com">greger@teigre.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<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><span class="sg">
<div>g-)</div></span><div><span class="e" id="q_1031b1fcae3b4e3f_2">
<div> </div>
<div>---- Original Message ----<br>From: Java Rockx<br>To: AJ Grinnell<br>Cc:
Greger V. Teigre ; <a href="mailto:serusers@lists.iptel.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">serusers@lists.iptel.org</a><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 <<a href="mailto:ajgrinnell@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">ajgrinnell@gmail.com</a>>
wrote:<br>> That is exactly what I would need.<br>> <br>> On Apr 6,
2005 9:05 AM, Java Rockx <<a href="mailto:javarockx@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">javarockx@gmail.com</a>> 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=<a href="http://10.255.15.1" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">10.255.15.1</a><br>>> modparam("usrloc",
"db_mode", 2)<br>>> <br>>> route {<br>>>
<br>>> if (method=="REGISTER")
{<br>>>
<br>>>
if (src_ip==<a href="http://10.255.15.1" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">10.255.15.1</a>) { # ip of peer SER proxy<br>>>
<br>>>
save_memory();<br>>>
<br>>>
} else {<br>>>
<br>>>
save("location");<br>>>
t_replicate("<a href="http://10.255.15.2" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">10.255.15.2</a>", 5060);<br>>>
<br>>>
};<br>>> };<br>>>
}<br>>> <br>>> <br>>> What I don't know, however, is
will <a href="http://10.255.15.2" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">10.255.15.2</a> 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
<<a href="mailto:greger@teigre.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">greger@teigre.com</a>> 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>>>>> <a href="mailto:serusers@lists.iptel.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Serusers@iptel.org</a><br>>>>>
<a href="http://lists.iptel.org/mailman/listinfo/serusers" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://mail.iptel.org/mailman/listinfo/serusers</a><br>>>> <br>>>>
_______________________________________________<br>>>> Serusers mailing
list<br>>>> <a href="mailto:serusers@lists.iptel.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Serusers@iptel.org</a><br>>>>
<a href="http://lists.iptel.org/mailman/listinfo/serusers" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://mail.iptel.org/mailman/listinfo/serusers</a></div>
</span></div></blockquote></div><br>