[freeside-commits] branch FREESIDE_4_BRANCH updated. 5250ef0bd82f482817621330bda83b321912a705

Ivan Kohler ivan at freeside.biz
Wed Nov 28 13:41:34 PST 2018


The branch, FREESIDE_4_BRANCH has been updated
       via  5250ef0bd82f482817621330bda83b321912a705 (commit)
      from  d24ce48228902a99a9f8e77e70970ecc587c6ccf (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 5250ef0bd82f482817621330bda83b321912a705
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Wed Nov 28 13:41:33 2018 -0800

    Option to ignore old CDRs, RT#81480

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
   '';

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/part_pkg/voip_cdr.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)




More information about the freeside-commits mailing list