Exec( )

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( )

Asterisk. The Future of Telephony
Asterisk: The Future of Telephony: The Future of Telephony
Year: 2001
Pages: 380

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net