Update page.lua

If announce delay is true then add an option for a preset recording filename and length
This commit is contained in:
FusionPBX 2024-07-12 11:32:12 -06:00 committed by GitHub
parent 3bed9c8a5e
commit b59b7ba98a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 1 deletions

View File

@ -188,8 +188,15 @@ if ( session:ready() ) then
flags = "flags{}";
end
--if annouce delay is active then prompt for recording
--if announce delay is true then an option for a preset recording filename and length
if (delay == "true") then
recording_filename = session:getVariable("recording_filename");
recording_length = session:getVariable("recording_length");
dtmf_entered = 1;
end
--if announce delay is active and audio file is not provided then prompt for recording
if (delay == "true" and recording_filename == nil and recording_length == nil) then
--callback function for the delayed recording
function onInputCBF(s, _type, obj, arg)
local k, v = nil, nil