int in;
int x = 0;
int places[9] = { 0 };
- char sbuf[13] = "";
+ char sbuf[128] = "";
switch_status_t status;
+ if (method == SSM_ITERATED) {
+ if ((tosay = strip_commas(tosay, sbuf, sizeof(sbuf)))) {
+ char *p;
+ for (p = tosay; p && *p; p++) {
+ say_file("digits/%c.wav", *p);
+ }
+ } else {
+ switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Parse Error!\n");
+ return SWITCH_STATUS_GENERR;
+ }
+ return SWITCH_STATUS_SUCCESS;
+ }
+
if (!(tosay = strip_commas(tosay, sbuf, sizeof(sbuf))) || strlen(tosay) > 9) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Parse Error!\n");
return SWITCH_STATUS_GENERR;
return status;
}
break;
- case SSM_ITERATED:
- {
- char *p;
- for (p = tosay; p && *p; p++) {
- say_file("digits/%c.wav", *p);
- }
- }
- break;
default:
break;
}
}
-SWITCH_DECLARE(void) switch_cache_db_flush_handles(void)
-{
+SWITCH_DECLARE(void) switch_cache_db_flush_handles(void){
sql_close(switch_epoch_time_now(NULL) + SQL_CACHE_TIMEOUT + 1);
}