[freeside-commits] branch FREESIDE_4_BRANCH updated. 6bedaa238d2fe631f7550a15ad8101a87eac2ced

Mark Wells mark at 420.am
Wed Oct 19 15:50:05 PDT 2016


The branch, FREESIDE_4_BRANCH has been updated
       via  6bedaa238d2fe631f7550a15ad8101a87eac2ced (commit)
      from  5f7dbb0df2ef71723ae34fd151525994a3b82956 (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 6bedaa238d2fe631f7550a15ad8101a87eac2ced
Author: Mark Wells <mark at freeside.biz>
Date:   Wed Oct 19 15:49:41 2016 -0700

    in CallPlus CDR import, mark international calls as international, #72264

diff --git a/FS/FS/cdr/callplus.pm b/FS/FS/cdr/callplus.pm
index fa6c799..1fcfa63 100644
--- a/FS/FS/cdr/callplus.pm
+++ b/FS/FS/cdr/callplus.pm
@@ -51,7 +51,14 @@ use Time::Local 'timelocal';
       $value =~ s/^\$//;
       $cdr->upstream_price($value);
     },
-    skip(4),              # Smartcode, Smartcode Description, Type, SubType
+    skip(2),              # Smartcode, Smartcode Description
+    sub {                 # Type. "I" = international, which matters.
+      my ($cdr, $value) = @_;
+      if ($value eq 'I') {
+        $cdr->set('dst', '+' . $cdr->dst);
+      } # else leave it alone
+    },
+    '',                   # SubType
   ],
 );
 

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/cdr/callplus.pm |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)




More information about the freeside-commits mailing list