projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
749d102
)
Toll free processing for amcom CDRs
author
Jeremy Davis
<jeremyd@freeside.biz>
Tue, 20 Oct 2015 15:32:34 +0000
(11:32 -0400)
committer
Jeremy Davis
<jeremyd@freeside.biz>
Tue, 20 Oct 2015 15:32:34 +0000
(11:32 -0400)
FS/FS/cdr/amcom.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cdr/amcom.pm
b/FS/FS/cdr/amcom.pm
index
43e6afd
..
fee81f7
100644
(file)
--- a/
FS/FS/cdr/amcom.pm
+++ b/
FS/FS/cdr/amcom.pm
@@
-27,8
+27,11
@@
my ($tmp_mday, $tmp_mon, $tmp_year);
'accountcode',# 2. BWGroupID (centrex group)
sub { # 3. BWGroupNumber
my ($cdr, $field) = @_; #, $conf, $hashref) = @_;
- $cdr->charged_party($field)
- if $cdr->accountcode eq '' && $field =~ /^(1800|1300)/;
+
+ if ($cdr->accountcode eq '' && $field =~ /^(1800|1300)/){
+ $cdr->charged_party($field);
+ $cdr->accountcode($field);
+ }
},
'uniqueid', # 4. Record ID
sub { # 5. Call Category (LOCAL, NATIONAL, FREECALL, MOBILE)