提交 af7e7fef authored 作者: Mathieu Rene's avatar Mathieu Rene

MODAPP-317

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15424 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 c076ba5c
...@@ -91,37 +91,67 @@ static switch_status_t es_spell(switch_core_session_t *session, char *tosay, swi ...@@ -91,37 +91,67 @@ static switch_status_t es_spell(switch_core_session_t *session, char *tosay, swi
return SWITCH_STATUS_SUCCESS; return SWITCH_STATUS_SUCCESS;
} }
static switch_status_t play_group(switch_say_method_t method, int a, int b, int c, char *what, switch_core_session_t *session, switch_input_args_t *args) static switch_status_t play_group(switch_say_method_t method, int a, int b, int c, char *what, switch_core_session_t *session,switch_input_args_t *args)
{ {
if (a) {
if (a) { switch(a) {
say_file("digits/%d.wav", a); case 1:
say_file("digits/hundred.wav"); if (b || c) {
} say_file("digits/hundred.wav");
} else {
if (b) { say_file("digits/100.wav");
if (b > 1) { }
say_file("digits/%d0.wav", b); break;
} else { case 5:
say_file("digits/%d%d.wav", b, c); say_file("digits/500.wav");
c = 0; break;
} case 7:
} say_file("digits/700.wav");
break;
if (c) { case 9:
if (method == SSM_COUNTED) { say_file("digits/900.wav");
say_file("digits/h-%d.wav", c); break;
} else { default:
say_file("digits/%d.wav", c); say_file("digits/%d.wav", a);
} say_file("digits/hundred.wav");
} break;
}
if (what && (a || b || c)) { }
say_file(what);
} if (b) {
if (b > 1) {
return SWITCH_STATUS_SUCCESS; switch (b) {
} case 2: if (c) {
say_file("digits/veinti.wav");
} else {
say_file("digits/20.wav");
}
break;
default:
say_file("digits/%d0.wav", b);
if (c)
{
say_file("currency/and.wav");
}
break;
}
} else {
say_file("digits/%d%d.wav", b, c);
c = 0;
}
}
if (c) {
if (method == SSM_COUNTED) {
say_file("digits/h-%d.wav", c);
} else {
say_file("digits/%d.wav", c);
}
}
if (what && (a || b || c)) {
say_file(what);
}
return SWITCH_STATUS_SUCCESS;
}
static char *strip_commas(char *in, char *out, switch_size_t len) static char *strip_commas(char *in, char *out, switch_size_t len)
{ {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论