mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 16:50:14 +00:00
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:
2
CHANGES
2
CHANGES
@@ -21,6 +21,8 @@
|
|||||||
-- res_agi
|
-- res_agi
|
||||||
-- A fix has been added to prevent calls from being hung up when more than one
|
-- 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.
|
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
|
-- app_disa
|
||||||
-- Fixed the timeout used when no password is set
|
-- Fixed the timeout used when no password is set
|
||||||
-- rtp
|
-- rtp
|
||||||
|
|||||||
@@ -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");
|
fdprintf(agi->fd, "200 result=-1\n");
|
||||||
else
|
else
|
||||||
fdprintf(agi->fd, "200 result=%s\n", data);
|
fdprintf(agi->fd, "200 result=%s\n", data);
|
||||||
if (res >= 0)
|
return RESULT_SUCCESS;
|
||||||
return RESULT_SUCCESS;
|
|
||||||
else
|
|
||||||
return RESULT_FAILURE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int handle_setcontext(struct ast_channel *chan, AGI *agi, int argc, char *argv[])
|
static int handle_setcontext(struct ast_channel *chan, AGI *agi, int argc, char *argv[])
|
||||||
|
|||||||
Reference in New Issue
Block a user