Use setting call_center record_name
This commit is contained in:
parent
f35ddec748
commit
d4da6d0a93
|
|
@ -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 "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\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 " <select class='formfld' name='queue_record_template'>\n";
|
||||
if (!empty($queue_record_template)) {
|
||||
echo " <option value='".escape($queue_record_template)."' selected='selected' >".$text['option-true']."</option>\n";
|
||||
|
|
@ -1422,3 +1427,4 @@
|
|||
require_once "resources/footer.php";
|
||||
|
||||
?>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue