diff --git a/app/xml_cdr/xml_cdr_inc.php b/app/xml_cdr/xml_cdr_inc.php index 8015c23fa7..7af4f44d6b 100644 --- a/app/xml_cdr/xml_cdr_inc.php +++ b/app/xml_cdr/xml_cdr_inc.php @@ -302,6 +302,7 @@ } if ($missed == true) { $sql .= "and missed_call = 1 \n"; + $sql .= "and hangup_cause <> 'LOSE_RACE' "; } if (strlen($start_epoch) > 0 && strlen($stop_epoch) > 0) { $sql .= "and start_epoch between :start_epoch and :stop_epoch \n"; @@ -470,6 +471,7 @@ break; case 'missed': $sql .= "and missed_call = '1' "; + $sql .= "and hangup_cause <> 'LOSE_RACE' "; break; case 'cancelled': if ($direction == 'inbound' || $direction == 'local' || $call_result == 'missed') { diff --git a/app/xml_cdr/xml_cdr_statistics_inc.php b/app/xml_cdr/xml_cdr_statistics_inc.php index e695b8e67c..a20d3af0fd 100644 --- a/app/xml_cdr/xml_cdr_statistics_inc.php +++ b/app/xml_cdr/xml_cdr_statistics_inc.php @@ -154,6 +154,7 @@ } if ($missed == true) { $sql_where_ands[] = "missed_call = true "; + $sql_where_ands[] = "and hangup_cause <> 'LOSE_RACE' "; } if (strlen($start_epoch) > 0 && strlen($stop_epoch) > 0) { $sql_where_ands[] = "start_epoch between :start_epoch and :stop_epoch";