Eval a block of dialplan returned by external script

#1

Hello,

I’m trying to do some call routing and debating between agi and ari, and i had a thrid idea which is generating a dialplan from an external script (curl/bash) and execute it, Exec() and Eval() dont do it because they evaluate expressions.

So i want to know if there is a way to put something like this in a variable

same => n,NoOp('Hello')

and evaluate it in the dialplan.

#2

Evaluate which part? Including the pattern matching? If so, then no.

#3

Not the pattern matching just multiple applications calls provided as string instead of just one

#4

No, not multiple application calls. You’d have to have your own logic to split things up and execute one by one I believe.