[asterisk-users] Best way to update ever changing dialplans

Bruce Ferrell bferrell at baywinds.org
Tue Jun 26 10:49:08 CDT 2018

On 06/25/2018 09:54 AM, Dovid Bender wrote:
> I am working on a system where I connect to an external API and based on what it gives me I generate the Asterisk dial plan accordingly. I am thinking about my different options 
> and wanted feedback from others on how to best do it.
> 1) Generate conf files for Asterisk - This seems the easiest but then I will be doing a dial plan reload on all of my dial plan for handful of lines of code. The plus side is once 
> reload is don the dial plan is in memory.
> 2) Using real time + mysql - Seems like an overkill to have mysql running taking resources for a few lines.
> 3) Using real time + sqlite3 - This seems like the best option but then we go to disk every time there is a call.
> Any other options that I am not thinking of?

I don't think you missed any options.

Call me silly, number 2 has always been my preference.  Flat file configuration bugs me except for the simplest
of things.

Since you mention the external API, you already have a fairly complex environment... And pretty likely to have, at
some point, multiple asterisk instances.  Surprise! The realtime mysql dialplan can be shared among them.

But I'm crazy that way.

More information about the asterisk-users mailing list