From: Russell Bryant Date: Mon, 3 Jan 2005 18:19:05 +0000 (+0000) Subject: don't exit AGI when file not found to stream (bug #3212) X-Git-Tag: 1.0.11.1~302 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1db571cb377ddc8870cc17796f4cf0f92fa83593;p=thirdparty%2Fasterisk.git don't exit AGI when file not found to stream (bug #3212) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4648 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_agi.c b/res/res_agi.c index 7325d781b1..dac64bc489 100755 --- a/res/res_agi.c +++ b/res/res_agi.c @@ -432,8 +432,7 @@ static int handle_streamfile(struct ast_channel *chan, AGI *agi, int argc, char fs = ast_openstream(chan, argv[2], chan->language); 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; } ast_seekstream(fs, 0, SEEK_END); max_length = ast_tellstream(fs);