You really have to pick one of those. Either you would convert it into dialplan, or you would write an ARI application that understands and does things - but ARI applications can not invoke normal dialplan applications, so you probably actually want dialplan.
I don’t really understand what you’re asking for otherwise. If you’re writing dialplan then Asterisk will do what you tell it to do in dialplan. Everything else is outside of Asterisk, and up to you to code and write.
I need to understand how to create a dynamic dial plan using ARA or a JSON data structure with ARI for a dynamic IVR application. My goal is to build a dynamic IVR system where each user can create their own IVR flow using a front-end call flow builder.
“user” is an individual or entity (such as a company or organization) who has access to the IVR (Interactive Voice Response) system and is authorized to create, modify, and manage their own IVR flow using the front-end call flow builder.
If you want to do it dynamically then something you write has to take input (such as from this JSON thing you mentioned) and produce dialplan. This dialplan can either be stored in realtime dialplan (which means that if your database has issues Asterisk will have issues with every call going on) or it is written into extensions.conf (or included files in extensions.conf) and then Asterisk is reloaded (which means if your database has issues Asterisk will not be impacted).
Can you please guide me on how to achieve a dynamic dialplan configuration in Asterisk without requiring a reload, ensuring real-time updates? I need to connect a front-end call flow builder that provides tree-structured JSON data, and I want to convert this data to an Asterisk dialplan dynamically. I do not want any static configuration or frequent reloads.
If you have specific targeted questions or difficulties I may respond, but I won’t provide a guide for undertaking such an endeavour. I can’t speak for anyone else.
On Monday 12 May 2025 at 14:04:52, aravindh-itgalax via Asterisk Community
wrote:
how to achieve a dynamic dialplan configuration in Asterisk without requiring
a reload, ensuring real-time updates?
a) what is your objection to performing a “dialplan reload” once the changes
you require are done? It doesn’t affect calls already in progress.
b) are you really sure you want real-time updates of your dialplan? Suppose
you want to modify something in the dialplan which involves 10 different lines
of code, maybe all in one context, maybe in several. I think it’s better to
be able to make all 10 changes and then tell Asterisk to “use this” rather
than make each change one after another and have Asterisk notice each one as
it happens, which may result in a broken dialplan, half-and-half between old
and new.
Antony.
–
Ich habe gerade ein Bier getrunken.
Jetzt habe ich kein Bock mehr
I created a visual drag-and-drop custom call flow builder using JavaScript. It generates tree-structured JSON data. After I make a call, the call should execute based on my flow.
On Monday 12 May 2025 at 14:29:23, aravindh-itgalax via Asterisk Community
wrote:
I created a visual drag-and-drop custom call flow builder using JavaScript.
It generates tree-structured JSON data. After I make a call, the call
should execute based on my flow.
This doesn’t answer my question, and depending on how this JSON data becomes
an Asterisk dialplan, doesn’t address my point about half-done changes going
live.
Antony.
–
Neurotics build castles in the sky;
Psychotics live in them;
Psychiatrists collect the rent.