aboutsummaryrefslogtreecommitdiffstats
path: root/main/say.c
diff options
context:
space:
mode:
authorqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-02 16:51:08 +0000
committerqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-02 16:51:08 +0000
commit75a6df99ed610eb7b8efe70fe82b077278283b9d (patch)
tree20706b59246ce96abef119df62d2f3e7f1a2df82 /main/say.c
parent9065f8fcc7045a3c5f3004a97b362e92155541ac (diff)
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/branches/1.4@88283 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/say.c')
-rw-r--r--main/say.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/say.c b/main/say.c
index c5cda3eff..2a1184b40 100644
--- a/main/say.c
+++ b/main/say.c
@@ -124,7 +124,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))
@@ -204,7 +204,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))
@@ -254,7 +254,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))