mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-22 12:52:33 +00:00
Merged revisions 265089 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r265089 | mmichelson | 2010-05-21 15:59:14 -0500 (Fri, 21 May 2010) | 8 lines Don't hang up on a queue caller if the file we attempt to play does not exist. This also fixes a documentation mistake in file.h that made my original attempt to correct this problem not work correctly. (closes issue #17061) Reported by: RoadKill ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@265090 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2346,6 +2346,10 @@ static int play_file(struct ast_channel *chan, const char *filename)
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!ast_fileexists(filename, NULL, chan->language)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
ast_stopstream(chan);
|
||||
|
||||
res = ast_streamfile(chan, filename, chan->language);
|
||||
|
Reference in New Issue
Block a user