diff options
author | Peter Kozak <spag@golwen.net> | 2013-07-16 11:42:29 +0200 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-07-16 11:42:29 +0200 |
commit | 3d2fba91bd0c51de792e698d500be83a33f96bf8 (patch) | |
tree | 07973a5f33392c27789e9af5c39b8d8e00a48ede /misc/freeswitch | |
parent | 4f689e5a0f326822eb65aa5d933c64541e306a23 (diff) |
headers can be nil
Diffstat (limited to 'misc/freeswitch')
-rw-r--r-- | misc/freeswitch/scripts/configuration.lua | 6 |
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'; |