mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Add. Handle b legs in CDR. (#2626)
* Add. Handle `b` legs in CDR. CDR list/statistic by default handle only `a` legs. So it prevent display wrong result when b-leg turn on. Add ability to write to db `b` legs only for specific call directions. To be able see b-legs in CDR need set xml_cdr_b_leg permission. To add specific call direction to filter need add element to `cdr/b_leg/array` in default/domain settings. * Add. `b_leg` to defalut settings.
This commit is contained in:
committed by
FusionPBX
parent
3c23fb5115
commit
5d43f73134
@@ -110,6 +110,7 @@
|
||||
echo " <input type='hidden' name='remote_media_ip' value='".$remote_media_ip."'>\n";
|
||||
echo " <input type='hidden' name='network_addr' value='".$network_addr."'>\n";
|
||||
echo " <input type='hidden' name='bridge_uuid' value='".$bridge_uuid."'>\n";
|
||||
echo " <input type='hidden' name='leg' value='".$leg."'>\n";
|
||||
if (is_array($_SESSION['cdr']['field'])) {
|
||||
foreach ($_SESSION['cdr']['field'] as $field) {
|
||||
$array = explode(",", $field);
|
||||
@@ -524,7 +525,12 @@
|
||||
else { $call_result = 'failed'; }
|
||||
}
|
||||
if (strlen($row['direction']) > 0) {
|
||||
echo "<img src='".PROJECT_PATH."/themes/".$_SESSION['domain']['template']['name']."/images/icon_cdr_".$row['direction']."_".$call_result.".png' width='16' style='border: none; cursor: help;' title='".$text['label-'.$row['direction']].": ".$text['label-'.$call_result]."'>\n";
|
||||
$image_name = "icon_cdr_" . $row['direction'] . "_" . $call_result;
|
||||
if($row['leg'] == 'b'){
|
||||
$image_name .= '_b';
|
||||
}
|
||||
$image_name .= ".png";
|
||||
echo "<img src='".PROJECT_PATH."/themes/".$_SESSION['domain']['template']['name']."/images/$image_name' width='16' style='border: none; cursor: help;' title='".$text['label-'.$row['direction']].": ".$text['label-'.$call_result]. ($row['leg']=='b'?'(b)':'') . "'>\n";
|
||||
}
|
||||
}
|
||||
else { echo " "; }
|
||||
|
||||
Reference in New Issue
Block a user