Update recordings.lua

This commit is contained in:
FusionPBX 2019-08-17 14:18:25 -06:00 committed by GitHub
parent 6e33df34fc
commit a94e40484d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 6 deletions

View File

@ -107,6 +107,12 @@
recording_name = session:getVariable("recording_name");
record_ext = session:getVariable("record_ext");
domain_name = session:getVariable("domain_name");
time_limit_secs = session:getVariable("time_limit_secs");
silence_thresh = session:getVariable("silence_thresh");
silence_hits = session:getVariable("silence_hits");
if (not time_limit_secs) then time_limit_secs = '10800'; end
if (not default_dialect) then default_dialect = '200'; end
if (not default_voice) then default_voice = '10'; end
--select the recording number and set the recording name
if (recording_id == nil) then
@ -156,8 +162,8 @@
session:execute("record", storage_path .."/"..recording_name);
else
freeswitch.consoleLog("notice", "[recordings] ".. storage_type .. " ".. recordings_dir .."\n");
-- syntax is session:recordFile(file_name, max_len_secs, silence_threshold, silence_secs);
session:execute("record", "'"..recordings_dir.."/"..recording_name.."' 10800 500 500");
-- record,Record File,<path> [<time_limit_secs>] [<silence_thresh>] [<silence_hits>]
session:execute("record", "'"..recordings_dir.."/"..recording_name.."' "..time_limit_secs.." "..silence_thresh.." "..silence_hits.."");
end
--get the description of the previous recording