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
This commit is contained in:
Russell Bryant
2005-04-05 09:52:05 +00:00
parent 8451fd7f7d
commit 90fea452ac
2 changed files with 3 additions and 4 deletions

View File

@@ -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

View File

@@ -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[])