From 743b094416a671bf81bd36266f9d0d4b7d3a5bfd Mon Sep 17 00:00:00 2001 From: Marc Olivier Chouinard Date: Thu, 12 Sep 2013 16:10:54 -0400 Subject: [PATCH] FS-5767 --resolve allow odbc variable to be used for postgresql even if odbc is not present --- src/mod/applications/mod_directory/mod_directory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/applications/mod_directory/mod_directory.c b/src/mod/applications/mod_directory/mod_directory.c index 6e0f7b2ef8..50c4701364 100644 --- a/src/mod/applications/mod_directory/mod_directory.c +++ b/src/mod/applications/mod_directory/mod_directory.c @@ -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");