Name
Exec() — Executes an Asterisk application dynamically
Synopsis
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})
Get Asterisk: The Future of Telephony now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.