summaryrefslogtreecommitdiff
path: root/misc/freeswitch
diff options
context:
space:
mode:
authorspag <spag@golwen.net>2013-02-12 08:19:00 +0100
committerspag <spag@golwen.net>2013-02-12 08:19:00 +0100
commitd1145ad9d4f495d7416ed97e0dd3c17365990323 (patch)
tree044884668100ba911188cf20d67ede7cc0a23ab5 /misc/freeswitch
parent62ac01a8ea536718734bd911fc3642c0bd8b6bc7 (diff)
create profile template
Diffstat (limited to 'misc/freeswitch')
-rw-r--r--misc/freeswitch/scripts/configuration.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/misc/freeswitch/scripts/configuration.lua b/misc/freeswitch/scripts/configuration.lua
index 18f4ef2..9847cc9 100644
--- a/misc/freeswitch/scripts/configuration.lua
+++ b/misc/freeswitch/scripts/configuration.lua
@@ -63,7 +63,12 @@ function profile(database, sofia_ini, profile_name, index, domains, node_id)
require 'configuration.simple_xml'
local xml = configuration.simple_xml.SimpleXml:new();
- local parameters = sofia_ini['profile:' .. profile_name];
+ local profile_template = sofia_ini['profile'] or {};
+ local parameters = sofia_ini['profile:' .. profile_name] or {};
+
+ for key, value in pairs(profile_template) do
+ parameters[key] = parameters[key] or value;
+ end
if not parameters then
log:error('SOFIA_PROFILE ', index,' - name: ', profile_name, ' - no parameters');