summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--res/res_agi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_agi.c b/res/res_agi.c
index 8dc878286..470d0599b 100644
--- a/res/res_agi.c
+++ b/res/res_agi.c
@@ -1125,7 +1125,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)