Update recordings.lua (#3937)

Bug fix. Allow for nil and blank entries.
This commit is contained in:
konradSC
2018-12-07 14:13:05 -05:00
committed by FusionPBX
parent 108356bb59
commit ad56d76309

View File

@@ -271,7 +271,7 @@ if ( session:ready() ) then
recordings_dir = recordings_dir .. "/"..domain_name;
--if a recording directory is specified, use that instead
if storage_path ~= nil then recordings_dir = storage_path; end
if (storage_path ~= nil and string.len(storage_path) > 0) then recordings_dir = storage_path; end
--set the sounds path for the language, dialect and voice
default_language = session:getVariable("default_language");