提交 56293b49 authored 作者: Mathieu Rene's avatar Mathieu Rene

why didnt that work

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12532 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 829f642b
...@@ -169,7 +169,7 @@ static switch_bool_t limit_execute_sql_callback(switch_mutex_t *mutex, char *sql ...@@ -169,7 +169,7 @@ static switch_bool_t limit_execute_sql_callback(switch_mutex_t *mutex, char *sql
return ret; return ret;
} }
static switch_xml_config_string_options_t limit_config_dsn = { NULL, 0, "(.+?):(.+?):(.+)" }; static switch_xml_config_string_options_t limit_config_dsn = { NULL, 0, "[^:]+:[^:]+:[^:]+" };
static switch_xml_config_item_t config_settings[] = { static switch_xml_config_item_t config_settings[] = {
SWITCH_CONFIG_ITEM("odbc-dsn", SWITCH_CONFIG_STRING, 0, &globals.odbc_dsn, NULL, &limit_config_dsn, SWITCH_CONFIG_ITEM("odbc-dsn", SWITCH_CONFIG_STRING, 0, &globals.odbc_dsn, NULL, &limit_config_dsn,
...@@ -203,7 +203,7 @@ static switch_status_t do_config() ...@@ -203,7 +203,7 @@ static switch_status_t do_config()
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "ODBC IS NOT AVAILABLE!\n"); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "ODBC IS NOT AVAILABLE!\n");
#endif #endif
} }
if (switch_strlen_zero(globals.odbc_dsn) || switch_strlen_zero(odbc_user) || switch_strlen_zero(odbc_pass)) { if (switch_strlen_zero(globals.odbc_dsn) || switch_strlen_zero(odbc_user) || switch_strlen_zero(odbc_pass)) {
globals.dbname = "call_limit"; globals.dbname = "call_limit";
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论