summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-07-16 11:42:29 +0200
committerPeter Kozak <spag@golwen.net>2013-07-16 11:42:29 +0200
commit3d2fba91bd0c51de792e698d500be83a33f96bf8 (patch)
tree07973a5f33392c27789e9af5c39b8d8e00a48ede
parent4f689e5a0f326822eb65aa5d933c64541e306a23 (diff)
headers can be nil
-rw-r--r--misc/freeswitch/scripts/configuration.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/misc/freeswitch/scripts/configuration.lua b/misc/freeswitch/scripts/configuration.lua
index 2486565..5874752 100644
--- a/misc/freeswitch/scripts/configuration.lua
+++ b/misc/freeswitch/scripts/configuration.lua
@@ -189,10 +189,10 @@ function conf_conference(database)
local config = common.configuration_table.get(database, 'conferences');
local profiles = nil;
- local event_name = params:getHeader("Event-Name")
+ local event_name = params:getHeader("Event-Name") or '';
if event_name == 'COMMAND' then
- local conf_name = params:getHeader('conf_name');
- local profile_name = params:getHeader('profile_name');
+ local conf_name = params:getHeader('conf_name') or '';
+ local profile_name = params:getHeader('profile_name') or '';
if conf_name:find('^conference%d+') then
require 'common.conference';