[freeside-commits] branch FREESIDE_3_BRANCH updated. 6205135803080b92127d4b1b52b4d4729d08a09f

Jeremy Davis jeremyd at 420.am
Thu Oct 16 13:28:20 PDT 2014


The branch, FREESIDE_3_BRANCH has been updated
       via  6205135803080b92127d4b1b52b4d4729d08a09f (commit)
      from  1952f05a742b6a71d59f84ad55e84c27833fa980 (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 6205135803080b92127d4b1b52b4d4729d08a09f
Author: Jeremy Davis <jeremyd at freeside.biz>
Date:   Thu Oct 16 16:28:12 2014 -0400

    Ticket #31413 Properly import consolidated local calls

diff --git a/FS/FS/cdr/zintel.pm b/FS/FS/cdr/zintel.pm
index 1d2236c..eb08038 100644
--- a/FS/FS/cdr/zintel.pm
+++ b/FS/FS/cdr/zintel.pm
@@ -16,7 +16,17 @@ use Date::Parse;
 
 	'accountcode',	#customer
 	'src',		#anumber
-	'dst',		#bnumber
+		 sub { my ($cdr, $dst) = @_; # Handling cosolidated local calls in the CDR formats
+
+			my $src = $cdr->src;
+
+			if ($dst =~ /^64\/U$/) {
+			$cdr->set('dst', $src);
+			} else {
+			$cdr->set('dst', $dst);
+			}
+			}, #bnumber
+
                  sub { my ($cdr, $calldate) = @_;
                         $cdr->set('calldate', $calldate);
 

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

Summary of changes:
 FS/FS/cdr/zintel.pm |   12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)




More information about the freeside-commits mailing list