<div dir="ltr">Hi,<div><br></div><div>I don't think that the cluster module is recognized outside the kamailio.cfg - In order to get your two Databases to work with DBHOST string is maybe get a MySQL proxy used between the kamctl and the two Databases. The MySQL proxy would decide if the first DB is down hence connect to secondary DB. </div><div><br></div><div>Since Kamctl is a bash script if you add two lines your kamctl might just take either first or the second one all the time. </div><div><br></div><div>I hope it answered a little bit of your query.</div><div><br></div><div>Regards,</div><div>Sammy</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 15, 2016 at 4:27 PM, Hosted Services <span dir="ltr"><<a href="mailto:hosted@empire-team.com" target="_blank">hosted@empire-team.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-CA" link="#0563C1" vlink="#954F72">
<div>
<p class="MsoNormal">Hi there,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">New user to Kamailio here. We currently have it up and running in a virtualized environment with 1 Kamailio sever, 1 Asterisk server and 1 MySQL server.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I’m currently writing install scripts to make deploying new nodes/servers easy and to keep settings the same across the board.  I’ve chosed to load the db_cluster.so module in kamailio.cfg, as we will have 2x MySQL servers in master-master
 replication which will contain the ‘kamailio’ and ‘asterisk’ tables.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I’ve just hit a stumbling block – in `kamctlrc`, there is a field called `DBHOST=`.  How can I reference my cluster here?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">In kamailio.cfg, I simply define DBURL as “cluster//<clustername>”.  What is the syntax for ‘DBHOST=’ in ‘kamctlrc’?  Can I reference the cluster? Can I have 2 separate DBHOST= lines?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Looking for some guidance on this one.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks,<u></u><u></u></p>
<p class="MsoNormal">Derek B.<u></u><u></u></p>
</div>
</div>

<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div>