summaryrefslogtreecommitdiff
path: root/apps/app_exec.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2005-03-29 06:18:58 +0000
committerMark Spencer <markster@digium.com>2005-03-29 06:18:58 +0000
commitb02fd7a66d02301fb376bd98d1cdb7234511ca96 (patch)
treeb6a1af8e30fe8bfffee01103e5a217c99e8b4b5d /apps/app_exec.c
parenteb91006b7cf187097aef8e943a3b7a7dcfddaff9 (diff)
Make sure ExecIf stuff returns properly (bug #3864)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5297 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_exec.c')
-rwxr-xr-xapps/app_exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_exec.c b/apps/app_exec.c
index 8a46c0797..f4e156927 100755
--- a/apps/app_exec.c
+++ b/apps/app_exec.c
@@ -37,7 +37,7 @@ static char *exec_descrip =
"Exec(appname(arguments))\n"
" Allows an arbitrary application to be invoked even when not\n"
"hardcoded into the dialplan. Returns whatever value the\n"
-"app returns or -2 when the app cannot be found.\n";
+"app returns or a non-zero value when the app cannot be found.\n";
STANDARD_LOCAL_USER;
@@ -71,7 +71,7 @@ static int exec_exec(struct ast_channel *chan, void *data)
res = pbx_exec(chan, app, args, 1);
} else {
ast_log(LOG_WARNING, "Could not find application (%s)\n", appname);
- res = -2;
+ res = -1;
}
}
} else {