1 package FS::cdr::genband;
4 use vars qw(@ISA %info);
5 use FS::cdr qw(_cdr_date_parser_maker);
10 'name' => 'GenBand (Tekelec)', #'Genband G6 (Tekelec T6000)',
12 'type' => 'fixedlength',
13 'fixedlength_format' => [qw(
21 SourceEndName:30:124:153
22 SourceCallerID:20:154:173
23 SourceCallerName:30:174:203
24 DestinationName:30:204:233
25 DestinationEndName:30:234:263
26 DestCallerID:20:264:283
27 DestCallerIDInfo:30:284:313
28 DialedDigits:30:314:343
31 CallDirection:1:404:404
32 ExtendedCall:1:405:405
33 ExternalCall:1:406:406
36 IncomingDigits:30:480:509
37 OutpulsedDigits:30:510:539
38 CarrierIdentificationCode:4:540:543
39 CompletionReason:4:544:547
40 OriginationPartition:30:548:577
41 DestinationPartition:30:578:607
42 BilledSourceDID:20:608:628
47 sub {}, #Sequence:4:3:6
48 'uniqueid', #OIDCall:30:7:36
49 _cdr_date_parser_maker('startdate'), #StartTime:19:37:55
50 _cdr_date_parser_maker('answerdate'), #AnswerTime:19:56:74
51 _cdr_date_parser_maker('enddate'), #EndTime:19:75:93
53 'channel', #SourceEndName:30:124:153
54 'src', #SourceCallerID:20:154:173
55 'clid', #SourceCallerName:30:174:203
56 #DestinationName:30:204:233
57 'dstchannel', #DestinationEndName:30:234:263
58 'dst', #DestCallerID:20:264:283
59 #DestCallerIDInfo:30:284:313
60 #DialedDigits:30:314:343
63 #CallDirection:1:404:404
64 #ExtendedCall:1:405:405
65 #ExternalCall:1:406:406
66 sub { my( $cdr, $duration ) = @_;
67 $cdr->duration($duration);
68 $cdr->billsec($duration); }, #'duration', #Duration:9:407:415
70 #IncomingDigits:30:480:509
71 #OutpulsedDigits:30:510:539
72 #CarrierIdentificationCode:4:540:543
73 #CompletionReason:4:544:547
74 #OriginationPartition:30:548:577
75 #DestinationPartition:30:578:607
76 #BilledSourceDID:20:608:628
80 # acctid - primary key
81 # calldate - Call timestamp (SQL timestamp)
82 # clid - Caller*ID with text
83 # src - Caller*ID number / Source number
84 # dst - Destination extension
85 # dcontext - Destination context
86 # channel - Channel used
87 # dstchannel - Destination channel if appropriate
88 # lastapp - Last application if appropriate
89 # lastdata - Last application data
90 # startdate - Start of call (UNIX-style integer timestamp)
91 # answerdate - Answer time of call (UNIX-style integer timestamp)
92 # enddate - End time of call (UNIX-style integer timestamp)
93 # duration - Total time in system, in seconds
94 # billsec - Total time call is up, in seconds
95 # disposition - What happened to the call: ANSWERED, NO ANSWER, BUSY
96 # amaflags - What flags to use: BILL, IGNORE etc, specified on a per
97 # channel basis like accountcode.
98 # accountcode - CDR account number to use: account
99 # uniqueid - Unique channel identifier (Unitel/RSLCOM Event ID)
100 # userfield - CDR user-defined field
101 # cdr_type - CDR type - see FS::cdr_type (Usage = 1, S&E = 7, OC&C = 8)
102 # charged_party - Service number to be billed
103 # upstream_currency - Wholesale currency from upstream
104 # upstream_price - Wholesale price from upstream
105 # upstream_rateplanid - Upstream rate plan ID
106 # rated_price - Rated (or re-rated) price
107 # distance - km (need units field?)
108 # islocal - Local - 1, Non Local = 0
109 # calltypenum - Type of call - see FS::cdr_calltype
110 # description - Description (cdr_type 7&8 only) (used for
111 # cust_bill_pkg.itemdesc)
112 # quantity - Number of items (cdr_type 7&8 only)
113 # carrierid - Upstream Carrier ID (see FS::cdr_carrier)
114 # upstream_rateid - Upstream Rate ID
115 # svcnum - Link to customer service (see FS::cust_svc)
116 # freesidestatus - NULL, done (or something)