From e2bb9577e6d6281f251f3a5b74319543429cc50f Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Wed, 28 Nov 2018 13:41:29 -0800 Subject: [PATCH] Option to ignore old CDRs, RT#81480 --- FS/FS/part_pkg/voip_cdr.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FS/FS/part_pkg/voip_cdr.pm b/FS/FS/part_pkg/voip_cdr.pm index 522e4aa6f..49e43e915 100644 --- a/FS/FS/part_pkg/voip_cdr.pm +++ b/FS/FS/part_pkg/voip_cdr.pm @@ -674,9 +674,9 @@ sub check_chargable { and length($cdr->max_callers) and $cdr->max_callers <= $self->option_cacheable('skip_max_callers'); - return "calldate < ". str2time($self->option_cacheable('skip_old')) + return "calldate < ". $self->option_cacheable('skip_old') if $self->option_cacheable('skip_old') - && $self->calldate_unix < str2time($self->option_cacheable('skip_old')); + && $cdr->calldate_unix < str2time($self->option_cacheable('skip_old')); #all right then, rate it ''; -- 2.11.0