1 package FS::cdr::orcon;
4 use vars qw( @ISA %info);
17 'accountcode', #account number
20 sub { my ($cdr, $calldate) = @_;
21 $cdr->set('calldate', $calldate);
23 $calldate =~ /^(\d{2})\/(\d{2})\/(\d{4})\s*(\d{2}):(\d{2}):(\d{2})$/
24 or die "unparseable date: $calldate";
25 my $tmp_date = "$2/$1/$3 $4:$5:$6";
27 $tmp_date = str2time($tmp_date);
28 $cdr->set('startdate', $tmp_date);
30 skip(1), #tariff region
31 'src', #originating number
32 'dst', #terminating number
33 'duration', #duration actual
34 'billsec', #duration billed
36 'upstream_price',#charge
41 sub skip { map {''} (1..$_[0]) }