]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
why didnt that work
authorMathieu Rene <mrene@avgs.ca>
Mon, 9 Mar 2009 15:25:05 +0000 (15:25 +0000)
committerMathieu Rene <mrene@avgs.ca>
Mon, 9 Mar 2009 15:25:05 +0000 (15:25 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12532 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_limit/mod_limit.c

index ab6f356ad7791700bdf59e1165b93e5fbfaec5b7..de3288b8a4b2be8c6f3314909d70ae39265949da 100644 (file)
@@ -169,7 +169,7 @@ static switch_bool_t limit_execute_sql_callback(switch_mutex_t *mutex, char *sql
        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[] = {
        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()
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "ODBC IS NOT AVAILABLE!\n");
 #endif
        }
-
+       
 
        if (switch_strlen_zero(globals.odbc_dsn) || switch_strlen_zero(odbc_user) || switch_strlen_zero(odbc_pass)) {
                globals.dbname = "call_limit";