Merged revisions 71657 via svnmerge from
authorTilghman Lesher <tilghman@meg.abyt.es>
Mon, 25 Jun 2007 18:20:18 +0000 (18:20 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Mon, 25 Jun 2007 18:20:18 +0000 (18:20 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r71657 | tilghman | 2007-06-25 13:14:59 -0500 (Mon, 25 Jun 2007) | 10 lines

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: https://origsvn.digium.com/svn/asterisk/trunk@71658 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_agi.c

index 8dc8782..470d059 100644 (file)
@@ -1125,7 +1125,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)