Fix call center queue sound_prefix

This commit is contained in:
FusionPBX
2026-03-21 01:37:35 +00:00
committed by GitHub
parent a5de85bdb0
commit 901c2505f9
2 changed files with 14 additions and 16 deletions

View File

@@ -124,9 +124,6 @@
domain_name = row.domain_name;
queue_name = row.queue_name;
queue_extension = row.queue_extension;
queue_language = row.queue_language;
queue_dialect = row.queue_dialect;
queue_voice = row.queue_voice;
queue_strategy = row.queue_strategy;
queue_moh_sound = row.queue_moh_sound;
queue_record_template = row.queue_record_template;
@@ -246,17 +243,10 @@
agent_busy_delay_time = row.agent_busy_delay_time;
agent_record = row.agent_record;
--set the language, voice and dialect
if (queue_language ~= nil and queue_dialect ~= nil and queue_voice ~= nil) then
sound_prefix = "sound_prefix="..sounds_dir.."/"..queue_language.."/"..queue_dialect .."/"..queue_voice;
else
sound_prefix = sounds_dir.."/en/us/callie";
end
--get and then set the complete agent_contact with the call_timeout and when necessary confirm
--confirm = "group_confirm_file=custom/press_1_to_accept_this_call.wav,group_confirm_key=1";
--if you change this variable also change app/call_center/call_center_agent_edit.php
confirm = ""..sound_prefix..",group_confirm_file=ivr/ivr-accept_reject_voicemail.wav,group_confirm_key=1,group_confirm_read_timeout=2000,leg_timeout="..agent_call_timeout;
confirm = "group_confirm_file=ivr/ivr-accept_reject_voicemail.wav,group_confirm_key=1,group_confirm_read_timeout=2000,leg_timeout="..agent_call_timeout;
local record = "";
if (agent_record == "true") then
record = string.format(",execute_on_pre_bridge='record_session %s/%s/archive/${strftime(%%Y)}/${strftime(%%b)}/${strftime(%%d)}/${uuid}.${record_ext}'", recordings_dir, domain_name)