Update index.lua

This commit is contained in:
FusionPBX
2019-06-03 08:24:13 -06:00
committed by GitHub
parent e0555de2d3
commit ce8ac1d3e2
@@ -237,8 +237,13 @@
record_path = recordings_dir .. "/" .. domain_name .. "/archive/" .. os.date("%Y/%b/%d"); record_path = recordings_dir .. "/" .. domain_name .. "/archive/" .. os.date("%Y/%b/%d");
record_path = record_path:gsub("\\", "/"); record_path = record_path:gsub("\\", "/");
--set the recording file --set the recording file name
if (session:ready()) then
record_name = session:getVariable("record_name");
if (not record_name) then
record_name = uuid .. "." .. record_ext; record_name = uuid .. "." .. record_ext;
end
end
---set the call_timeout to a higher value to prevent the early timeout of the ring group ---set the call_timeout to a higher value to prevent the early timeout of the ring group
if (session:ready()) then if (session:ready()) then