提交 8aeed839 authored 作者: Anthony Minessale's avatar Anthony Minessale

MODAPP-380

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15984 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 8b6824ba
...@@ -176,9 +176,22 @@ static switch_status_t en_say_general_count(switch_core_session_t *session, ...@@ -176,9 +176,22 @@ static switch_status_t en_say_general_count(switch_core_session_t *session,
int in; int in;
int x = 0; int x = 0;
int places[9] = { 0 }; int places[9] = { 0 };
char sbuf[13] = ""; char sbuf[128] = "";
switch_status_t status; 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) { if (!(tosay = strip_commas(tosay, sbuf, sizeof(sbuf))) || strlen(tosay) > 9) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Parse Error!\n"); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Parse Error!\n");
return SWITCH_STATUS_GENERR; return SWITCH_STATUS_GENERR;
...@@ -207,14 +220,6 @@ static switch_status_t en_say_general_count(switch_core_session_t *session, ...@@ -207,14 +220,6 @@ static switch_status_t en_say_general_count(switch_core_session_t *session,
return status; return status;
} }
break; break;
case SSM_ITERATED:
{
char *p;
for (p = tosay; p && *p; p++) {
say_file("digits/%c.wav", *p);
}
}
break;
default: default:
break; break;
} }
......
...@@ -144,8 +144,7 @@ static void sql_close(time_t prune) ...@@ -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); sql_close(switch_epoch_time_now(NULL) + SQL_CACHE_TIMEOUT + 1);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论