]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
keep going even if file not found with GET DATA (bug #3878)
authorRussell Bryant <russell@russellbryant.com>
Tue, 5 Apr 2005 09:52:05 +0000 (09:52 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 5 Apr 2005 09:52:05 +0000 (09:52 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@5403 65c4cc65-6c06-0410-ace0-fbb531ad65f3

CHANGES
res/res_agi.c

diff --git a/CHANGES b/CHANGES
index 94c71689e286e1c0875fac2cfaa56e3efa250e9e..38fbdf3584eedfe35c3af7d7c782defc3502ee1b 100755 (executable)
--- 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
index 8f96c8ca2912a642ccc461fadd34e9c3e44e0494..79ac894c94deeabb85765809900f9203b375ee68 100755 (executable)
@@ -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[])