[freeside-commits] freeside/FS/FS/cdr transnexus.pm,1.1,1.2
Ivan,,,
ivan at wavetail.420.am
Sat May 30 04:21:03 PDT 2009
Update of /home/cvs/cvsroot/freeside/FS/FS/cdr
In directory wavetail.420.am:/tmp/cvs-serv2350
Modified Files:
transnexus.pm
Log Message:
clid is base-64 encoded, huh, RT#5229
Index: transnexus.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cdr/transnexus.pm,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- transnexus.pm 30 May 2009 10:45:43 -0000 1.1
+++ transnexus.pm 30 May 2009 11:21:01 -0000 1.2
@@ -3,6 +3,7 @@
use strict;
use base qw( FS::cdr );
use vars qw( %info );
+use MIME::Base64;
use FS::cdr qw( _cdr_date_parser_maker _cdr_min_parser_maker );
%info = (
@@ -14,12 +15,12 @@
#listref of what to do with each field from the CDR, in order
'import_fields' => [
- _cdr_date_parser_maker('startddate'), #O_CallStartTime
+ _cdr_date_parser_maker('startddate'), #O_CallStartTime
'src', #CallingNumberReported
'dst', #CalledNumberReported
'channel', #SourceDeviceName / O_ReportingDeviceName
'dstchannel', #O_ReportingDeviceName / DestinationDeviceName
- 'clid', #CallId
+ sub { $_[0]->clid( decode_base64($_[1]) ); }, #CallId
'uniqueid', #TransactionId
'duration', #RatedDuration
'billsec', #O_BillingDuration
More information about the freeside-commits
mailing list