diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-25 18:12:37 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-25 18:12:37 +0000 |
commit | 86943460c3894b458ae56214f357132c076b76a4 (patch) | |
tree | e7d2a25a757dfe3e15bf8277641dc2f0701e391c /res | |
parent | f4cf933a2b92f7f6cfc5d4cfe837881fd56a732b (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.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) |