[freeside-commits] branch FREESIDE_4_BRANCH updated. 678145407fa7450514062cda0ccb428647059205
Jeremy Davis
jeremyd at 420.am
Tue Oct 20 08:32:11 PDT 2015
The branch, FREESIDE_4_BRANCH has been updated
via 678145407fa7450514062cda0ccb428647059205 (commit)
from 28cfeddf275da168d2ebd203a3c93aedc84ae6bf (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 678145407fa7450514062cda0ccb428647059205
Author: Jeremy Davis <jeremyd at freeside.biz>
Date: Tue Oct 20 11:32:06 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