Phone Systems), or one * client's, or one contact's (contact_id). Each row is who it was with - the contact, else the * caller ID name or number - the extension and agent on this side, when, how long they talked and * how it ended, and the ticket it went on. Add to Ticket puts it on one of the client's open * tickets, or a new one, as an internal note with its talk time * (modals/phone/phone_call_ticket.php, agent/post/phone.php). */ // Default Column Sortby Filter $sort = "phone_call_started_at"; $order = "DESC"; // If client_id is in URI then show client Side Bar and client header if (isset($_GET['client_id'])) { require_once "includes/inc_all_client.php"; $client_query = "AND phone_call_client_id = $client_id"; $client_url = "client_id=$client_id&"; } else { require_once "includes/inc_all.php"; $client_query = ''; $client_url = ''; } enforceUserPermission('module_support'); $page_title = 'Calls'; if (!phoneSystemsExist()) { ?>
| = sortLink('who', 'Call') ?> | = sortLink('client_name', 'Client') ?> | = sortLink('phone_call_extension', 'Taken by') ?> | = sortLink('phone_call_started_at', 'When') ?> | = sortLink('phone_call_talk_seconds', 'Talked') ?> | Ticket | |
|---|---|---|---|---|---|---|
|
= escapeHtml($who) ?>
= escapeHtml($who) ?>
= escapeHtml($direction_label) ?> · = escapeHtml($number) ?>
· = escapeHtml($status_label) ?>
· = escapeHtml($row['user_name'] ?? phoneNumberText($row['phone_call_extension'])) ?>
|
= escapeHtml($row['client_name']) ?> - |
= escapeHtml($row['user_name']) ?>
= $row['phone_call_extension'] !== '' ? escapeHtml(phoneNumberText($row['phone_call_extension'])) : '-' ?>
|
= escapeHtml(timeAgo($row['phone_call_started_at'])) ?>
= escapeHtml(date('M j, g:i a', strtotime($row['phone_call_started_at']))) ?>
|
= $answered ? escapeHtml(phoneSecondsText($row['phone_call_talk_seconds'])) : '-' ?> | = escapeHtml($row['ticket_prefix'] . $row['ticket_number']) ?> - |
|