<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 22, 2017 at 12:12 PM, Ryan Wagoner <span dir="ltr"><<a href="mailto:rswagoner@gmail.com" target="_blank">rswagoner@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I've been scaling out FreePBX horizontally with Kamailio and custom FreePBX modules mainly to handle call center outbound dialing (around 20k calls per day). One of the issues I ran into was FreePBX uses the AstDB extensively and will write changes to it from the dialplan or the FreePBX user control panel.<div><br></div><div>To overcome this I either needed to scrap FreePBX and build a new GUI using Asterisk realtime, heavily modify FreePBX (not an option), or rewrite AstDB to use a database like mySQL. I choose the last option and have had the code in production for just over a month. I'm backing it with a two node MariaDB Galera cluster with HAProxy providing failover for the client DB connections.</div><div><br></div><div>I realize that SQLite was chosen for AstDB for performance reasons. However mySQL seems to perform just fine in the above scenario. Right now I have a db.c file that just has the mySQL code. Does anybody else have any interest in using mySQL for the AstDB backend? I'm debating if it would make sense to have the option to select your AstDB backend.</div></div></blockquote><div><br></div><div>Hey Ryan,</div><div><br></div><div><span style="font-size:12.8px">First off, thanks for letting us know about the fun project you embarked upon. I think Josh already answered some of your questions, but with regards to the work you did - I believe that in the past there have been others who have wanted an ODBC AstDB driver as well. If your code can be made configurable, it may be a good contribution.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Anyways, hope you are doing well, and perhaps we'll see your code up on gerrit at some time in the future. :-)</span></div></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Matthew Fredrickson<br>Digium, Inc. | Engineering Manager<br>445 Jan Davis Drive NW - Huntsville, AL 35806 - USA</div></div></div>
</div></div>