fix TeleAPI import (what kind of crack was Christopher smoking that he couldn't fix...
[freeside.git] / FS / FS / cdr / lesnet.pm
1 package FS::cdr::lesnet;
2
3 use strict;
4 use vars qw( @ISA %info );
5
6 @ISA = qw(FS::cdr);
7
8 %info = (
9   'name'          => 'LesNet',
10   'weight'        => 120,
11   'type'          => 'csv',
12   'import_fields' => [
13     # Call Date
14     'calldate',
15
16     # Source_Number
17     'src',
18
19     # Terminating_Number
20     'dst',
21
22     # Duration
23     sub { my($cdr,$field) = @_;
24             $cdr->duration($field);
25             $cdr->billsec($field);
26         },
27
28     'upstream_price',
29     
30     'dcontext',
31
32     'channel',
33     
34     # Sip Call id
35     'dstchannel',
36
37   ],
38 );
39
40 1;