mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
[xml_cdr] cdr statistics fix LOSE_RACE (#6432)
This commit is contained in:
@@ -281,12 +281,12 @@
|
||||
$sql_where_ands[] = "leg = :leg";
|
||||
$parameters['leg'] = $leg;
|
||||
}
|
||||
//Exclude enterprise ring group legs
|
||||
//Exclude enterprise ring group and follow me originated legs
|
||||
if (!permission_exists('xml_cdr_enterprise_leg')) {
|
||||
$sql_where_ands[] .= "originating_leg_uuid IS NULL";
|
||||
}
|
||||
//If you can't see lose_race, don't run stats on it
|
||||
elseif (!permission_exists('xml_cdr_lose_race')) {
|
||||
if (!permission_exists('xml_cdr_lose_race')) {
|
||||
$sql_where_ands[] = "hangup_cause != 'LOSE_RACE'";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user