MODAPP-380
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15984 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
8b6824ba24
commit
8aeed83995
|
@ -176,9 +176,22 @@ static switch_status_t en_say_general_count(switch_core_session_t *session,
|
|||
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;
|
||||
|
@ -207,14 +220,6 @@ static switch_status_t en_say_general_count(switch_core_session_t *session,
|
|||
return status;
|
||||
}
|
||||
break;
|
||||
case SSM_ITERATED:
|
||||
{
|
||||
char *p;
|
||||
for (p = tosay; p && *p; p++) {
|
||||
say_file("digits/%c.wav", *p);
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -144,8 +144,7 @@ static void sql_close(time_t prune)
|
|||
}
|
||||
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue