Exec()
Exec(Applikationsname
(Argumente
))
Argumente
werden an
die aufgerufene Anwendung durchgereicht.exten => 123,1,Set(app=SayDigits(12345)) exten => 123,2,Exec(${app})
TryExec()
.————————| 1.2 |————————| 1.4 |————————| 1.6 |————————
-= Info about application 'Exec' =-
[Synopsis]
Executes dialplan application
[Description]
Usage: Exec(appname(arguments))
Allows an arbitrary application to be invoked even when not
hardcoded into the dialplan. If the underlying application
terminates the dialplan, or if the application cannot be found,
Exec will terminate the dialplan.
To invoke external applications, see the application System.
If you would like to catch any error instead, see TryExec.
--- in Asterisk 1.2
+++ in Asterisk 1.4
@@ -1,11 +1,13 @@
-= Info about application 'Exec' =-
[Synopsis]
- Executes internal application
+ Executes dialplan application
[Description]
Usage: Exec(appname(arguments))
Allows an arbitrary application to be invoked even when not
- hardcoded into the dialplan. To invoke external applications
- see the application System. Returns whatever value the
- app returns or a non-zero value if the app cannot be found.
+ hardcoded into the dialplan. If the underlying application
+ terminates the dialplan, or if the application cannot be found,
+ Exec will terminate the dialplan.
+ To invoke external applications, see the application System.
+ If you would like to catch any error instead, see TryExec.
--- in Asterisk 1.4
+++ in Asterisk 1.6
@@ -4,8 +4,8 @@
Executes dialplan application
[Description]
- Usage: Exec(appname(arguments))
- Allows an arbitrary application to be invoked even when not
+ Exec(appname(arguments)):
+ Allows an arbitrary application to be invoked even when not
hardcoded into the dialplan. If the underlying application
terminates the dialplan, or if the application cannot be found,
Exec will terminate the dialplan.