From 6ffd12adf4ddc7860f2d5486a7bb93ee983681cb Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 6 Aug 2018 12:18:22 -0600 Subject: [PATCH] Update confirm.lua --- resources/install/scripts/confirm.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/install/scripts/confirm.lua b/resources/install/scripts/confirm.lua index 82548fc66d..27cdb385d4 100644 --- a/resources/install/scripts/confirm.lua +++ b/resources/install/scripts/confirm.lua @@ -66,8 +66,8 @@ --if the screen file is found then set confirm to true if (domain_name ~= nil) then - call_screen_file = temp_dir .. "/" .. domain_name .. "-" .. caller_id_number .. "." .. record_ext; - if (file_exists(call_screen_file)) then + if (file_exists(temp_dir .. "/" .. domain_name .. "-" .. caller_id_number .. "." .. record_ext)) then + call_screen_file = temp_dir .. "/" .. domain_name .. "-" .. caller_id_number .. "." .. record_ext; confirm = "true"; end end @@ -81,7 +81,7 @@ min_digits = 1; max_digits = 1; digit = ''; - if (file_exists(call_screen_file)) then + if (call_screen_file ~= nil) then max_tries = "1"; digit = session:playAndGetDigits(min_digits, max_digits, max_tries, "500", "#", call_screen_file:gsub("\\","/"), "", "\\d+"); end