TryExec()
TryExec(Applikation
(Argumente
))
Exec()
, eine Applikation auszuführen,
aber ohne den Anruf abzubrechen, wenn die Applikation nicht gefunden wird
oder einen Fehler zurückgibt. Stattdessen wird die Variable
TRYSTATUS
auf einen der folgenden Werte gesetzt:SUCCESS
FAILED
NOAPP
Exec()
“.| | | 1.4 |————————| 1.6 |————————
-= Info about application 'TryExec' =-
[Synopsis]
Executes dialplan application, always returning
[Description]
Usage: TryExec(appname(arguments))
Allows an arbitrary application to be invoked even when not
hardcoded into the dialplan. To invoke external applications
see the application System. Always returns to the dialplan.
The channel variable TRYSTATUS will be set to:
SUCCESS if the application returned zero
FAILED if the application returned non-zero
NOAPP if the application was not found or was not specified
--- in Asterisk 1.4
+++ in Asterisk 1.6
@@ -4,11 +4,11 @@
Executes dialplan application, always returning
[Description]
- Usage: TryExec(appname(arguments))
- Allows an arbitrary application to be invoked even when not
+ TryExec(appname(arguments)):
+ Allows an arbitrary application to be invoked even when not
hardcoded into the dialplan. To invoke external applications
see the application System. Always returns to the dialplan.
- The channel variable TRYSTATUS will be set to:
+ The channel variable TRYSTATUS will be set to one of:
SUCCESS if the application returned zero
FAILED if the application returned non-zero
NOAPP if the application was not found or was not specified