<div dir="ltr">Just looked into the code, this is not a simple task to put a new backend for astdb. The code isn't even designed<br>for something like that. Judging from what I can tell, and tell me if I'm wrong - turning this into a configurable thing<br>would be more or less an open-heart surgery.<div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Oct 26, 2017 at 4:16 PM Olle E. Johansson <<a href="mailto:oej@edvina.net">oej@edvina.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Somewhere in Asterisk space, there’s an old patch where I added ASTDB over realtime, meaning you can use <div>any realtime storage. If I remember correctly there was a bit of chicken-and-egg problem with some astdb</div><div>calls happening before realtime got launched, but otherwise it worked just fine in production for a long time.</div></div><div style="word-wrap:break-word"><div><br></div><div>/O</div></div><div style="word-wrap:break-word"><div><br><div><blockquote type="cite"><div>On 26 Oct 2017, at 15:13, Nir Simionovich <<a href="mailto:nir.simionovich@gmail.com" target="_blank">nir.simionovich@gmail.com</a>> wrote:</div><br class="m_3651031521499455850Apple-interchange-newline"><div><div dir="ltr">I'd like to +1 on that idea.<div><br></div><div>While I'm somewhat reluctant to using mySQL as the base of such a change, as mySQL is an overkill for AstDB,<br>having a proper AstDB configurable backend is an interesting thing. Personally speaking, I would actually prefer<br>something like Memcache or preferably Redis. Both are similar in function and usability to AstDB, both are fairly<br>scalable (Redis specifically) and both are fairly simplistic in nature. </div><div><br></div><div>I do admit that this got me intrigued... </div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Sep 26, 2017 at 12:45 AM Matt Fredrickson <<a href="mailto:creslin@digium.com" target="_blank">creslin@digium.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><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></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><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></div><div dir="ltr"><div class="gmail_extra"><div><br></div>-- <br><div class="m_3651031521499455850m_-3968396189948988291gmail_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>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com/" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a></blockquote></div><div dir="ltr">-- <br></div><div class="m_3651031521499455850gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;line-height:normal;margin:0in 0in 0pt"><font size="3"><span style="font-family:"courier new"">Kind Regards,</span><span style="color:rgb(31,73,125)"></span></font></div><font size="3" face="Times New Roman" style="color:rgb(34,34,34);line-height:normal"></font><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;line-height:normal;margin:0in 0in 0pt"><font size="3"><span style="font-family:"courier new"">  Nir Simionovich</span><span style="color:rgb(31,73,125)"></span></font></div><font size="3" face="Times New Roman" style="color:rgb(34,34,34);line-height:normal"></font><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;line-height:normal;margin:0in 0in 0pt"><font size="3"><span style="font-family:"courier new"">  GreenfieldTech</span><span style="color:rgb(31,73,125)"></span></font></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;line-height:normal;margin:0in 0in 0pt"><font size="3"><span style="font-family:"courier new"">  (schedule) </span></font><font face="Courier New" size="3"><a href="http://nirsimionovich.appointy.com/" style="color:rgb(17,85,204)" target="_blank">http://nirsimionovich.appointy.com/</a></font></div><font size="3" face="Times New Roman" style="color:rgb(34,34,34);line-height:normal"></font><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;line-height:normal;margin:0in 0in 0pt"><span style="font-family:"courier new""><font size="3">  (w)<span class="m_3651031521499455850inbox-inbox-inbox-inbox-Apple-converted-space"> </span></font><a href="http://www.greenfieldtech.net/" style="color:rgb(17,85,204)" target="_blank"><span style="color:blue"><font size="3">http://www.greenfieldtech.net</font></span></a><font size="3"> </font></span></div><font size="3" face="Times New Roman" style="color:rgb(34,34,34);line-height:normal"></font><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;line-height:normal;margin:0in 0in 0pt"><span style="font-family:"courier new""><font size="3">  (p) <a href="tel:073-255-7799" value="+972732557799" target="_blank">+972-73-2557799</a>       <span class="m_3651031521499455850inbox-inbox-inbox-inbox-Apple-converted-space"> </span>(MSN):<span class="m_3651031521499455850inbox-inbox-inbox-inbox-Apple-converted-space"> </span></font><a href="mailto:nirs@greenfieldtech.net" style="color:rgb(17,85,204)" target="_blank"><span style="color:blue"><font size="3">nirs@greenfieldtech.net</font></span></a></span></div><font size="3" face="Times New Roman" style="color:rgb(34,34,34);line-height:normal"></font><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;line-height:normal;margin:0in 0in 0pt"><span style="font-family:"courier new""><font size="3">  (m) <a href="tel:054-698-2826" value="+972546982826" target="_blank">+972-54-6982826</a>     <span class="m_3651031521499455850inbox-inbox-inbox-inbox-Apple-converted-space"> </span>(GTALK):<span class="m_3651031521499455850inbox-inbox-inbox-inbox-Apple-converted-space"> </span></font><a href="mailto:nir.simionovich@gmail.com" style="color:rgb(17,85,204)" target="_blank"><span style="color:blue"><font size="3">nir.simionovich@gmail.com</font></span></a><span style="color:rgb(31,73,125)"></span></span></div><font size="3" face="Times New Roman" style="color:rgb(34,34,34);line-height:normal"></font><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;line-height:normal;margin:0in 0in 0pt"><span style="font-family:"courier new""><font size="3">  (f) <a href="tel:073-255-7202" value="+972732557202" target="_blank">+972-73-2557202</a>     <span class="m_3651031521499455850inbox-inbox-inbox-inbox-Apple-converted-space"> </span>(SKYPE): greenfieldtech.nir</font></span></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;line-height:normal;margin:0in 0in 0pt"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;line-height:normal;margin:0in 0in 0pt"><span style="font-family:"courier new""><font size="3">----------------------------------------------------------</font></span></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;line-height:normal;margin:0in 0in 0pt"><span style="font-family:"courier new""><font size="3">               <a href="https://mailstrom.co/referral/ARZJE" style="color:rgb(17,85,204)" target="_blank">Zero Your Inbox</a> | <a href="https://www.digitalocean.com/?refcode=97eeea09917a" style="color:rgb(17,85,204)" target="_blank">Cloud Servers</a></font></span></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;line-height:normal;margin:0in 0in 0pt"><span style="font-family:"courier new""><font size="3">----------------------------------------------------------</font></span><span style="font-family:calibri;font-size:14px;line-height:0px"> </span></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;margin:7.5pt 0in 0pt;line-height:0px"><span style="font-family:"courier new""></span><br class="m_3651031521499455850webkit-block-placeholder"></div><font size="3" face="Times New Roman" style="color:rgb(34,34,34);line-height:normal"></font><font face="Times New Roman" style="color:rgb(34,34,34);font-size:small;line-height:normal"></font><table border="0" cellspacing="3" cellpadding="0" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;line-height:normal"><tbody><tr><td style="margin:0px"><font face="Times New Roman"></font></td></tr></tbody><tbody><tr><td style="margin:0px;padding:0.75pt;border:rgb(0,0,0);background-image:initial;background-size:initial;background-origin:initial;background-clip:initial;background-position:initial;background-repeat:initial"><font face="Times New Roman"></font><div style="margin:0in 0in 0pt"><b><span style="font-family:"courier new"">Disclaimer:</span></b><br></div><div style="margin:0in 0in 0pt"><span style="font-family:"courier new"">This e-mail is intended solely for the person to whom it is addressed and may contain confidential or legally privileged information. Access to this e-mail by anyone else is unauthorized. If an addressing or transmission error has misdirected this e-mail, please notify the author by replying to this e-mail and destroy this e-mail and any attachments.<span class="m_3651031521499455850inbox-inbox-inbox-inbox-Apple-converted-space"> </span><br>E-mail may be susceptible to data corruption, interception, unauthorized amendment, viruses and delays or the consequences thereof. If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing or copying of this email is strictly prohibited.</span></div></td></tr></tbody></table></div></div>
-- <br>_____________________________________________________________________<br>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br><br>asterisk-dev mailing list<br>To UNSUBSCRIBE or update options visit:<br>   <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a></div></blockquote></div><br></div></div>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a></blockquote></div><div dir="ltr">-- <br></div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><p style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;line-height:normal;margin:0in 0in 0pt"><font size="3"><span style="font-family:"courier new"">Kind Regards,</span><span style="color:rgb(31,73,125)"></span></font></p><font size="3" face="Times New Roman" style="color:rgb(34,34,34);line-height:normal"></font><p style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;line-height:normal;margin:0in 0in 0pt"><font size="3"><span style="font-family:"courier new"">  Nir Simionovich</span><span style="color:rgb(31,73,125)"></span></font></p><font size="3" face="Times New Roman" style="color:rgb(34,34,34);line-height:normal"></font><p style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;line-height:normal;margin:0in 0in 0pt"><font size="3"><span style="font-family:"courier new"">  GreenfieldTech</span><span style="color:rgb(31,73,125)"></span></font></p><p style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;line-height:normal;margin:0in 0in 0pt"><font size="3"><span style="font-family:"courier new"">  (schedule) </span></font><font face="Courier New" size="3"><a href="http://nirsimionovich.appointy.com/" target="_blank" style="color:rgb(17,85,204)">http://nirsimionovich.appointy.com/</a></font></p><font size="3" face="Times New Roman" style="color:rgb(34,34,34);line-height:normal"></font><p style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;line-height:normal;margin:0in 0in 0pt"><span style="font-family:"courier new""><font size="3">  (w)<span class="inbox-inbox-inbox-inbox-Apple-converted-space"> </span></font><a href="http://www.greenfieldtech.net/" target="_blank" style="color:rgb(17,85,204)"><span style="color:blue"><font size="3">http://www.greenfieldtech.net</font></span></a><font size="3"> </font></span></p><font size="3" face="Times New Roman" style="color:rgb(34,34,34);line-height:normal"></font><p style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;line-height:normal;margin:0in 0in 0pt"><span style="font-family:"courier new""><font size="3">  (p) +972-73-2557799       <span class="inbox-inbox-inbox-inbox-Apple-converted-space"> </span>(MSN):<span class="inbox-inbox-inbox-inbox-Apple-converted-space"> </span></font><a href="mailto:nirs@greenfieldtech.net" target="_blank" style="color:rgb(17,85,204)"><span style="color:blue"><font size="3">nirs@greenfieldtech.net</font></span></a></span></p><font size="3" face="Times New Roman" style="color:rgb(34,34,34);line-height:normal"></font><p style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;line-height:normal;margin:0in 0in 0pt"><span style="font-family:"courier new""><font size="3">  (m) +972-54-6982826     <span class="inbox-inbox-inbox-inbox-Apple-converted-space"> </span>(GTALK):<span class="inbox-inbox-inbox-inbox-Apple-converted-space"> </span></font><a href="mailto:nir.simionovich@gmail.com" target="_blank" style="color:rgb(17,85,204)"><span style="color:blue"><font size="3">nir.simionovich@gmail.com</font></span></a><span style="color:rgb(31,73,125)"></span></span></p><font size="3" face="Times New Roman" style="color:rgb(34,34,34);line-height:normal"></font><p style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;line-height:normal;margin:0in 0in 0pt"><span style="font-family:"courier new""><font size="3">  (f) +972-73-2557202     <span class="inbox-inbox-inbox-inbox-Apple-converted-space"> </span>(SKYPE): greenfieldtech.nir</font></span></p><p style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;line-height:normal;margin:0in 0in 0pt"><br></p><p style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;line-height:normal;margin:0in 0in 0pt"><span style="font-family:"courier new""><font size="3">----------------------------------------------------------</font></span></p><p style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;line-height:normal;margin:0in 0in 0pt"><span style="font-family:"courier new""><font size="3">               <a href="https://mailstrom.co/referral/ARZJE" target="_blank" style="color:rgb(17,85,204)">Zero Your Inbox</a> | <a href="https://www.digitalocean.com/?refcode=97eeea09917a" target="_blank" style="color:rgb(17,85,204)">Cloud Servers</a></font></span></p><p style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;line-height:normal;margin:0in 0in 0pt"><span style="font-family:"courier new""><font size="3">----------------------------------------------------------</font></span><span style="font-family:calibri;font-size:medium;line-height:0px"> </span></p><p style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;margin:7.5pt 0in 0pt;line-height:0px"><span style="font-family:"courier new""></span></p><font size="3" face="Times New Roman" style="color:rgb(34,34,34);line-height:normal"></font><font face="Times New Roman" style="color:rgb(34,34,34);font-size:small;line-height:normal"></font><table border="0" cellspacing="3" cellpadding="0" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;line-height:normal"><tbody><tr><td style="margin:0px"><font face="Times New Roman"></font></td></tr></tbody><tbody><tr><td style="margin:0px;padding:0.75pt;border:rgb(0,0,0);background-image:initial;background-size:initial;background-origin:initial;background-clip:initial;background-position:initial;background-repeat:initial"><font face="Times New Roman"></font><p style="margin:0in 0in 0pt"><b><span style="font-family:"courier new"">Disclaimer:</span></b><br></p><p style="margin:0in 0in 0pt"><span style="font-family:"courier new"">This e-mail is intended solely for the person to whom it is addressed and may contain confidential or legally privileged information. Access to this e-mail by anyone else is unauthorized. If an addressing or transmission error has misdirected this e-mail, please notify the author by replying to this e-mail and destroy this e-mail and any attachments.<span class="inbox-inbox-inbox-inbox-Apple-converted-space"> </span><br>E-mail may be susceptible to data corruption, interception, unauthorized amendment, viruses and delays or the consequences thereof. If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing or copying of this email is strictly prohibited.</span></p></td></tr></tbody></table></div></div>