mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-08 08:51:50 +00:00
add fixes from mmurdock, thanks mike
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3914 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
7752eac905
commit
77c4a3da64
@ -420,7 +420,12 @@ static switch_status_t en_say_money(switch_core_session_t *session,
|
|||||||
if ((cents = strchr(sbuf, '.'))) {
|
if ((cents = strchr(sbuf, '.'))) {
|
||||||
*cents++ = '\0';
|
*cents++ = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* If positive sign - skip over" */
|
||||||
|
if (sbuf[0] == '+') {
|
||||||
|
dollars++;
|
||||||
|
}
|
||||||
|
|
||||||
/* If negative say "negative" */
|
/* If negative say "negative" */
|
||||||
if (sbuf[0] == '-') {
|
if (sbuf[0] == '-') {
|
||||||
say_file("negative.wav");
|
say_file("negative.wav");
|
||||||
@ -439,14 +444,20 @@ static switch_status_t en_say_money(switch_core_session_t *session,
|
|||||||
/* Say "and" */
|
/* Say "and" */
|
||||||
say_file("and.wav");
|
say_file("and.wav");
|
||||||
|
|
||||||
/* Say cents */
|
/* Say cents */
|
||||||
en_say_general_count(session, cents, type, method, args);
|
if (cents) {
|
||||||
if (atoi(cents) == 1) {
|
en_say_general_count(session, cents, type, method, args);
|
||||||
say_file("cent.wav");
|
if (atoi(cents) == 1) {
|
||||||
}
|
say_file("cent.wav");
|
||||||
else {
|
}
|
||||||
say_file("cents.wav");
|
else {
|
||||||
}
|
say_file("cents.wav");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
say_file("digits/0.wav");
|
||||||
|
say_file("cents.wav");
|
||||||
|
}
|
||||||
|
|
||||||
return SWITCH_STATUS_SUCCESS;
|
return SWITCH_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user