Eval a block of dialplan returned by external script

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.

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

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

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

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.