From b59b7ba98ac1a170af012b0213e51b42ee590f08 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 12 Jul 2024 11:32:12 -0600 Subject: [PATCH] Update page.lua If announce delay is true then add an option for a preset recording filename and length --- app/switch/resources/scripts/page.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/switch/resources/scripts/page.lua b/app/switch/resources/scripts/page.lua index 954293542f..6c41104dde 100644 --- a/app/switch/resources/scripts/page.lua +++ b/app/switch/resources/scripts/page.lua @@ -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