[freeside-commits] branch master updated. b25c22890cc4523988b1dc84938d1e52bc681e25
Jeremy Davis
jeremyd at 420.am
Tue Oct 20 08:31:43 PDT 2015
The branch, master has been updated
via b25c22890cc4523988b1dc84938d1e52bc681e25 (commit)
from f70b7c914d5b5ef307bc33f9d0fa53095da91b8d (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 b25c22890cc4523988b1dc84938d1e52bc681e25
Author: Jeremy Davis <jeremyd at freeside.biz>
Date: Tue Oct 20 11:31:08 2015 -0400
Toll free processing for amcom CDRs
diff --git a/FS/FS/cdr/amcom.pm b/FS/FS/cdr/amcom.pm
index 43e6afd..fee81f7 100644
--- 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)
-----------------------------------------------------------------------
Summary of changes:
FS/FS/cdr/amcom.pm | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
More information about the freeside-commits
mailing list