From: Tilghman Lesher Date: Mon, 30 Jul 2007 18:40:54 +0000 (+0000) Subject: Revert change in revision 71656, even though it fixed a bug, because many people... X-Git-Tag: 1.2.24~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2cdedcbe947ba2da727f31ea17767b424a17930d;p=thirdparty%2Fasterisk.git Revert change in revision 71656, even though it fixed a bug, because many people were depending upon the (broken) behavior. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@77782 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_agi.c b/res/res_agi.c index 8a142c14cd..53cafd58c3 100644 --- a/res/res_agi.c +++ b/res/res_agi.c @@ -1103,7 +1103,8 @@ static int handle_exec(struct ast_channel *chan, AGI *agi, int argc, char **argv } fdprintf(agi->fd, "200 result=%d\n", res); - return res >= 0 ? RESULT_SUCCESS : RESULT_FAILURE; + /* Even though this is wrong, users are depending upon this result. */ + return res; } static int handle_setcallerid(struct ast_channel *chan, AGI *agi, int argc, char **argv)