diff options
author | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-02 16:54:11 +0000 |
---|---|---|
committer | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-02 16:54:11 +0000 |
commit | 7e29240985acd580f71985748d7f189d5ebccd2a (patch) | |
tree | b544b3a8fd0deb59990f6a606aa068fab2479a54 /main/say.c | |
parent | 82ccaa3bace6cb69f74d172b567b722f2e036a12 (diff) |
Merged revisions 88283 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
(closes issue #11147)
........
r88283 | qwell | 2007-11-02 11:51:08 -0500 (Fri, 02 Nov 2007) | 4 lines
We need to make sure to specify a language to ast_fileexists, otherwise it may fail for anything besides en
Issue 11147, fix discovered by both citats and myself (independently), with input from Corydon76
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88284 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/say.c')
-rw-r--r-- | main/say.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/say.c b/main/say.c index f0e30cd2d..92ce23009 100644 --- a/main/say.c +++ b/main/say.c @@ -126,7 +126,7 @@ static int say_character_str_full(struct ast_channel *chan, const char *str, con fnbuf[8] = ltr; fn = fnbuf; } - if (fn && ast_fileexists(fn, NULL, NULL) > 0) { + if (fn && ast_fileexists(fn, NULL, lang) > 0) { res = ast_streamfile(chan, fn, lang); if (!res) { if ((audiofd > -1) && (ctrlfd > -1)) @@ -206,7 +206,7 @@ static int say_phonetic_str_full(struct ast_channel *chan, const char *str, cons fnbuf[9] = ltr; fn = fnbuf; } - if (fn && ast_fileexists(fn, NULL, NULL) > 0) { + if (fn && ast_fileexists(fn, NULL, lang) > 0) { res = ast_streamfile(chan, fn, lang); if (!res) { if ((audiofd > -1) && (ctrlfd > -1)) @@ -256,7 +256,7 @@ static int say_digit_str_full(struct ast_channel *chan, const char *str, const c fn = fnbuf; break; } - if (fn && ast_fileexists(fn, NULL, NULL) > 0) { + if (fn && ast_fileexists(fn, NULL, lang) > 0) { res = ast_streamfile(chan, fn, lang); if (!res) { if ((audiofd > -1) && (ctrlfd > -1)) |