[freeside-commits] freeside/FS/FS cdr.pm,1.21,1.22
Ivan,,,
ivan at wavetail.420.am
Mon Oct 6 08:28:16 PDT 2008
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv22251
Modified Files:
cdr.pm
Log Message:
add initial netcentrex CDR format
Index: cdr.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cdr.pm,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- cdr.pm 9 Sep 2008 02:24:30 -0000 1.21
+++ cdr.pm 6 Oct 2008 15:28:14 -0000 1.22
@@ -635,7 +635,11 @@
if ( $type eq 'csv' ) {
eval "use Text::CSV_XS;";
die $@ if $@;
- $parser = new Text::CSV_XS;
+ my %attr = ();
+ foreach ( grep exists($info->{$_}), qw( sep_char ) ) {
+ $attr{$_} = $info->{$_};
+ }
+ $parser = new Text::CSV_XS \%attr;
} elsif ( $type eq 'fixedlength' ) {
eval "use Parse::FixedLength;";
die $@ if $@;
More information about the freeside-commits
mailing list