Revision
15379
Author
cseket
Date
2009-11-06 01:44:18 -0600 (Fri, 06 Nov 2009)

Log Message

after a little poll. it's more understandable

Modified Paths

Diff

Modified: freeswitch/branches/cseket/src/mod/say/mod_say_hu/mod_say_hu.c (15378 => 15379)


--- freeswitch/branches/cseket/src/mod/say/mod_say_hu/mod_say_hu.c	2009-11-05 23:19:20 UTC (rev 15378)
+++ freeswitch/branches/cseket/src/mod/say/mod_say_hu/mod_say_hu.c	2009-11-06 07:44:18 UTC (rev 15379)
@@ -94,9 +94,7 @@
 static switch_status_t play_group(switch_say_method_t method, int a, int b, int c, char *what, int tosay, switch_core_session_t *session, switch_input_args_t *args)
 {
 	if (a) {
-		if (a > 1 || (strcasecmp(what, "thousand") && (what || tosay > 1000))) {
-			say_file("digits/%d.wav", a);
-		}
+		say_file("digits/%d.wav", a);
 		say_file("digits/hundred.wav");
 	}
 
@@ -108,7 +106,8 @@
 		     say_file("digits/%d0.wav", b);
 		   }
 		} else {
-			say_file("digits/%d0-n.wav", b);
+			say_file("digits/%d%d.wav", b, c);
+			c = 0;
 		}
 	}
 
@@ -116,11 +115,7 @@
 		if (method == SSM_COUNTED) {
 			say_file("digits/h-%d.wav", c);
 		} else {
-			if (what && c == 2) {
-				say_file("digits/ket.wav");
-			} else {
-				say_file("digits/%d.wav", c);
-			}
+			say_file("digits/%d.wav", c);
 		}
 	}