<font size="2"><font face="tahoma,sans-serif">Hello, </font></font><div><font size="2"><font face="tahoma,sans-serif"><br></font></font></div><div><font size="2"><font face="tahoma,sans-serif">I was thinking that if i store the contacts that are registered into my proxy in a database, like this:</font></font></div>
<div><font size="2"><font face="tahoma,sans-serif"><br></font></font></div><div><font size="2"><font face="tahoma,sans-serif">.</font></font></div><div><font size="2"><font face="tahoma,sans-serif">.</font></font></div><div>
<font size="2"><font face="tahoma,sans-serif"><br></font></font></div><div><font size="2"><font face="tahoma,sans-serif"><div># ----- usrloc params -----</div><div>modparam(&quot;usrloc&quot;, &quot;db_mode&quot;,   3)</div>
<div>.</div></font></font></div><div><font size="2"><font face="tahoma,sans-serif">.</font></font></div><div><font size="2"><font face="tahoma,sans-serif"><div>if (is_method(&quot;REGISTER&quot;))</div><div>{</div><div><div>
        if (!save(&quot;location&quot;))</div><div>        sl_reply_error();</div><div>        exit;</div><div>  }</div><div>.</div></div><div>.</div><div><br></div><div>This way i would store the contacts in table &quot;location&quot;, and then i could make a backup of the DB and restore on the other server...is that ok? or i&#39;m missing something?</div>
<div><br></div><div>Thanks in advance for your help! </div><div><br></div></font></font></div><div><font class="Apple-style-span" face="tahoma, sans-serif"><br></font></div><div><br><div class="gmail_quote">2011/1/27 Iñaki Baz Castillo <span dir="ltr">&lt;<a href="mailto:ibc@aliax.net">ibc@aliax.net</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">2011/1/27 Danny Dias &lt;<a href="mailto:ing.diasdanny@gmail.com">ing.diasdanny@gmail.com</a>&gt;:<br>

</div><div class="im">&gt;&gt; Two Kamailios in a HeartBeat cluster which manages the kamailio<br>
&gt;&gt; service along with a virtual IP in which kamailios are supposed to<br>
&gt;&gt; listen. Just one kamailio is running (HA manages them).<br>
&gt;&gt;<br>
&gt;<br>
&gt; So, the heartbeat cluster shall manage that both are ok and also check that<br>
&gt; the virtual ip and the kamailio service in the primary server is OK....if<br>
&gt; something fails it will activate the virtual IP address and the kamailio<br>
&gt; process in the other server? so this heartbeat cluster is installed in both<br>
&gt; kamailio servers?<br>
&gt; which HA software do you recommend?<br>
<br>
</div>As I said at the top of my previous mail: HeartBeat (as it is the only<br>
I&#39;m used to).<br>
<div class="im"><br>
<br>
&gt;&gt; Regsitration can be done in a shared database with db_mode=3 (or 2) so<br>
&gt;&gt; no locations are lost when HA stops the running instance of kamailio<br>
&gt;&gt; (or the server is down) and starts kamailio in the other cluster node.<br>
&gt;&gt;<br>
&gt;<br>
&gt; So, the database of the kamailios should be dedicated and externalised<br>
&gt; server?<br>
<br>
</div>Could be, or not. It doesn&#39;t matter too much.<br>
<font color="#888888"><br>
<br>
--<br>
</font><div><div></div><div class="h5">Iñaki Baz Castillo<br>
&lt;<a href="mailto:ibc@aliax.net">ibc@aliax.net</a>&gt;<br>
</div></div></blockquote></div><br></div>