Update recordings.lua
This commit is contained in:
parent
6e33df34fc
commit
a94e40484d
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue