X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fcdr%2Finfinite.pm;fp=FS%2FFS%2Fcdr%2Finfinite.pm;h=90560c8c7be40f9f1396e6eae87a666b7bd98ead;hp=0000000000000000000000000000000000000000;hb=343befcb41d5ab76173645ceb8ac235ca7b92d35;hpb=5250c44bd7f282c7d782bf0e8349af12376929df diff --git a/FS/FS/cdr/infinite.pm b/FS/FS/cdr/infinite.pm new file mode 100644 index 000000000..90560c8c7 --- /dev/null +++ b/FS/FS/cdr/infinite.pm @@ -0,0 +1,41 @@ +package FS::cdr::infinite; + +use strict; +use vars qw( @ISA %info ); +use FS::cdr qw(_cdr_date_parser_maker); + +@ISA = qw(FS::cdr); + +%info = ( + 'name' => 'Infinite Conferencing', + 'weight' => 520, + 'header' => 1, + 'type' => 'csv', + 'sep_char' => ',', + 'import_fields' => [ + 'uniqueid', # billid + skip(3), # confid, invoicenum, acctgrpid + 'accountcode', # accountid ("Room Confirmation Number") + skip(2), # billingcode ("Room Billingcode"), confname + skip(1), # participant_type + 'startdate', # starttime_t + skip(2), # startdate, starttime + sub { my($cdr, $data, $conf, $param) = @_; + $cdr->duration($data * 60); + $cdr->billsec( $data * 60); + }, # minutes + 'dst', # dnis + 'src', # ani + skip(8), # calltype, calltype_text, confstart_t, confstartdate, + # confstarttime, confminutes, conflegs, ppm + 'upstream_price', # callcost + skip(13), # confcost, rppm, rcallcost, rconfcost, + # auxdata[1..4], ldval, sysname, username, cec, pec + 'userfield', # unnamed field + ], + +); + +sub skip { map {''} (1..$_[0]) } + +1;