I am working with the following input and wanted some advice on how/where to specify the field extractions:
"\x00\x00\x00103700079 C9E840 13372786523 7137 210018 51730064 #850 1 000 "
I have documentation from the vendor specifying value lengths and definitions and we can perform most field extractions via individial regex field extractions, but we wanted to know if there is a better or more effecient method recommended.
For regerence, the field mapping table is listed below and have included samples for a couple of the current field extractions.
1-2 Time of day-hours
3-4 Time of day-minutes
5 Duration-hours
6-7 Duration-minutes
8 Duration-tenths of minutes
9 Condition code
10-13 Access code dialed
14-17 Access code used
18-32 Dialed number
33-42 Calling number
43-57 Account code
58-64 Authorization code
65-66 Space
67 FRL
68-70 Incoming circuit ID (hundreds, tens, units)
71-73 Outgoing circuit ID (hundreds, tens, units)
74 Feature flag
75-76 Attendant console
77-80 Incoming TAC
81-82 Node number
83-85 INS
86-88 IXC
89 BCC
90 MA-UUI
91 Resource flag
92-95 Packet count
96 TSC flag
97-100 Reserved
101 Carriage return (Not displayed)
102 Line feed (Not displayed)
103-105 Null (displayed as “\x00\x00\x00” at beginning of new line)
For example, to extract the duration hours, minutes, tenths of minutes we use the following regex:
"^.{16}(?<duration_hours>\d{1})"
"^.{17}(?<duration_minutes>\d{2})"
"^.{19}(?<duration_tenths_minutes>\d{1})"
... View more