aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_agi.c
diff options
context:
space:
mode:
Diffstat (limited to 'res/res_agi.c')
-rw-r--r--res/res_agi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/res/res_agi.c b/res/res_agi.c
index 8a142c14c..53cafd58c 100644
--- a/res/res_agi.c
+++ b/res/res_agi.c
@@ -1103,7 +1103,8 @@ static int handle_exec(struct ast_channel *chan, AGI *agi, int argc, char **argv
}
fdprintf(agi->fd, "200 result=%d\n", res);
- return res >= 0 ? RESULT_SUCCESS : RESULT_FAILURE;
+ /* Even though this is wrong, users are depending upon this result. */
+ return res;
}
static int handle_setcallerid(struct ast_channel *chan, AGI *agi, int argc, char **argv)