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))