[asterisk-commits] mmichelson: branch 1.4 r169797 - /branches/1.4/main/say.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jan 21 16:14:52 CST 2009


Author: mmichelson
Date: Wed Jan 21 16:14:52 2009
New Revision: 169797

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=169797
Log:
Adding revision 169794 to 1.4 since 1.4 is also affected by the issue


Modified:
    branches/1.4/main/say.c

Modified: branches/1.4/main/say.c
URL: http://svn.digium.com/svn-view/asterisk/branches/1.4/main/say.c?view=diff&rev=169797&r1=169796&r2=169797
==============================================================================
--- branches/1.4/main/say.c (original)
+++ branches/1.4/main/say.c Wed Jan 21 16:14:52 2009
@@ -2216,11 +2216,6 @@
 					num -= ((num / 100) * 100);
 				} else if (num < 10000){
 					snprintf(buf, 10, "%d", num);
-					if (last_length - strlen(buf) > 1 && last_length != 0 && last_length % strlen(buf) > 0) {
-						last_length = strlen(buf);
-						playz++;
-						continue;
-					}
 					snprintf(fn, sizeof(fn), "digits/%d", (num / 1000));
 					playt++;
 					snprintf(buf, 10, "%d", num);
@@ -2231,9 +2226,6 @@
 						res = ast_say_number_full_tw(chan, num / 10000, ints, language, audiofd, ctrlfd);
 						if (res)
 							return res;
-						if (((num / 10000) % (num/100000)) == 0)
-							playz++;
-
 						snprintf(buf, 10, "%d", num);
 						ast_log(LOG_DEBUG, "Number '%d' %d %d\n", num, (int)strlen(buf), last_length);
 						num -= ((num / 10000) * 10000);




More information about the asterisk-commits mailing list