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:
@@ -317,7 +317,7 @@ if (!class_exists('xml_cdr')) {
|
||||
|
||||
//set missed calls
|
||||
$missed_call = 'false';
|
||||
if (strlen($xml->variables->originating_leg_uuid) == 0 && $xml->variables->call_direction != 'outbound' && strlen($xml->variables->answer_stamp) == 0) {
|
||||
if ($xml->variables->cc_side != "agent" && strlen($xml->variables->originating_leg_uuid) == 0 && $xml->variables->call_direction != 'outbound' && strlen($xml->variables->answer_stamp) == 0) {
|
||||
$missed_call = 'true';
|
||||
}
|
||||
if ($xml->variables->missed_call == 'true') {
|
||||
|
||||
Reference in New Issue
Block a user