From c317b518e0431db624f5e8e66aa00e7d0ff1a291 Mon Sep 17 00:00:00 2001 From: spag Date: Wed, 9 Jan 2013 19:26:53 +0100 Subject: set default odbc dsn --- misc/freeswitch/scripts/configuration.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/misc/freeswitch/scripts/configuration.lua b/misc/freeswitch/scripts/configuration.lua index d7fd105..d0e2268 100644 --- a/misc/freeswitch/scripts/configuration.lua +++ b/misc/freeswitch/scripts/configuration.lua @@ -47,6 +47,11 @@ function profile(database, sofia_ini, profile_name, index, domains, node_id) log:error('SOFIA_PROFILE ', index,' - name: ', profile_name, ' - no parameters'); return ''; end + + if tostring(profile_parameters['odbc-dsn']) == 'default' then + profile_parameters['odbc-dsn'] = 'gemeinschaft:' .. tostring(database.user_name) .. ':' .. tostring(database.password); + end + -- set local bind address if domains[index] then profile_parameters['sip-ip'] = domains[index]['host']; -- cgit v1.2.3