From: Automerge Script Date: Mon, 25 Jun 2007 19:27:59 +0000 (+0000) Subject: automerge commit X-Git-Tag: 1.2.20-netsec~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3c2b96ef767b47ceef1b4d0e5e88aeafd219676;p=thirdparty%2Fasterisk.git automerge commit git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@71703 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_agi.c b/res/res_agi.c index 4d5ede388d..8a142c14cd 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)