[freeside-commits] branch master updated. 83f29f7300305134cb0c2e680ca7346927d4e9fe

Jeremy Davis jeremyd at 420.am
Thu Oct 16 13:26:58 PDT 2014


The branch, master has been updated
       via  83f29f7300305134cb0c2e680ca7346927d4e9fe (commit)
      from  c5c8e792b4f4940029bb7a3385e35166a3787220 (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 83f29f7300305134cb0c2e680ca7346927d4e9fe
Author: Jeremy Davis <jeremyd at freeside.biz>
Date:   Thu Oct 16 16:26:05 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