summaryrefslogtreecommitdiff
path: root/misc/freeswitch/scripts
diff options
context:
space:
mode:
authorspag <spag@golwen.net>2013-01-10 10:04:18 +0100
committerspag <spag@golwen.net>2013-01-10 10:04:18 +0100
commit957e0b70fc7500ca7eac9eb385d29e8c395198f7 (patch)
treef9fa90b9d8396c4881acc522338f085ef2dc749e /misc/freeswitch/scripts
parentedd484c7936db3995e0e8e2bd93b6115aa7554fa (diff)
post_load_switch.conf added
Diffstat (limited to 'misc/freeswitch/scripts')
-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');