From b33eae98bfda227a908a0299169f83528c15977a Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 18 Jul 2018 19:06:32 -0600 Subject: [PATCH] Update call_center_queue_edit.php --- app/call_centers/call_center_queue_edit.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/call_centers/call_center_queue_edit.php b/app/call_centers/call_center_queue_edit.php index 7fe2366c8f..413d06fce9 100644 --- a/app/call_centers/call_center_queue_edit.php +++ b/app/call_centers/call_center_queue_edit.php @@ -224,6 +224,14 @@ unset($action_array[0]); $queue_timeout_data = implode($action_array); + //add the recording path if needed + if (file_exists($_SESSION['switch']['recordings']['dir'].'/'.$_SESSION['domain_name'].'/'.$queue_greeting)) { + $queue_greeting_path = $_SESSION['switch']['recordings']['dir'].'/'.$_SESSION['domain_name'].'/'.$queue_greeting; + } + else { + $queue_greeting_path = $queue_greeting; + } + //build the xml dialplan $dialplan_xml = "\n"; $dialplan_xml .= " \n"; @@ -232,7 +240,7 @@ $dialplan_xml .= " \n"; $dialplan_xml .= " \n"; $dialplan_xml .= " \n"; - $dialplan_xml .= " \n"; + $dialplan_xml .= " \n"; if (strlen($queue_cid_prefix) > 0) { $dialplan_xml .= " \n"; }