[Freeswitch-trunk] [commit] r6136 - freeswitch/trunk/src/mod/applications/mod_limit
Freeswitch SVN
anthm at freeswitch.org
Thu Nov 1 15:50:16 EDT 2007
Author: anthm
Date: Thu Nov 1 15:50:16 2007
New Revision: 6136
Modified:
freeswitch/trunk/src/mod/applications/mod_limit/mod_limit.c
Log:
update
Modified: freeswitch/trunk/src/mod/applications/mod_limit/mod_limit.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_limit/mod_limit.c (original)
+++ freeswitch/trunk/src/mod/applications/mod_limit/mod_limit.c Thu Nov 1 15:50:16 2007
@@ -24,12 +24,11 @@
* Contributor(s):
*
* Anthony Minessale II <anthmct at 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 @@
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, ':'))) {
More information about the Freeswitch-trunk
mailing list