c238d2a174898968a7e29ffd4e8047d1c7a551f4
[freeside.git] / FS / FS / cdr / telapi_voip.pm
1 package FS::cdr::telapi_voip;
2 use base qw( FS::cdr );
3
4 use strict;
5 use vars qw( %info );
6 use FS::cdr qw( _cdr_date_parser_maker );
7
8 %info = (
9   'name'          => 'TeleAPI VoIP (CSV file)',
10   'weight'        => 601,
11   'header'        => 1,
12   'type'          => 'csv',
13   'import_fields' => [
14     _cdr_date_parser_maker('startdate', 'gmt'=>1 ),  # date gmt
15     'src',                                           # source
16     'dst',                                           # destination
17     'clid',                                          # callerid
18     'disposition',                                   # hangup code
19     'userfield',                                     # sip account
20     'src_ip_addr',                                   # orig ip
21     'billsec',                                       # duration
22     skip(1),                                  # per minute (add "upstream_rate"?
23     'upstream_price',                                # call cost
24     'dcontext',                                      # type
25     'uniqueid',                                      # uuid
26     'lastapp',                                       # direction
27   ],
28 );
29
30 sub skip { map {''} (1..$_[0]) }
31
32 1;