From 5be40827e5698e63081a277ddf009ac70503ab13 Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Mon, 25 Jun 2007 18:12:37 +0000 Subject: [PATCH] Issue 10035 - handle_exec returns a result inconsistent with all of the other AGI commands git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@71656 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- res/res_agi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res/res_agi.c b/res/res_agi.c index 4d5ede388d..8a142c14cd 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)