Make sure AGI continues even when files aren't there (bug #3862)
authorMark Spencer <markster@digium.com>
Sat, 26 Mar 2005 05:33:48 +0000 (05:33 +0000)
committerMark Spencer <markster@digium.com>
Sat, 26 Mar 2005 05:33:48 +0000 (05:33 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5263 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_agi.c

index 2bbfdd9..a5537d4 100755 (executable)
@@ -510,7 +510,7 @@ static int handle_getoption(struct ast_channel *chan, AGI *agi, int argc, char *
         if(!fs){
                 fdprintf(agi->fd, "200 result=%d endpos=%ld\n", 0, sample_offset);
                 ast_log(LOG_WARNING, "Unable to open %s\n", argv[2]);
-                return RESULT_FAILURE;
+               return RESULT_SUCCESS;
         }
        if (option_verbose > 2)
                ast_verbose(VERBOSE_PREFIX_3 "Playing '%s' (escape_digits=%s) (timeout %d)\n", argv[2], edigits, timeout);