]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_skinny: allow to work with native pgsql
authorNathan Neulinger <nneul@neulinger.org>
Wed, 31 Jul 2013 22:17:07 +0000 (17:17 -0500)
committerNathan Neulinger <nneul@neulinger.org>
Wed, 31 Jul 2013 22:17:07 +0000 (17:17 -0500)
src/mod/endpoints/mod_skinny/mod_skinny.c

index 165624a3033b298f353b1c8e27221bd0324f434d..dc83c472948dabcac213cf8855971686ed4da294 100644 (file)
@@ -1850,14 +1850,8 @@ switch_status_t skinny_profile_set(skinny_profile_t *profile, const char *var, c
                profile->keep_alive = atoi(val);
        } else if (!strcasecmp(var, "date-format")) {
                strncpy(profile->date_format, val, 6);
-       } else if (!strcasecmp(var, "odbc-dsn")) {
-               if (!zstr(val)) {
-                       if (switch_odbc_available()) {
-                               profile->odbc_dsn = switch_core_strdup(profile->pool, val);
-                       } else {
-                               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "ODBC IS NOT AVAILABLE!\n");
-                       }
-               }
+       } else if (!strcasecmp(var, "odbc-dsn") && !zstr(val)) {
+               profile->odbc_dsn = switch_core_strdup(profile->pool, val);
        } else if (!strcasecmp(var, "debug")) {
                profile->debug = atoi(val);
        } else if (!strcasecmp(var, "auto-restart")) {