And do u know if its possible to order a script from get or post? I mean, i have a .agi script for google stt and in the dialplan i put this rule if I want to load it:
n,agi(speech-recog.agi,es,2,#);
Are there any possibility to send this order vía CURL?
Or any other possibilitie to handle it?
As I understand it, ARI is processed by an application. You can’t nest the execution of applications on a channel, so nesting AGI would not be possible.
You could probably simulate it by setting channel variables and having the dialplan run AGI, then re-invoke Stasis, but I haven’t used ARI myself.
There’s nothing inherently built in as @david551 said. The closest thing you could do is as he says, set a channel variable and go back into the dialplan.
I don’t have an example handy to do such a thing. But the documentation on the wiki previously linked has routes for setting a variable, and also for sending the channel back into the dialplan.