MT#10537 Strip sems suffix from cid

Also set type to "call" for any inbound calls, overriding call-
forward information.

Change-Id: I79b2b7331aecef0a3d5ee41fa10095da7ea279e9
changes/21/1821/6
Andreas Granig 11 years ago
parent 53ee3a32a8
commit 26c561c67a

@ -210,6 +210,16 @@ sub resource_from_item {
$other_domain = $item->source_domain;
}
# for inbound calls, always show type call, even if it's
# a call forward
if($resource->{direction} eq "in") {
$resource->{type} = "call";
}
# strip any _b2b-1 and _pbx-1 to allow grouping of calls
$resource->{call_id} =~ s/(_b2b-1)|(_pbx-1)//g;
my $own_sub = ($resource->{direction} eq "out")
? $billing_src_sub
: $billing_dst_sub;

Loading…
Cancel
Save