From 3d2fba91bd0c51de792e698d500be83a33f96bf8 Mon Sep 17 00:00:00 2001 From: Peter Kozak Date: Tue, 16 Jul 2013 11:42:29 +0200 Subject: headers can be nil --- misc/freeswitch/scripts/configuration.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'misc/freeswitch') 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'; -- cgit v1.2.3