1 package FS::cdr::orcon;
4 use vars qw( @ISA %info);
17 skip(1) , #billing period
18 'accountcode', #account number
21 sub { my ($cdr, $calldate, $param) = @_;
23 $cdr->set('calldate', $calldate);
25 if ($calldate =~ /^(\d{4})-(\d{2})-(\d{2})\s*(\d{2}):(\d{2}):(\d{2})$/){
27 my $tmp_date = "$2/$3/$1 $4:$5:$6";
29 $tmp_date = str2time($tmp_date);
30 $cdr->set('startdate', $tmp_date);
37 skip(1), #tariff region
38 'src', #originating number
39 'dst', #terminating number
40 'duration', #duration actual
41 'billsec', #duration billed
43 'upstream_price',#charge
48 sub skip { map {''} (1..$_[0]) }