[svn-commits] qwell: trunk r88284 - in /trunk: ./ main/say.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Nov 2 11:54:11 CDT 2007


Author: qwell
Date: Fri Nov  2 11:54:11 2007
New Revision: 88284

URL: http://svn.digium.com/view/asterisk?view=rev&rev=88284
Log:
Merged revisions 88283 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

(closes issue #11147)
........
r88283 | qwell | 2007-11-02 11:51:08 -0500 (Fri, 02 Nov 2007) | 4 lines

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:
    trunk/   (props changed)
    trunk/main/say.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/main/say.c
URL: http://svn.digium.com/view/asterisk/trunk/main/say.c?view=diff&rev=88284&r1=88283&r2=88284
==============================================================================
--- trunk/main/say.c (original)
+++ trunk/main/say.c Fri Nov  2 11:54:11 2007
@@ -126,7 +126,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))
@@ -206,7 +206,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))
@@ -256,7 +256,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 svn-commits mailing list