Update call_center_queue_edit.php
This commit is contained in:
parent
71123be725
commit
9a6c8c68cb
|
|
@ -649,6 +649,14 @@
|
||||||
$call_center_queue_uuid = null;
|
$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
|
//show the content
|
||||||
if (permission_exists('recording_play') || permission_exists('recording_download')) {
|
if (permission_exists('recording_play') || permission_exists('recording_download')) {
|
||||||
echo "<script type='text/javascript' language='JavaScript'>\n";
|
echo "<script type='text/javascript' language='JavaScript'>\n";
|
||||||
|
|
@ -1001,15 +1009,9 @@
|
||||||
echo " ".$text['label-record_template']."\n";
|
echo " ".$text['label-record_template']."\n";
|
||||||
echo "</td>\n";
|
echo "</td>\n";
|
||||||
echo "<td class='vtable' align='left'>\n";
|
echo "<td class='vtable' align='left'>\n";
|
||||||
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";
|
echo " <select class='formfld' name='queue_record_template'>\n";
|
||||||
if (!empty($queue_record_template)) {
|
if (!empty($queue_record_template)) {
|
||||||
echo " <option value='".escape($queue_record_template)."' selected='selected' >".$text['option-true']."</option>\n";
|
echo " <option value='".escape($record_template)."' selected='selected' >".$text['option-true']."</option>\n";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
echo " <option value='".escape($record_template)."'>".$text['option-true']."</option>\n";
|
echo " <option value='".escape($record_template)."'>".$text['option-true']."</option>\n";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue