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