diff --git a/app/call_centers/call_center_queue_edit.php b/app/call_centers/call_center_queue_edit.php index 3ddb01972e..c17dd2781c 100644 --- a/app/call_centers/call_center_queue_edit.php +++ b/app/call_centers/call_center_queue_edit.php @@ -649,6 +649,14 @@ $call_center_queue_uuid = null; } +//set the record_template + if (empty($_SESSION['call_center']['record_name']['text'])) { + $record_template = $_SESSION['switch']['recordings']['dir']."/".$_SESSION['domain_name']."/archive/\${strftime(%Y)}/\${strftime(%b)}/\${strftime(%d)}/\${uuid}.\${record_ext}"; + } + else { + $record_template = $_SESSION['switch']['recordings']['dir']."/".$_SESSION['domain_name']."/archive/".$_SESSION['call_center']['record_name']['text']; + } + //show the content if (permission_exists('recording_play') || permission_exists('recording_download')) { echo "