Update recordings.lua
This commit is contained in:
@@ -107,6 +107,12 @@
|
|||||||
recording_name = session:getVariable("recording_name");
|
recording_name = session:getVariable("recording_name");
|
||||||
record_ext = session:getVariable("record_ext");
|
record_ext = session:getVariable("record_ext");
|
||||||
domain_name = session:getVariable("domain_name");
|
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
|
--select the recording number and set the recording name
|
||||||
if (recording_id == nil) then
|
if (recording_id == nil) then
|
||||||
@@ -156,8 +162,8 @@
|
|||||||
session:execute("record", storage_path .."/"..recording_name);
|
session:execute("record", storage_path .."/"..recording_name);
|
||||||
else
|
else
|
||||||
freeswitch.consoleLog("notice", "[recordings] ".. storage_type .. " ".. recordings_dir .."\n");
|
freeswitch.consoleLog("notice", "[recordings] ".. storage_type .. " ".. recordings_dir .."\n");
|
||||||
-- syntax is session:recordFile(file_name, max_len_secs, silence_threshold, silence_secs);
|
-- record,Record File,<path> [<time_limit_secs>] [<silence_thresh>] [<silence_hits>]
|
||||||
session:execute("record", "'"..recordings_dir.."/"..recording_name.."' 10800 500 500");
|
session:execute("record", "'"..recordings_dir.."/"..recording_name.."' "..time_limit_secs.." "..silence_thresh.." "..silence_hits.."");
|
||||||
end
|
end
|
||||||
|
|
||||||
--get the description of the previous recording
|
--get the description of the previous recording
|
||||||
|
|||||||
Reference in New Issue
Block a user