Modified: freeswitch/branches/cseket/src/mod/say/mod_say_hu/mod_say_hu.c (15312 => 15313)
--- freeswitch/branches/cseket/src/mod/say/mod_say_hu/mod_say_hu.c 2009-11-02 01:50:34 UTC (rev 15312)
+++ freeswitch/branches/cseket/src/mod/say/mod_say_hu/mod_say_hu.c 2009-11-02 08:01:08 UTC (rev 15313)
@@ -94,7 +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, "thousend") && (what || tosay > 1000))) {
+ if (a > 1 || (strcasecmp(what, "thousand") && (what || tosay > 1000))) {
say_file("digits/%d.wav", a);
}
say_file("digits/hundred.wav");
@@ -108,8 +108,7 @@
say_file("digits/%d0.wav", b);
}
} else {
- say_file("digits/%d%d.wav", b, c);
- c = 0;
+ say_file("digits/%d0-n.wav", b);
}
}
@@ -117,7 +116,9 @@
if (method == SSM_COUNTED) {
say_file("digits/h-%d.wav", c);
} else {
- if (a || b || c > 1) {
+ if (what && c == 2) {
+ say_file("digits/ket.wav");
+ } else {
say_file("digits/%d.wav", c);
}
}