summaryrefslogtreecommitdiff
path: root/misc/freeswitch/scripts/configuration.lua
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-10 10:35:59 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-10 10:35:59 +0100
commitc0c87dc9a80d7bf7f6dd7a779a6519a0e1425c5c (patch)
treee70818437f487574f481ab8188377e85e18a2f96 /misc/freeswitch/scripts/configuration.lua
parent70c436c52c76cf866b03fcab6bc43437c9490cd1 (diff)
parent120b8b444b10b0d42c9ddc773a48f3210f316e59 (diff)
Merge branch 'develop' of github.com:amooma/GS5 into develop
Diffstat (limited to 'misc/freeswitch/scripts/configuration.lua')
-rw-r--r--misc/freeswitch/scripts/configuration.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/misc/freeswitch/scripts/configuration.lua b/misc/freeswitch/scripts/configuration.lua
index d0e2268..41c1523 100644
--- a/misc/freeswitch/scripts/configuration.lua
+++ b/misc/freeswitch/scripts/configuration.lua
@@ -125,6 +125,13 @@ function conf_conference(database)
end
end
+function conf_post_switch(database)
+ require 'common.configuration_table';
+ local parameters = common.configuration_table.get(database, 'post_load_switch', 'settings');
+
+ XML_STRING = xml:document(xml:generic{name = 'post_load_switch.conf', parameters = parameters});
+end
+
function directory_sip_account(database)
local key = params:getHeader('key');
@@ -213,6 +220,8 @@ if XML_REQUEST.section == 'configuration' and XML_REQUEST.tag_name == 'configura
conf_sofia(database);
elseif XML_REQUEST.key_value == "conference.conf" then
conf_conference(database);
+ elseif XML_REQUEST.key_value == "post_load_switch.conf" then
+ conf_post_switch(database);
end
elseif XML_REQUEST.section == 'directory' and XML_REQUEST.tag_name == '' then
log:debug('SIP_ACCOUNT_DIRECTORY - initialization phase');