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> &lt;<a href="mailto:greger@teigre.com">greger@teigre.com</a>&gt; 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>&nbsp;</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>&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(&quot;location&quot;) <br>&gt; <br>&gt; Regards,<br>&gt; Paul<br>&gt; <br>&gt; 
<br>&gt; On Apr 6, 2005 9:28 AM, AJ Grinnell &lt;<a href="mailto:ajgrinnell@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">ajgrinnell@gmail.com</a>&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;<a href="mailto:javarockx@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">javarockx@gmail.com</a>&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=<a href="http://10.255.15.1" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">10.255.15.1</a><br>&gt;&gt;&nbsp; modparam(&quot;usrloc&quot;, 
&quot;db_mode&quot;, 2)<br>&gt;&gt; <br>&gt;&gt;&nbsp; route {<br>&gt;&gt; 
<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (method==&quot;REGISTER&quot;) 
{<br>&gt;&gt; 
<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
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>) {&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(&quot;location&quot;);<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
t_replicate(&quot;<a href="http://10.255.15.2" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">10.255.15.2</a>&quot;, 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 <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>&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;<a href="mailto:greger@teigre.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">greger@teigre.com</a>&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 &quot;refresh&quot; 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; <a href="mailto:serusers@lists.iptel.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Serusers@iptel.org</a><br>&gt;&gt;&gt;&gt; 
<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>&gt;&gt;&gt; <br>&gt;&gt;&gt; 
_______________________________________________<br>&gt;&gt;&gt; Serusers mailing 
list<br>&gt;&gt;&gt; <a href="mailto:serusers@lists.iptel.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Serusers@iptel.org</a><br>&gt;&gt;&gt; 
<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>