Invoke macro dynamically

Hello guys,

Im using asterisk 13.

I need invoke macro dynamically.

Example:

In extensions.ael have this macro below:

macro testMacro(string){
NoOp(text {string}); return; } And I receive a variable through an endpoint {comand}= &testeMacro(foo).

How can I execute this variable ${comand} like a macro??

I tried using EVAL, EXEC, tryExec…

Im utilizing AEL.

Thx guys

Macros in AEL are compiled into Gosub, so this going to confuse things. Also, very few people use AEL and I suspect it is not supported as part of the core product.