Name

Exec() — Executes an Asterisk application dynamically

Synopsis

Exec(appname(arguments))

Allows an arbitrary application to be invoked even when not hard-coded in to the dialplan. Exits exactly the same as the underlying application, or abnormally, if the underlying application cannot be found. The arguments are passed to the called application.

This application allows you to dynamically call applications by pulling them from a database or other external source.

exten => 123,1,Set(MYAPP=SayDigits(12345))
exten => 123,2,Exec(${MYAPP})

See Also

The EVAL, TryExec(), ExecIf()