]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5100 --resolve
authorJeff Lenk <jeff@jefflenk.com>
Fri, 22 Mar 2013 12:43:58 +0000 (07:43 -0500)
committerJeff Lenk <jeff@jefflenk.com>
Fri, 22 Mar 2013 12:44:22 +0000 (07:44 -0500)
src/mod/applications/mod_nibblebill/mod_nibblebill.c

index 296c730ba0f765ada5696094c7f0a37176bbefd7..cdf022b2b9b2f7308fe13974c5b91d37fd41631f 100755 (executable)
@@ -197,6 +197,11 @@ static switch_status_t nibblebill_load_config(void)
                                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "odbc_dsn is %s\n", val);
                                switch_safe_free(globals.odbc_dsn);
                                globals.odbc_dsn = strdup(val);
+                       } else if (!strcasecmp(var, "db_dsn") && !zstr(val)) {
+                               /* For backwards-compatibility */
+                               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "this nibblebill param(db_dsn) is deprecated and will be removed in 1.4 - odbc_dsn is %s\n", val);
+                               switch_safe_free(globals.odbc_dsn);
+                               globals.odbc_dsn = strdup(val);
                        } else if (!strcasecmp(var, "db_table")) {
                                set_global_db_table(val);
                        } else if (!strcasecmp(var, "db_column_cash")) {