Fixed "Missed" link and exclude LOSE_RACE from CDR stats
Simple change to exclude lose_race and fix a URL change for the xml_cdr page.
This commit is contained in:
parent
c6cb47de95
commit
202bc7363e
|
|
@ -314,7 +314,7 @@
|
|||
echo " <td>".escape($row['volume'])." </td>\n";
|
||||
echo " <td>".(round(escape($row['minutes']),2))." </td>\n";
|
||||
echo " <td>".(round(escape($row['avg_min']),2))." / ".(round(escape($row['cpm_ans']),2))." </td>\n";
|
||||
echo " <td class='center'><a href=\"xml_cdr.php?missed=true&direction=$direction&start_epoch=".escape($row['start_epoch'])."&stop_epoch=".escape($row['stop_epoch'])."\">".escape($row['missed'])."</a> </td>\n";
|
||||
echo " <td class='center'><a href=\"xml_cdr.php?call_result=missed&direction=$direction&start_epoch=".escape($row['start_epoch'])."&stop_epoch=".escape($row['stop_epoch'])."\">".escape($row['missed'])."</a> </td>\n";
|
||||
echo " <td>".(round(escape($row['asr']),2))." </td>\n";
|
||||
echo " <td>".(round(escape($row['aloc']),2))." </td>\n";
|
||||
echo "</tr >\n";
|
||||
|
|
|
|||
|
|
@ -280,6 +280,10 @@
|
|||
$sql_where_ands[] = "leg = :leg";
|
||||
$parameters['leg'] = $leg;
|
||||
}
|
||||
//If you can't see lose_race, don't run stats on it
|
||||
if (!permission_exists('xml_cdr_lose_race')) {
|
||||
$sql_where_ands[] = "hangup_cause != 'LOSE_RACE'";
|
||||
}
|
||||
|
||||
//if not admin or superadmin, only show own calls
|
||||
if (!permission_exists('xml_cdr_domain')) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue