[freeside-commits] branch FREESIDE_3_BRANCH updated. e13ecda5349caa3ee1bb29ced790d8e7a4e7ea28

Jeremy Davis jeremyd at 420.am
Tue Oct 20 08:32:40 PDT 2015


The branch, FREESIDE_3_BRANCH has been updated
       via  e13ecda5349caa3ee1bb29ced790d8e7a4e7ea28 (commit)
      from  749d1025a324b97b53042b77065ff96c90fcf2dd (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 e13ecda5349caa3ee1bb29ced790d8e7a4e7ea28
Author: Jeremy Davis <jeremyd at freeside.biz>
Date:   Tue Oct 20 11:32:34 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