mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-05-05 15:47:51 +00:00
FS-5767 --resolve allow odbc variable to be used for postgresql even if odbc is not present
This commit is contained in:
parent
d9216daedb
commit
743b094416
@ -463,7 +463,7 @@ static switch_status_t load_config(switch_bool_t reload)
|
|||||||
char *val = (char *) switch_xml_attr_soft(param, "value");
|
char *val = (char *) switch_xml_attr_soft(param, "value");
|
||||||
|
|
||||||
if (!strcasecmp(var, "odbc-dsn") && !zstr(val)) {
|
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);
|
switch_set_string(globals.odbc_dsn, val);
|
||||||
} else {
|
} else {
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "ODBC IS NOT AVAILABLE!\n");
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "ODBC IS NOT AVAILABLE!\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user