From: Russell Bryant Date: Tue, 5 Apr 2005 09:52:05 +0000 (+0000) Subject: keep going even if file not found with GET DATA (bug #3878) X-Git-Tag: 1.0.11.1~161 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90fea452ac6a90e2dc42291c2638a1300b80020e;p=thirdparty%2Fasterisk.git keep going even if file not found with GET DATA (bug #3878) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@5403 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/CHANGES b/CHANGES index 94c71689e2..38fbdf3584 100755 --- a/CHANGES +++ b/CHANGES @@ -21,6 +21,8 @@ -- res_agi -- A fix has been added to prevent calls from being hung up when more than one call is executing an AGI script calling the GET DATA command. + -- AGI scripts will now continue to run even if a file was not found with the + GET DATA command. -- app_disa -- Fixed the timeout used when no password is set -- rtp diff --git a/res/res_agi.c b/res/res_agi.c index 8f96c8ca29..79ac894c94 100755 --- a/res/res_agi.c +++ b/res/res_agi.c @@ -561,10 +561,7 @@ static int handle_getdata(struct ast_channel *chan, AGI *agi, int argc, char *ar fdprintf(agi->fd, "200 result=-1\n"); else fdprintf(agi->fd, "200 result=%s\n", data); - if (res >= 0) - return RESULT_SUCCESS; - else - return RESULT_FAILURE; + return RESULT_SUCCESS; } static int handle_setcontext(struct ast_channel *chan, AGI *agi, int argc, char *argv[])