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"; }