summaryrefslogtreecommitdiff
path: root/misc/freeswitch/scripts/common
diff options
context:
space:
mode:
authorspag <spag@golwen.net>2013-01-09 11:06:49 +0100
committerspag <spag@golwen.net>2013-01-09 11:06:49 +0100
commit7b749f8b5f4e01852a25a7cd0a65a9c00476b60d (patch)
tree42aa6a381e892e866b6ceee09a24113ecc46ccb6 /misc/freeswitch/scripts/common
parent35a981aa271196adc5a265f52a5ed8b902cfa2c7 (diff)
read database configuration from odbc.ini
Diffstat (limited to 'misc/freeswitch/scripts/common')
-rw-r--r--misc/freeswitch/scripts/common/database.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/misc/freeswitch/scripts/common/database.lua b/misc/freeswitch/scripts/common/database.lua
index 3692f84..22a68fb 100644
--- a/misc/freeswitch/scripts/common/database.lua
+++ b/misc/freeswitch/scripts/common/database.lua
@@ -24,13 +24,13 @@ function Database.connect(self, database_name, user_name, password, host_name)
local database_driver = nil;
if not (database_name and user_name and password) then
require 'common.configuration_file'
- local config = common.configuration_file.get('/opt/freeswitch/scripts/ini/database.ini');
+ local config = common.configuration_file.get('/var/lib/freeswitch/.odbc.ini');
if config then
- database_driver = config[true].driver
- database_name = config[database_driver].database
- user_name = config[database_driver].user
- password = config[database_driver].password
- host_name = config[database_driver].host
+ database_driver = config.gemeinschaft.driver
+ database_name = config.gemeinschaft.DATABASE
+ user_name = config.gemeinschaft.USER
+ password = config.gemeinschaft.PASSWORD
+ host_name = config.gemeinschaft.HOST
end
end