From: Jason Parker Date: Fri, 2 Nov 2007 16:51:08 +0000 (+0000) Subject: We need to make sure to specify a language to ast_fileexists, otherwise it may fail... X-Git-Tag: 1.4.14~69 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fc0439dde43a807c42ab4834b96961736c6c6406;p=thirdparty%2Fasterisk.git 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: https://origsvn.digium.com/svn/asterisk/branches/1.4@88283 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/say.c b/main/say.c index c5cda3eff5..2a1184b400 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))