mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Exclude cc_side agent legs from missed_call
Excluded cc_side = agent calls from being marked as missed_call = true Fixed the previous performance issue with adding the cc_side != 'agent' to the SQL and removed its filter from the rendering loop for the xml_cdr.
This commit is contained in:
@@ -515,6 +515,10 @@
|
||||
$sql .= "and (c.record_path is null or c.record_name is null) ";
|
||||
}
|
||||
}
|
||||
//show agent originated legs only to those with the permission
|
||||
if (!permission_exists('xml_cdr_cc_agent_leg')) {
|
||||
$sql .= "and (cc_side is null or cc_side != 'agent') ";
|
||||
}
|
||||
//end where
|
||||
if (strlen($order_by) > 0) {
|
||||
$sql .= order_by($order_by, $order);
|
||||
|
||||
Reference in New Issue
Block a user