]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
update
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 1 Nov 2007 19:50:16 +0000 (19:50 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 1 Nov 2007 19:50:16 +0000 (19:50 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6136 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_limit/mod_limit.c

index 4ee4dbc9b73ef7a38739ed55bfd817ad3bcbbaa7..da450f1ad83032929b452e45acb2b119c727805b 100644 (file)
  * Contributor(s):
  * 
  * Anthony Minessale II <anthmct@yahoo.com>
- * Neal Horman <neal at wanlink dot com>
  *
- *
- * mod_limit.c -- Framework Demo Module
+ * mod_limit.c -- Resource Limit Module
  *
  */
+
 #include <switch.h>
 #ifdef SWITCH_HAVE_ODBC
 #include <switch_odbc.h>
@@ -179,12 +178,13 @@ static switch_status_t do_config()
     
        if ((settings = switch_xml_child(cfg, "settings"))) {
                for (param = switch_xml_child(settings, "param"); param; param = param->next) {
-                       char *var = (char *) switch_xml_attr_soft(param, "name");
-                       char *val = (char *) switch_xml_attr_soft(param, "value");
+                       char *var = NULL;
+            char *val = NULL;
             
-                       if (!strcasecmp(var, "debug")) {
-                
-            } else if (!strcasecmp(var, "odbc-dsn")) {
+            var = (char *) switch_xml_attr_soft(param, "name");
+            val = (char *) switch_xml_attr_soft(param, "value");
+
+            if (!strcasecmp(var, "odbc-dsn")) {
 #ifdef SWITCH_HAVE_ODBC
                 globals.odbc_dsn = switch_core_strdup(globals.pool, val);
                 if ((odbc_user = strchr(globals.odbc_dsn, ':'))) {