Pre-define the variables for the ivr menu.
This commit is contained in:
@@ -51,16 +51,19 @@
|
|||||||
--settings
|
--settings
|
||||||
dofile(scripts_dir.."/resources/functions/settings.lua");
|
dofile(scripts_dir.."/resources/functions/settings.lua");
|
||||||
settings = settings(domain_uuid);
|
settings = settings(domain_uuid);
|
||||||
|
storage_type = "";
|
||||||
if (settings['recordings']['storage_type'] ~= nil) then
|
if (settings['recordings']['storage_type'] ~= nil) then
|
||||||
if (settings['recordings']['storage_type']['text'] ~= nil) then
|
if (settings['recordings']['storage_type']['text'] ~= nil) then
|
||||||
storage_type = settings['recordings']['storage_type']['text'];
|
storage_type = settings['recordings']['storage_type']['text'];
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
storage_path = "";
|
||||||
if (settings['recordings']['storage_path'] ~= nil) then
|
if (settings['recordings']['storage_path'] ~= nil) then
|
||||||
if (settings['recordings']['storage_path']['text'] ~= nil) then
|
if (settings['recordings']['storage_path']['text'] ~= nil) then
|
||||||
storage_path = settings['recordings']['storage_path']['text'];
|
storage_path = settings['recordings']['storage_path']['text'];
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
temp_dir = "";
|
||||||
if (settings['server']['temp'] ~= nil) then
|
if (settings['server']['temp'] ~= nil) then
|
||||||
if (settings['server']['temp']['dir'] ~= nil) then
|
if (settings['server']['temp']['dir'] ~= nil) then
|
||||||
temp_dir = settings['server']['temp']['dir'];
|
temp_dir = settings['server']['temp']['dir'];
|
||||||
|
|||||||
Reference in New Issue
Block a user