diff options
-rw-r--r-- | res/res_agi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_agi.c b/res/res_agi.c index 4d5ede388..8a142c14c 100644 --- a/res/res_agi.c +++ b/res/res_agi.c @@ -1103,7 +1103,7 @@ static int handle_exec(struct ast_channel *chan, AGI *agi, int argc, char **argv } fdprintf(agi->fd, "200 result=%d\n", res); - return res; + return res >= 0 ? RESULT_SUCCESS : RESULT_FAILURE; } static int handle_setcallerid(struct ast_channel *chan, AGI *agi, int argc, char **argv) |