aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-25 18:12:37 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-25 18:12:37 +0000
commit86943460c3894b458ae56214f357132c076b76a4 (patch)
treee7d2a25a757dfe3e15bf8277641dc2f0701e391c /res
parentf4cf933a2b92f7f6cfc5d4cfe837881fd56a732b (diff)
Issue 10035 - handle_exec returns a result inconsistent with all of the other AGI commands
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@71656 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-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 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)