TT#106751 consider the *_user_id as '0' if '<null>'

source_user_id or destination_user_id might carry the
literal string "<null>"

Change-Id: I4a45e7e7e86f7679fafb7ee07ad2379aba5b56bc
mr9.3
Rene Krenn 5 years ago
parent 5b39332e6b
commit 3081a7a29f

@ -3098,6 +3098,9 @@ sub rate_cdr {
my $destination_customer_free_time = 0;
my $destination_carrier_free_time = 0;
my $destination_reseller_free_time = 0;
$cdr->{source_user_id} = '0' if lc($cdr->{source_user_id}) eq '<null>';
$cdr->{destination_user_id} = '0' if lc($cdr->{destination_user_id}) eq '<null>';
unless($cdr->{call_status} eq "ok") {
DEBUG "cdr #$$cdr{id} has call_status $$cdr{call_status}, skip.";

Loading…
Cancel
Save