]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_callcenter: Fix Initial ODBC support
authorMarc Olivier Chouinard <mochouinard@mochouinard-laptop.(none)>
Mon, 13 Sep 2010 00:01:43 +0000 (20:01 -0400)
committerMarc Olivier Chouinard <mochouinard@mochouinard-laptop.(none)>
Mon, 13 Sep 2010 00:01:43 +0000 (20:01 -0400)
src/mod/applications/mod_callcenter/mod_callcenter.c

index e08757ba38f77874e653018406ce5faca51532de..874c6156fd0bf6df7c2b382b692787c5c377f1f6 100644 (file)
@@ -1259,7 +1259,7 @@ static switch_status_t load_config(void)
                        if (!strcasecmp(var, "debug")) {
                                globals.debug = atoi(val);
                        } else if (!strcasecmp(var, "odbc-dsn")) {
-                               globals.odbc_dsn = strdup(switch_xml_attr(param, "odbc-dsn"));
+                               globals.odbc_dsn = strdup(val);
 
                                if (!zstr(globals.odbc_dsn)) {
                                        if ((globals.odbc_user = strchr(globals.odbc_dsn, ':'))) {