]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5767 --resolve allow odbc variable to be used for postgresql even if odbc is not...
authorMarc Olivier Chouinard <mochouinard@moctel.com>
Thu, 12 Sep 2013 20:10:54 +0000 (16:10 -0400)
committerMarc Olivier Chouinard <mochouinard@moctel.com>
Thu, 12 Sep 2013 20:10:54 +0000 (16:10 -0400)
src/mod/applications/mod_directory/mod_directory.c

index 6e0f7b2ef80bea6fd5a55aedad5bb911368469c0..50c47013648fc7103934f5d9925b4b08c92e1dac 100644 (file)
@@ -463,7 +463,7 @@ static switch_status_t load_config(switch_bool_t reload)
                        char *val = (char *) switch_xml_attr_soft(param, "value");
 
                        if (!strcasecmp(var, "odbc-dsn") && !zstr(val)) {
-                               if (switch_odbc_available()) {
+                               if (switch_odbc_available() || switch_pgsql_available()) {
                                        switch_set_string(globals.odbc_dsn, val);
                                } else {
                                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "ODBC IS NOT AVAILABLE!\n");