diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-03-29 06:18:58 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-03-29 06:18:58 +0000 |
commit | 19cfa5ca6c9d693aae8f51480f9b8c3978527924 (patch) | |
tree | b6a1af8e30fe8bfffee01103e5a217c99e8b4b5d /apps/app_exec.c | |
parent | 25212ca9e85b31af9bdb57c97a8da7868ee3b4dd (diff) |
Make sure ExecIf stuff returns properly (bug #3864)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5297 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_exec.c')
-rwxr-xr-x | apps/app_exec.c | 4 |
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 { |