echi-converter 0.3.6 → 0.3.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -28,8 +28,10 @@ files_to_copy:
28
28
  - name: config/database.yml
29
29
  - name: config/extended_version12.yml
30
30
  - name: config/extended_version13.yml
31
+ - name: config/extended_version14.yml
31
32
  - name: config/standard_version12.yml
32
33
  - name: config/standard_version13.yml
34
+ - name: config/standard_version14.yml
33
35
  - name: db/migrate/001_create_echi_records.rb
34
36
  - name: db/migrate/002_create_echi_logs.rb
35
37
  - name: db/migrate/003_create_echi_agents.rb
@@ -38,6 +40,10 @@ files_to_copy:
38
40
  - name: db/migrate/006_create_echi_aux_reasons.rb
39
41
  - name: db/migrate/007_create_echi_cwcs.rb
40
42
  - name: db/migrate/008_create_echi_vdns.rb
43
+ - name: db/migrate/009_create_echi_acds.rb
44
+ - name: db/migrate/010_create_echi_splits.rb
45
+ - name: db/migrate/011_create_echi_trunk_groups.rb
46
+ - name: db/migrate/012_create_echi_vectors.rb
41
47
  - name: examples/extended_version12/chr0003
42
48
  - name: examples/extended_version12/chr0003.txt
43
49
  - name: examples/ascii_csv/chr5500.123
@@ -197,6 +197,18 @@ echi_records:
197
197
  type: str
198
198
  length: 17
199
199
 
200
+ #ACD table definition derived from acd.dat
201
+ echi_acds:
202
+ - name: acd_id
203
+ type: str
204
+ length: 255
205
+ - name: number
206
+ type: str
207
+ length: 255
208
+ - name: name
209
+ type: str
210
+ length: 255
211
+
200
212
  #Agents table definition derived from agname.dat
201
213
  echi_agents:
202
214
  - name: group_id
@@ -220,7 +232,7 @@ echi_aux_reasons:
220
232
  - name: name
221
233
  type: str
222
234
  length: 255
223
-
235
+
224
236
  #CWC definition derived from cwc.dat
225
237
  echi_cwcs:
226
238
  - name: group_id
@@ -233,14 +245,50 @@ echi_cwcs:
233
245
  type: str
234
246
  length: 255
235
247
 
248
+ #Split table definition derived from split.dat
249
+ echi_splits:
250
+ - name: acd_number
251
+ type: str
252
+ length: 255
253
+ - name: number
254
+ type: str
255
+ length: 255
256
+ - name: name
257
+ type: str
258
+ length: 255
259
+
260
+ #Trunk Group table definition derived from tkgrp.dat
261
+ echi_trunk_groups:
262
+ - name: acd_number
263
+ type: str
264
+ length: 255
265
+ - name: trunk_group
266
+ type: str
267
+ length: 255
268
+ - name: name
269
+ type: str
270
+ length: 255
271
+
236
272
  #VDN definition derived from vdn.dat
237
273
  echi_vdns:
238
- - name: group_id
239
- type: str
240
- length: 255
241
- - name: vdn
242
- type: str
243
- length: 255
244
- - name: name
245
- type: str
246
- length: 255
274
+ - name: group_id
275
+ type: str
276
+ length: 255
277
+ - name: vdn
278
+ type: str
279
+ length: 255
280
+ - name: name
281
+ type: str
282
+ length: 255
283
+
284
+ #Vector definition derived from vector.dat
285
+ echi_vectors:
286
+ - name: acd_number
287
+ type: str
288
+ length: 255
289
+ - name: number
290
+ type: str
291
+ length: 255
292
+ - name: name
293
+ type: str
294
+ length: 255
@@ -197,6 +197,18 @@ echi_records:
197
197
  type: str
198
198
  length: 17
199
199
 
200
+ #ACD table definition derived from acd.dat
201
+ echi_acds:
202
+ - name: acd_id
203
+ type: str
204
+ length: 255
205
+ - name: number
206
+ type: str
207
+ length: 255
208
+ - name: name
209
+ type: str
210
+ length: 255
211
+
200
212
  #Agents table definition derived from agname.dat
201
213
  echi_agents:
202
214
  - name: group_id
@@ -220,7 +232,7 @@ echi_aux_reasons:
220
232
  - name: name
221
233
  type: str
222
234
  length: 255
223
-
235
+
224
236
  #CWC definition derived from cwc.dat
225
237
  echi_cwcs:
226
238
  - name: group_id
@@ -233,14 +245,50 @@ echi_cwcs:
233
245
  type: str
234
246
  length: 255
235
247
 
248
+ #Split table definition derived from split.dat
249
+ echi_splits:
250
+ - name: acd_number
251
+ type: str
252
+ length: 255
253
+ - name: number
254
+ type: str
255
+ length: 255
256
+ - name: name
257
+ type: str
258
+ length: 255
259
+
260
+ #Trunk Group table definition derived from tkgrp.dat
261
+ echi_trunk_groups:
262
+ - name: acd_number
263
+ type: str
264
+ length: 255
265
+ - name: trunk_group
266
+ type: str
267
+ length: 255
268
+ - name: name
269
+ type: str
270
+ length: 255
271
+
236
272
  #VDN definition derived from vdn.dat
237
273
  echi_vdns:
238
- - name: group_id
239
- type: str
240
- length: 255
241
- - name: vdn
242
- type: str
243
- length: 255
244
- - name: name
245
- type: str
246
- length: 255
274
+ - name: group_id
275
+ type: str
276
+ length: 255
277
+ - name: vdn
278
+ type: str
279
+ length: 255
280
+ - name: name
281
+ type: str
282
+ length: 255
283
+
284
+ #Vector definition derived from vector.dat
285
+ echi_vectors:
286
+ - name: acd_number
287
+ type: str
288
+ length: 255
289
+ - name: number
290
+ type: str
291
+ length: 255
292
+ - name: name
293
+ type: str
294
+ length: 255
@@ -0,0 +1,294 @@
1
+ #ECH File construct, order is important, as the application sequentially reads the file
2
+ #Version 14 - Standard Schema
3
+ echi_records:
4
+ - name: callid
5
+ type: int
6
+ length: 4
7
+ - name: acwtime
8
+ type: int
9
+ length: 4
10
+ - name: onholdtime
11
+ type: int
12
+ length: 4
13
+ - name: consulttime
14
+ type: int
15
+ length: 4
16
+ - name: disptime
17
+ type: int
18
+ length: 4
19
+ - name: duration
20
+ type: int
21
+ length: 4
22
+ - name: segstart
23
+ type: datetime
24
+ length: 4
25
+ - name: segstop
26
+ type: datetime
27
+ length: 4
28
+ - name: talktime
29
+ type: int
30
+ length: 4
31
+ - name: netintime
32
+ type: int
33
+ length: 4
34
+ - name: origholdtime
35
+ type: int
36
+ length: 4
37
+ - name: dispivector
38
+ type: int
39
+ length: 2
40
+ - name: dispsplit
41
+ type: int
42
+ length: 2
43
+ - name: firstivector
44
+ type: int
45
+ length: 2
46
+ - name: split1
47
+ type: int
48
+ length: 2
49
+ - name: split2
50
+ type: int
51
+ length: 2
52
+ - name: split3
53
+ type: int
54
+ length: 2
55
+ - name: trunkgroup
56
+ type: int
57
+ length: 2
58
+ - name: tklocid
59
+ type: int
60
+ length: 2
61
+ - name: origlocid
62
+ type: int
63
+ length: 2
64
+ - name: answerlocid
65
+ type: int
66
+ length: 2
67
+ - name: obslocid
68
+ type: int
69
+ length: 2
70
+ - name: assist
71
+ type: bool
72
+ length: 1
73
+ - name: audiodifficulty
74
+ type: bool
75
+ length: 1
76
+ - name: conference
77
+ type: bool
78
+ length: 1
79
+ - name: daqueued
80
+ type: bool
81
+ length: 1
82
+ - name: holdabn
83
+ type: bool
84
+ length: 1
85
+ - name: malicious
86
+ type: bool
87
+ length: 1
88
+ - name: observingcall
89
+ type: bool
90
+ length: 1
91
+ - name: transferred
92
+ type: bool
93
+ length: 1
94
+ - name: agentreleased
95
+ type: boolint
96
+ length: 1
97
+ - name: acdnum
98
+ type: int
99
+ length: 1
100
+ - name: calldisp
101
+ type: int
102
+ length: 1
103
+ - name: disppriority
104
+ type: int
105
+ length: 1
106
+ - name: holds
107
+ type: int
108
+ length: 1
109
+ - name: segment
110
+ type: int
111
+ length: 1
112
+ - name: ansreason
113
+ type: int
114
+ length: 1
115
+ - name: origreason
116
+ type: int
117
+ length: 1
118
+ - name: dispsklevel
119
+ type: int
120
+ length: 1
121
+ - name: events0
122
+ type: int
123
+ length: 1
124
+ - name: events1
125
+ type: int
126
+ length: 1
127
+ - name: events2
128
+ type: int
129
+ length: 1
130
+ - name: events3
131
+ type: int
132
+ length: 1
133
+ - name: events4
134
+ type: int
135
+ length: 1
136
+ - name: events5
137
+ type: int
138
+ length: 1
139
+ - name: events6
140
+ type: int
141
+ length: 1
142
+ - name: events7
143
+ type: int
144
+ length: 1
145
+ - name: events8
146
+ type: int
147
+ length: 1
148
+ - name: ucid
149
+ type: str
150
+ length: 21
151
+ - name: dispvdn
152
+ type: str
153
+ length: 8
154
+ - name: eqloc
155
+ type: str
156
+ length: 10
157
+ - name: firstvdn
158
+ type: str
159
+ length: 8
160
+ - name: origlogid
161
+ type: str
162
+ length: 10
163
+ - name: anslogid
164
+ type: str
165
+ length: 10
166
+ - name: lastobserver
167
+ type: str
168
+ length: 10
169
+ - name: dialednumber
170
+ type: str
171
+ length: 25
172
+ - name: callingparty
173
+ type: str
174
+ length: 13
175
+ - name: collectdigits
176
+ type: str
177
+ length: 17
178
+ - name: cwcdigits
179
+ type: str
180
+ length: 17
181
+ - name: callingII
182
+ type: str
183
+ length: 3
184
+ - name: cwcs0
185
+ type: str
186
+ length: 17
187
+ - name: cwcs1
188
+ type: str
189
+ length: 17
190
+ - name: cwcs2
191
+ type: str
192
+ length: 17
193
+ - name: cwcs3
194
+ type: str
195
+ length: 17
196
+ - name: cwcs4
197
+ type: str
198
+ length: 17
199
+
200
+ #ACD table definition derived from acd.dat
201
+ echi_acds:
202
+ - name: acd_id
203
+ type: str
204
+ length: 255
205
+ - name: number
206
+ type: str
207
+ length: 255
208
+ - name: name
209
+ type: str
210
+ length: 255
211
+
212
+ #Agents table definition derived from agname.dat
213
+ echi_agents:
214
+ - name: group_id
215
+ type: str
216
+ length: 255
217
+ - name: login_id
218
+ type: str
219
+ length: 255
220
+ - name: name
221
+ type: str
222
+ length: 255
223
+
224
+ #Aux Reasons table definition derived from aux_rsn.dat
225
+ echi_aux_reasons:
226
+ - name: group_id
227
+ type: str
228
+ length: 255
229
+ - name: aux_reason
230
+ type: str
231
+ length: 255
232
+ - name: name
233
+ type: str
234
+ length: 255
235
+
236
+ #CWC definition derived from cwc.dat
237
+ echi_cwcs:
238
+ - name: group_id
239
+ type: str
240
+ length: 255
241
+ - name: cwc
242
+ type: str
243
+ length: 255
244
+ - name: name
245
+ type: str
246
+ length: 255
247
+
248
+ #Split table definition derived from split.dat
249
+ echi_splits:
250
+ - name: acd_number
251
+ type: str
252
+ length: 255
253
+ - name: number
254
+ type: str
255
+ length: 255
256
+ - name: name
257
+ type: str
258
+ length: 255
259
+
260
+ #Trunk Group table definition derived from tkgrp.dat
261
+ echi_trunk_groups:
262
+ - name: acd_number
263
+ type: str
264
+ length: 255
265
+ - name: trunk_group
266
+ type: str
267
+ length: 255
268
+ - name: name
269
+ type: str
270
+ length: 255
271
+
272
+ #VDN definition derived from vdn.dat
273
+ echi_vdns:
274
+ - name: group_id
275
+ type: str
276
+ length: 255
277
+ - name: vdn
278
+ type: str
279
+ length: 255
280
+ - name: name
281
+ type: str
282
+ length: 255
283
+
284
+ #Vector definition derived from vector.dat
285
+ echi_vectors:
286
+ - name: acd_number
287
+ type: str
288
+ length: 255
289
+ - name: number
290
+ type: str
291
+ length: 255
292
+ - name: name
293
+ type: str
294
+ length: 255