aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_agi.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-25 18:14:59 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-25 18:14:59 +0000
commit712b350be1fb16d2c10ad3c9fd7787b6221b51e5 (patch)
treeb4209f9b16aaf37d0d0fe08df5ee2f195d6e9466 /res/res_agi.c
parentb567a5f137687a747c59df66e092c2260973fd81 (diff)
Merged revisions 71656 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r71656 | tilghman | 2007-06-25 13:12:37 -0500 (Mon, 25 Jun 2007) | 2 lines 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.4@71657 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_agi.c')
-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 4c16b2ab2..0c5174d0f 100644
--- a/res/res_agi.c
+++ b/res/res_agi.c
@@ -1110,7 +1110,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)