TT#5812 fix calllist direction processing

the conditional setting of type "call" got overwritten by later
code.

Change-Id: I297670ed9391e6336d3c7ecefbab1c790b0b89e8
changes/79/10079/1
Gerhard Jungwirth 9 years ago
parent 01a98254dc
commit 1a25aa3eb1

@ -166,6 +166,8 @@ sub process_cdr_item {
# a call forward
if($resource->{direction} eq "in") {
$resource->{type} = "call";
} else {
$resource->{type} = $item->call_type;
}
# strip any _b2b-1 and _pbx-1 to allow grouping of calls
@ -209,7 +211,6 @@ sub process_cdr_item {
$resource->{status} = $item->call_status;
$resource->{rating_status} = $item->rating_status;
$resource->{type} = $item->call_type;
$resource->{start_time} = $item->start_time;
$resource->{duration} = NGCP::Panel::Utils::DateTime::sec_to_hms($c,$item->duration,3);

Loading…
Cancel
Save