Use ring group destination confirm true when call screen is enabled

This commit is contained in:
FusionPBX 2024-09-20 13:17:20 -06:00 committed by GitHub
parent 8d81c5f2d7
commit c4baf4ad92
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -861,7 +861,9 @@ log = require "resources.functions.log".ring_group
end
--determine confirm prompt
if (destination_prompt == nil) then
if (ring_group_call_screen_enabled ~= nil and ring_group_call_screen_enabled == 'true') then
group_confirm = "group_confirm_key=exec,group_confirm_file=lua ".. scripts_dir:gsub('\\','/') .."/confirm.lua,confirm=true,";
elseif (destination_prompt == nil) then
group_confirm = "confirm=false,";
elseif (destination_prompt == "1") then
group_confirm = "group_confirm_key=exec,group_confirm_file=lua ".. scripts_dir:gsub('\\','/') .."/confirm.lua,confirm=true,";