diff --git a/app/call_centers/call_center_queue_edit.php b/app/call_centers/call_center_queue_edit.php index 2bfc02e30c..3ddb01972e 100644 --- a/app/call_centers/call_center_queue_edit.php +++ b/app/call_centers/call_center_queue_edit.php @@ -195,7 +195,7 @@ if ($action == "update") { $call_center_queue_uuid = $_POST["call_center_queue_uuid"]; } - + //validate the token $token = new token; if (!$token->validate($_SERVER['PHP_SELF'])) { @@ -329,7 +329,7 @@ $array['call_center_queues'][0]['call_center_queue_uuid'] = $call_center_queue_uuid; $array['call_center_queues'][0]['dialplan_uuid'] = $dialplan_uuid; $array['call_center_queues'][0]['domain_uuid'] = $domain_uuid; - + $y = 0; if (!empty($_POST["call_center_tiers"])) { foreach ($_POST["call_center_tiers"] as $row) { @@ -1001,7 +1001,12 @@ echo " ".$text['label-record_template']."\n"; echo "\n"; echo "\n"; - $record_template = $_SESSION['switch']['recordings']['dir']."/".$_SESSION['domain_name']."/archive/\${strftime(%Y)}/\${strftime(%b)}/\${strftime(%d)}/\${uuid}.\${record_ext}"; + 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']; + } echo "