mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
[call_recordings] Add destination to view (#6601)
This commit is contained in:
@@ -31,7 +31,7 @@ if ($domains_processed == 1) {
|
||||
$database->execute("DROP VIEW view_call_recordings;", null);
|
||||
$sql = "CREATE VIEW view_call_recordings AS ( \n";
|
||||
$sql .= " select domain_uuid, xml_cdr_uuid as call_recording_uuid, \n";
|
||||
$sql .= " caller_id_name, caller_id_number, caller_destination, \n";
|
||||
$sql .= " caller_id_name, caller_id_number, caller_destination, destination_number, \n";
|
||||
$sql .= " record_name as call_recording_name, record_path as call_recording_path, \n";
|
||||
$sql .= " duration as call_recording_length, start_stamp as call_recording_date, direction as call_direction \n";
|
||||
$sql .= " from v_xml_cdr \n";
|
||||
|
||||
@@ -147,6 +147,8 @@ $text['label-caller_destination']['ru-ru'] = "";
|
||||
$text['label-caller_destination']['sv-se'] = "";
|
||||
$text['label-caller_destination']['uk-ua'] = "";
|
||||
|
||||
$text['label-destination_number']['en-us'] = "Destination";
|
||||
|
||||
$text['description-call_recording_name']['en-us'] = "";
|
||||
$text['description-call_recording_name']['en-gb'] = "";
|
||||
$text['description-call_recording_name']['ar-eg'] = "";
|
||||
|
||||
@@ -114,7 +114,7 @@
|
||||
//get the list
|
||||
$sql = "select r.domain_uuid, d.domain_name, r.call_recording_uuid, r.call_direction, ";
|
||||
$sql .= "r.call_recording_name, r.call_recording_path, r.call_recording_length, ";
|
||||
$sql .= "r.caller_id_name, r.caller_id_number, r.caller_destination, ";
|
||||
$sql .= "r.caller_id_name, r.caller_id_number, r.caller_destination, r.destination_number, ";
|
||||
$sql .= "to_char(timezone(:time_zone, r.call_recording_date), 'DD Mon YYYY') as call_recording_date_formatted, \n";
|
||||
$sql .= "to_char(timezone(:time_zone, r.call_recording_date), 'HH12:MI:SS am') as call_recording_time_formatted \n";
|
||||
$sql .= "from view_call_recordings as r, v_domains as d ";
|
||||
@@ -131,6 +131,7 @@
|
||||
$sql .= " or lower(r.caller_id_name) like :search ";
|
||||
$sql .= " or lower(r.caller_id_number) like :search ";
|
||||
$sql .= " or lower(r.caller_destination) like :search ";
|
||||
$sql .= " or lower(r.destination_number) like :search ";
|
||||
$sql .= " or lower(r.call_recording_name) like :search ";
|
||||
$sql .= " or lower(r.call_recording_path) like :search ";
|
||||
$sql .= ") ";
|
||||
@@ -225,6 +226,7 @@
|
||||
echo th_order_by('caller_id_name', $text['label-caller_id_name'], $order_by, $order, null, "class='hide-sm-dn shrink'");
|
||||
echo th_order_by('caller_id_number', $text['label-caller_id_number'], $order_by, $order, null, "class='pct-10'");
|
||||
echo th_order_by('caller_destination', $text['label-caller_destination'], $order_by, $order, null, "class='hide-sm-dn shrink'");
|
||||
echo th_order_by('destination_number', $text['label-destination_number'], $order_by, $order, null, "class='hide-sm-dn shrink'");
|
||||
echo th_order_by('call_recording_name', $text['label-call_recording_name'], $order_by, $order, null, "class='pct-40 hide-sm-dn'");
|
||||
if (permission_exists('call_recording_play') || permission_exists('call_recording_download')) {
|
||||
echo "<th class='shrink center'>".$text['label-recording']."</th>\n";
|
||||
@@ -262,6 +264,7 @@
|
||||
echo " <td class='hide-sm-dn shrink'>".escape($row['caller_id_name'])."</td>\n";
|
||||
echo " <td class='overflow'>".escape($row['caller_id_number'])."</td>\n";
|
||||
echo " <td class='overflow hide-sm-dn shrink'>".escape($row['caller_destination'])."</td>\n";
|
||||
echo " <td class='overflow hide-sm-dn shrink'>".escape($row['destination_number'])."</td>\n";
|
||||
echo " <td class='hide-sm-dn nowrap'>".escape($row['call_recording_name'])."</td>\n";
|
||||
if (permission_exists('call_recording_play') || permission_exists('call_recording_download')) {
|
||||
echo " <td class='middle button center no-link no-wrap'>";
|
||||
|
||||
Reference in New Issue
Block a user