diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-05-21 21:08:51 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-05-21 21:08:51 +0000 |
commit | edbb021e6f85b7fc64a3ba83dfa8dca5a56926f0 (patch) | |
tree | c1579d11e137733daa379f00c874e8024c646594 /apps | |
parent | f1414514faf46af046920f75933abb5838a48ded (diff) |
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: http://svn.digium.com/svn/asterisk/trunk@265090 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_queue.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index 366edf5c2..5692890ac 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -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); |