From 3b117a3d0d4df72da18af2aa2dbb3d321c3c0067 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Wed, 1 Apr 2015 08:14:03 +0000 Subject: [PATCH] Remove http_cache:// from the path and allow it to be defined in the storage path. --- resources/install/scripts/recordings.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/install/scripts/recordings.lua b/resources/install/scripts/recordings.lua index cc90e21bf6..0762e4d295 100644 --- a/resources/install/scripts/recordings.lua +++ b/resources/install/scripts/recordings.lua @@ -169,7 +169,7 @@ end if (storage_type == "base64") then array = explode("://", database["system"]); - local luasql = require "luasql.postgres" + local luasql = require "luasql.postgres"; local env = assert (luasql.postgres()); local dbh = env:connect(array[2]); res, serr = dbh:execute(sql); @@ -180,7 +180,7 @@ end elseif (storage_type == "http_cache") then freeswitch.consoleLog("notice", "[voicemail] ".. storage_type .. " ".. storage_path .."\n"); - session:execute("record", "http_cache://".. storage_path .."/"..recording_name); + session:execute("record", storage_path .."/"..recording_name); else mkdir(voicemail_dir.."/"..voicemail_id); -- syntax is session:recordFile(file_name, max_len_secs, silence_threshold, silence_secs);