[asterisk-commits] qwell: branch 1.4 r88283 - /branches/1.4/main/say.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Nov 2 11:51:09 CDT 2007


Author: qwell
Date: Fri Nov  2 11:51:08 2007
New Revision: 88283

URL: http://svn.digium.com/view/asterisk?view=rev&rev=88283
Log:
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

Modified:
    branches/1.4/main/say.c

Modified: branches/1.4/main/say.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/say.c?view=diff&rev=88283&r1=88282&r2=88283
==============================================================================
--- branches/1.4/main/say.c (original)
+++ branches/1.4/main/say.c Fri Nov  2 11:51:08 2007
@@ -124,7 +124,7 @@
 			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 @@
 			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 @@
 			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))




More information about the asterisk-commits mailing list