add transnexus format, RT#5229
[freeside.git] / FS / FS / cdr / transnexus.pm
1 package FS::cdr::transnexus;
2
3 use strict;
4 use base qw( FS::cdr );
5 use vars qw( %info );
6 use FS::cdr qw( _cdr_date_parser_maker _cdr_min_parser_maker );
7
8 %info = (
9   'name'          => 'Transnexus',
10   'weight'        => 18,
11   'type'          => 'csv',
12   'sep_char'      => "\t",
13
14   #listref of what to do with each field from the CDR, in order
15   'import_fields' => [
16
17     _cdr_date_parser_maker('startddate'), #O_CallStartTime
18     'src',            #CallingNumberReported
19     'dst',            #CalledNumberReported
20     'channel',        #SourceDeviceName      / O_ReportingDeviceName
21     'dstchannel',     #O_ReportingDeviceName / DestinationDeviceName
22     'clid',           #CallId
23     'uniqueid',       #TransactionId
24     'duration',       #RatedDuration
25     'billsec',        #O_BillingDuration
26     'upstream_price', #O_BillingAmountCustCurr
27   ],
28 );
29
30 1;
31
32 __END__
33
34 O_CallStartTime - Date and time stamp of the call setup as reported in the CDR from the source device.
35
36 CallingNumberReported - Calling number from the source device reported in authorization request to the OSPrey server.
37
38 CalledNumberReported - Called number from the source device reported in authorization request to the OSPrey server.
39
40 ----
41 1.1.1 Customer CDR Archive File
42
43 SourceDeviceName - The IP address or Domain Name of the device which is the call source.
44
45 O_ReportingDeviceName - IP address or Domain Name of the source (Originating) device reporting the CDR to the OSPrey Server. If a proxy is used, (such as SIP proxy for signaling or FreeRADIUS for CDR reporting) this field is the IP address of the proxy device, not the actual source device.
46
47 ---
48 or 1.1.2 Provider CDR Archive File
49
50 O_ReportingDeviceName - IP address or Domain Name of the source (Originating) device reporting the CDR to the OSPrey Server. If a proxy is used, (such as SIP proxy for signaling or FreeRADIUS for CDR reporting) this field is the IP address of the proxy device, not the actual source device.  
51
52 DestinationDeviceName - The IP address or Domain Name of the destination device.
53
54 ----
55
56 CallId - The Call Identifier generated by the source VoIP device.
57
58 TransactionId - The unique Transaction Identification number created by the OSPrey server for each call
59
60 RatedDuration - The rateable duration calculated by NexOSS.
61
62 O_BillingDuration - The duration used to calculate the billable amount for a call from the source (Originating) network. This value is derived from RatedDuration and rounded up based on the ¿First Increment¿ or ¿Next Increment¿ rules defined in the Product or Customer Rate Plan used to rate the call.
63
64 O_BillingAmountCustCurr - Amount billable to the source (Originating) Customer. Provided in the currency of the Product or Customer Rate Plan.  
65