From 41fe4482e51208407bf575f6a7b1a2e5a43b461a Mon Sep 17 00:00:00 2001 From: Gerhard Jungwirth Date: Tue, 31 Jan 2017 10:25:06 +0100 Subject: [PATCH] TT#9829 calllist call direction out if intra With this change, calls which have the same customer for source and destination will be shown with direction "out" when only filtered by customer. This makes it easier to as postprocessing change the type to "call" only when the direction is "in" (see ticket) Change-Id: I2370bd2192c6cee6c01c89a8b78de5791cb72196 --- lib/NGCP/Panel/Utils/CallList.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/NGCP/Panel/Utils/CallList.pm b/lib/NGCP/Panel/Utils/CallList.pm index bf73888db3..58e2b74ca2 100644 --- a/lib/NGCP/Panel/Utils/CallList.pm +++ b/lib/NGCP/Panel/Utils/CallList.pm @@ -23,6 +23,7 @@ use NGCP::Panel::Utils::Subscriber; # * own_cli # * start_time # * status +# * rating_status # * type sub process_cdr_item { my ($c, $item, $owner, $params) = @_; @@ -47,7 +48,7 @@ sub process_cdr_item { if(defined $sub && $sub->uuid eq $item->destination_user_id) { $resource->{direction} = "in"; } elsif (defined $cust && $item->destination_account_id == $cust->id - && ( $item->source_account_id != $cust->id || $item->destination_user_id ) ) { # ??? + && ( $item->source_account_id != $cust->id ) ) { $resource->{direction} = "in"; } else { $resource->{direction} = "out";