Update index.lua
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user