projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a08d811
)
Option to ignore old CDRs, RT#81480
author
Ivan Kohler
<ivan@freeside.biz>
Wed, 28 Nov 2018 21:41:29 +0000
(13:41 -0800)
committer
Ivan Kohler
<ivan@freeside.biz>
Wed, 28 Nov 2018 21:41:29 +0000
(13:41 -0800)
FS/FS/part_pkg/voip_cdr.pm
patch
|
blob
|
history
diff --git
a/FS/FS/part_pkg/voip_cdr.pm
b/FS/FS/part_pkg/voip_cdr.pm
index
522e4aa
..
49e43e9
100644
(file)
--- 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
'';