Make storage_path and storage_type = http_cache work (#3892)

* Make storage_path work

if storage_path was set, the script would fail. I have fixed it by removing the references to unset variables. I also made the recordings use the path.

* Update ivr.conf.lua

Add storage_path definition so storage_type of http_cache works correctly
This commit is contained in:
timando
2018-12-04 13:25:04 +10:00
committed by FusionPBX
parent d3374a0aeb
commit 804b7ca91e
2 changed files with 14 additions and 7 deletions

View File

@@ -95,7 +95,11 @@
local settings = Settings.new(dbh, domain_name, domain_uuid)
local storage_type = settings:get('recordings', 'storage_type', 'text')
local storage_path = settings:get('recordings', 'storage_path', 'text')
if (storage_path != nil then
storage_path = storage_path:gsub("${domain_name}", domain_name)
storage_path = storage_path:gsub("${domain_uuid}", domain_uuid)
end
--get the recordings from the database
ivr_menu_greet_long_is_base64 = false;
ivr_menu_greet_short_is_base64 = false;