Exec( ) Executes an Asterisk application dynamically

 

    Exec(appname(arguments))

 

Allows an arbitrary application to be invoked even when not hard-coded into the dialplan. Returns whatever value the Asterisk application returns, or -2 when the called 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

Eval( ), ExecIf( )