Add http_cache to IVR Menu.
This commit is contained in:
parent
b41bbe8d8d
commit
4312b05c50
|
|
@ -53,15 +53,18 @@
|
||||||
settings = settings(domain_uuid);
|
settings = settings(domain_uuid);
|
||||||
storage_type = "";
|
storage_type = "";
|
||||||
storage_path = "";
|
storage_path = "";
|
||||||
if (settings['voicemail'] ~= nil) then
|
if (settings['ivr_menu'] ~= nil) then
|
||||||
if (settings['voicemail']['storage_type'] ~= nil) then
|
if (settings['ivr_menu']['storage_type'] ~= nil) then
|
||||||
if (settings['voicemail']['storage_type']['text'] ~= nil) then
|
if (settings['ivr_menu']['storage_type']['text'] ~= nil) then
|
||||||
storage_type = settings['voicemail']['storage_type']['text'];
|
storage_type = settings['ivr_menu']['storage_type']['text'];
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if (settings['voicemail']['storage_path'] ~= nil) then
|
if (settings['ivr_menu']['storage_path'] ~= nil) then
|
||||||
if (settings['voicemail']['storage_path']['text'] ~= nil) then
|
if (settings['ivr_menu']['storage_path']['text'] ~= nil) then
|
||||||
storage_path = settings['voicemail']['storage_path']['text'];
|
storage_path = settings['ivr_menu']['storage_path']['text'];
|
||||||
|
storage_path = storage_path:gsub("${domain_name}", domain_name);
|
||||||
|
storage_path = storage_path:gsub("${voicemail_id}", voicemail_id);
|
||||||
|
storage_path = storage_path:gsub("${voicemail_dir}", voicemail_dir);
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
@ -253,7 +256,9 @@
|
||||||
end);
|
end);
|
||||||
end
|
end
|
||||||
elseif (storage_type == "http_cache") then
|
elseif (storage_type == "http_cache") then
|
||||||
|
--add the path to file name
|
||||||
|
ivr_menu_greet_long = storage_path.."/"..ivr_menu_greet_long;
|
||||||
|
ivr_menu_greet_short = storage_path.."/"..ivr_menu_greet_short;
|
||||||
end
|
end
|
||||||
|
|
||||||
--define the ivr menu
|
--define the ivr menu
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue