char sbuf[16] = ""; /* enough for 999,999,999,999.99 (w/o the commas or leading $) */
char *dollars = NULL;
char *cents = NULL;
+ switch_status_t status;
if (strlen(tosay) > 15 || !switch_strip_nonnumerics(tosay, sbuf, sizeof(sbuf)-1)) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Parse Error!\n");
}
/* Say dollar amount */
- fr_say_general_count(session, dollars, say_args, args);
+ if (( status = fr_say_general_count(session, dollars, say_args, args)) != SWITCH_STATUS_SUCCESS) {
+ return status;
+ }
if (atoi(dollars) == 1) {
say_file("currency/dollar.wav");
} else {
/* Say cents */
if (cents) {
- fr_say_general_count(session, cents, say_args, args);
+ if (( status = fr_say_general_count(session, cents, say_args, args)) != SWITCH_STATUS_SUCCESS) {
+ return status;
+ }
if (atoi(cents) == 1) {
say_file("currency/cent.wav");
} else {
{
char sbuf[16] = "";
char *forint;
+ switch_status_t status;
if (strlen(tosay) > 15 || !switch_strip_nonnumerics(tosay, sbuf, sizeof(sbuf)-1)) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Parse Error!\n");
forint++;
}
- hu_say_general_count(session, forint, say_args, args);
+ if (( status = hu_say_general_count(session, forint, say_args, args)) != SWITCH_STATUS_SUCCESS ) {
+ return status;
+ }
say_file("currency/forint.wav");
return SWITCH_STATUS_SUCCESS;
char sbuf[16] = ""; /* enough for 999,999,999,999.99 (w/o the commas or leading $) */
char *dollars = NULL;
char *cents = NULL;
+ switch_status_t status;
if (strlen(tosay) > 15 || !switch_strip_nonnumerics(tosay, sbuf, sizeof(sbuf)-1)) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Parse Error!\n");
}
/* Say dollar amount */
- it_say_general_count(session, dollars, say_args, args);
+ if (( status = it_say_general_count(session, dollars, say_args, args) ) != SWITCH_STATUS_SUCCESS ) {
+ return status;
+ }
+
if (atoi(dollars) == 1) {
say_file("currency/dollar.wav");
} else {
/* Say cents */
if (cents) {
- it_say_general_count(session, cents, say_args, args);
+ if (( status = it_say_general_count(session, cents, say_args, args) ) != SWITCH_STATUS_SUCCESS ) {
+ return status;
+ }
if (atoi(cents) == 1) {
say_file("currency/cent.wav");
} else {
char sbuf[16] = ""; /* enough for 999,999,999,999.99 (w/o the commas or leading $) */
char *dollars = NULL;
char *cents = NULL;
+ switch_status_t status;
if (strlen(tosay) > 15 || !switch_strip_nonnumerics(tosay, sbuf, sizeof(sbuf)-1)) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Parse Error!\n");
}
/* Say dollar amount */
- nl_say_general_count(session, dollars, say_args, args);
+ if (( status = nl_say_general_count(session, dollars, say_args, args)) != SWITCH_STATUS_SUCCESS ) {
+ return status;
+ }
+
if (atoi(dollars) == 1) {
say_file("currency/dollar.wav");
} else {
/* Say cents */
if (cents) {
- nl_say_general_count(session, cents, say_args, args);
+ if (( status = nl_say_general_count(session, cents, say_args, args)) != SWITCH_STATUS_SUCCESS) {
+ return status;
+ }
if (atoi(cents) == 1) {
say_file("currency/cent.wav");
} else {
char sbuf[16] = ""; /* enough for 999,999,999,999.99 (w/o the commas or leading $) */
char *dollars = NULL;
char *cents = NULL;
+ switch_status_t status;
if (strlen(tosay) > 15 || !switch_strip_nonnumerics(tosay, sbuf, sizeof(sbuf)-1)) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Parse Error!\n");
}
/* Say dollar amount */
- th_say_general_count(session, dollars, say_args, args);
+ if (( status = th_say_general_count(session, dollars, say_args, args)) != SWITCH_STATUS_SUCCESS ) {
+ return status;
+ }
+
say_file("currency/dollar.wav");
/* Say cents */
if (cents) {
- th_say_general_count(session, cents, say_args, args);
+ if (( status = th_say_general_count(session, cents, say_args, args)) != SWITCH_STATUS_SUCCESS ) {
+ return status;
+ }
} else {
say_file("digits/0.wav");
}