summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-12-31 21:52:56 +0000
committerMark Spencer <markster@digium.com>2004-12-31 21:52:56 +0000
commita2e70340b85d7b59dafd4b74d8042c96cdd5bd61 (patch)
treefa47b703f2ced85f45937d6b791c251473b96d60 /res
parent974ecf7830fa87760b0c099bd7f8377b389007ca (diff)
Don't die when a file is missing (bug #3212)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4623 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res')
-rwxr-xr-xres/res_agi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/res/res_agi.c b/res/res_agi.c
index 807b3a336..5cbc138f0 100755
--- a/res/res_agi.c
+++ b/res/res_agi.c
@@ -433,8 +433,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);