Move /asn1 to /epan/dissectors
[metze/wireshark/wip.git] / epan / dissectors / asn1 / gprscdr / GenericChargingDataTypes.asn
1 -- 3GPP TS 32.298 V9.6.0 (2010-12)
2 GenericChargingDataTypes {itu-t (0) identified-organization (4) etsi(0) mobileDomain (0) charging (5) genericChargingDataTypes (0) asn1Module (0) version1 (0)}
3
4 DEFINITIONS IMPLICIT TAGS       ::=
5
6 BEGIN
7
8 -- EXPORTS everything
9
10 IMPORTS
11
12 CallReferenceNumber, NumberOfForwarding
13 FROM MAP-CH-DataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-CH-DataTypes (13) version6 (6) }
14 -- from TS 29.002 [214]
15
16 AddressString, BasicServiceCode, IMSI, IMEI, ISDN-AddressString, LCSClientExternalID, LCSClientInternalID
17 FROM MAP-CommonDataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-CommonDataTypes (18) version6 (6) }
18 -- from TS 29.002 [214]
19
20 DestinationRoutingAddress
21 FROM CAP-DataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0)
22 gsm-Network (1) modules (3) cap-datatypes (52) version1 (0) }
23 -- from TS 29.078 [217]
24
25 DefaultCallHandling, DefaultSMS-Handling, NotificationToMSUser, ServiceKey
26 FROM MAP-MS-DataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0)
27 gsm-Network (1) modules (3) map-MS-DataTypes (11) version6 (6) }
28 -- from TS 29.002 [214]
29
30 Ext-GeographicalInformation, LCSClientType, LCS-Priority, LocationType
31 FROM MAP-LCS-DataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-LCS-DataTypes (25) version7 (7)}
32 -- from TS 29.002 [214]
33
34 PositionMethodFailure-Diagnostic, UnauthorizedLCSClient-Diagnostic
35 FROM MAP-ER-DataTypes { itu-t identified-organization (4) etsi (0) mobileDomain (0) gsm-Network (1) modules (3) map-ER-DataTypes (17) version7 (7)}
36 --
37 -- from TS 29.002 [214]
38 --
39
40 BasicService
41 FROM Basic-Service-Elements     { itu-t identified-organization (4) etsi (0)
42 196 basic-service-elements (8) }
43 --
44 -- from "Digital Subscriber Signalling System No. one (DSS1) protocol" ETS 300 196 [310]
45 --
46
47 ObjectInstance
48 FROM CMIP-1 {joint-iso-itu-t ms (9) cmip (1) version1 (1) protocol (3)}
49 --
50 -- from Rec. X.2ab[304]  Editor's note:  clarify if this definition is still needed.  It appears that it ends in Nirvana.
51
52 -- WS imports locally
53 --ManagementExtension
54 --FROM Attribute-ASN1Module {joint-iso-itu-t ms (9) smi (3) part2 (2) asn1Module (2) 1}
55 --
56 -- from Rec. X.721 [305]  Editor's note:  clarify if this definition is still needed.
57 --
58
59 AE-title
60 FROM ACSE-1 {joint-iso-itu-t association-control (2) abstract-syntax (1) apdus (0) version (1) };
61 --
62 -- From Rec. X.2cd[306].  Note that the syntax of AE-title to be used is from
63 -- ITU-T Rec. X.227 / ISO 8650 corrigendum and not "ANY"
64 --  Editor's note:  clarify if this definition is still needed.  It appears that it ends in Nirvana.
65 -- ;
66 ------------------------------------------------------------------------------
67 --
68 --  Generic Data Types
69 --
70 ------------------------------------------------------------------------------
71
72 BCDDirectoryNumber              ::= OCTET STRING
73 --
74 -- This type contains the binary coded decimal representation of
75 -- a directory number e.g. calling/called/connected/translated number.
76 -- The encoding of the octet string is in accordance with the
77 -- the elements "Calling party BCD number", "Called party BCD number"
78 -- and "Connected number" defined in TS 24.008 [208].
79 -- This encoding includes type of number and number plan information
80 -- together with a BCD encoded digit string.
81 -- It may also contain both a presentation and screening indicator
82 -- (octet 3a).
83 -- For the avoidance of doubt, this field does not include
84         -- octets 1 and 2, the element name and length, as this would be
85 -- redundant.
86 --
87
88 CallDuration                    ::= INTEGER
89 --
90 -- The call duration is counted in seconds.
91 -- For successful calls /sessions / PDP contexts, this is the chargeable duration.
92 -- For call attempts this is the call holding time.
93 --
94
95 -- Editor's note:  the explanation above should be removed as proper definitions are required in the individual CDR parameter descriptions in TS 32.250[10] - TS 32.275 [35]
96
97 CalledNumber                    ::= BCDDirectoryNumber
98
99 RecordType      ::= INTEGER
100 {--
101 --      Record values 0..17 are CS specific.
102 --      The contents are defined in TS 32.250 [10]
103
104         moCallRecord            (0),
105         mtCallRecord            (1),
106         roamingRecord           (2),
107         incGatewayRecord        (3),
108         outGatewayRecord        (4),
109         transitCallRecord       (5),
110         moSMSRecord                     (6),
111         mtSMSRecord                     (7),
112         moSMSIWRecord           (8),
113         mtSMSGWRecord           (9),
114         ssActionRecord          (10),
115         hlrIntRecord            (11),
116         locUpdateHLRRecord      (12),
117         locUpdateVLRRecord      (13),
118         commonEquipRecord       (14),
119         moTraceRecord           (15),   --- used in earlier releases
120         mtTraceRecord           (16),   --- used in earlier releases
121         termCAMELRecord     (17),
122 --
123 --      Record values 18..22 are GPRS specific.
124 --      The contents are defined in TS 32.251 [11]
125 --
126         sgsnPDPRecord           (18),
127         sgsnMMRecord            (20),
128         sgsnSMORecord           (21),
129         sgsnSMTRecord           (22),
130 --
131 --  Record values 23..25 are CS-LCS specific.
132 --      The contents are defined in TS 32.250 [10]
133 --
134         mtLCSRecord                     (23),
135         moLCSRecord                     (24),
136         niLCSRecord                     (25),
137 --
138 --  Record values 26..28 are GPRS-LCS specific.
139 --      The contents are defined in TS 32.251 [11]
140 --
141         sgsnMtLCSRecord         (26),
142     sgsnMoLCSRecord             (27),
143     sgsnNiLCSRecord             (28),
144 --
145 --  Record values 30..62 are MMS specific.
146 --  The contents are defined in TS 32.270 [30]
147 --
148         mMO1SRecord                     (30),
149         mMO4FRqRecord           (31),
150         mMO4FRsRecord           (32),
151         mMO4DRecord                     (33),
152         mMO1DRecord                     (34),
153         mMO4RRecord                     (35),
154         mMO1RRecord                     (36),
155         mMOMDRecord                     (37),
156         mMR4FRecord                     (38),
157         mMR1NRqRecord           (39),
158         mMR1NRsRecord           (40),
159         mMR1RtRecord            (41),
160         mMR1AFRecord            (42),
161         mMR4DRqRecord           (43),
162         mMR4DRsRecord           (44),
163         mMR1RRRecord            (45),
164         mMR4RRqRecord           (46),
165         mMR4RRsRecord           (47),
166         mMRMDRecord                     (48),
167         mMFRecord                       (49),
168         mMBx1SRecord            (50),
169         mMBx1VRecord            (51),
170         mMBx1URecord            (52),
171         mMBx1DRecord            (53),
172         mM7SRecord                      (54),
173         mM7DRqRecord            (55),
174         mM7DRsRecord            (56),
175         mM7CRecord                      (57),
176         mM7RRecord                      (58),
177         mM7DRRqRecord           (59),
178         mM7DRRsRecord           (60),
179         mM7RRqRecord            (61),
180         mM7RRsRecord            (62),
181 --
182 --  Record values 63..69, 70, 82 are IMS specific.
183 --  The contents are defined in TS 32.260 [20]
184 --
185         sCSCFRecord                     (63),
186         pCSCFRecord                     (64),
187         iCSCFRecord                     (65),
188         mRFCRecord                      (66),
189         mGCFRecord                      (67),
190         bGCFRecord                      (68),
191         aSRecord                        (69),
192         eCSCFRecord                     (70),
193         iBCFRecord                      (82),
194 --
195 --  Record values 71..75 are LCS specific.
196 --  The contents are defined in TS 32.271 [31]
197 --
198         lCSGMORecord            (71),
199         lCSRGMTRecord           (72),
200         lCSHGMTRecord           (73),
201         lCSVGMTRecord           (74),
202         lCSGNIRecord            (75),
203 --
204 --  Record values 76..79,86 are MBMS specific.
205 --  The contents are defined in TS 32.251 [11]
206 --  Record values 76,77 and 86 are MBMS bearer context specific
207 --
208         sgsnMBMSRecord          (76),
209         ggsnMBMSRecord          (77),
210         gwMBMSRecord            (86),
211
212 --
213 --  And TS 32.273 [33]
214 --  Record values 78 and 79 are MBMS service specific
215 --  and defined in TS 32.273 [33]
216 --
217         sUBBMSCRecord           (78),
218         cONTENTBMSCRecord       (79),
219 --
220 --  Record Values 80..81 are PoC specific.
221 --  The contents are defined in TS 32.272 [32]
222 --
223         pPFRecord                       (80),
224         cPFRecord                       (81),
225
226 --  Record values 84..85 are EPC specific.
227 --  The contents are defined in TS 32.251 [11]
228 --
229         sGWRecord                       (84),
230         pGWRecord                       (85),
231 --
232 --  Record Value 83 is MMTel specific.
233 --  The contents are defined in TS 32.275 [35]
234 --
235         mMTelRecord                     (83)
236 }
237
238 CallingNumber   ::= BCDDirectoryNumber
239
240 CallReference                   ::= INTEGER
241
242 CellId  ::= OCTET STRING (SIZE(2))
243 --
244 -- Coded according to TS 24.008 [208]
245 --
246
247 ChargeIndicator                 ::= INTEGER
248 {
249         noCharge                        (0),
250         charge                          (1)
251 }
252
253 Diagnostics                                             ::= CHOICE
254 {
255         gsm0408Cause                            [0] INTEGER,
256         -- See TS 24.008 [208]
257         gsm0902MapErrorValue            [1] INTEGER,
258         -- Note: The value to be stored here corresponds to
259         -- the local values defined in the MAP-Errors and
260         -- MAP-DialogueInformation modules, for full details
261         -- see TS 29.002 [214].
262         itu-tQ767Cause                          [2] INTEGER,
263         -- See Q.767 [309]
264         networkSpecificCause            [3] ManagementExtension,
265         -- To be defined by network operator
266         manufacturerSpecificCause       [4] ManagementExtension,
267         -- To be defined by manufacturer
268         positionMethodFailureCause      [5] PositionMethodFailure-Diagnostic,
269         -- see TS 29.002 [214]
270         unauthorizedLCSClientCause      [6] UnauthorizedLCSClient-Diagnostic
271         -- see TS 29.002 [214]
272 }
273
274 IPAddress       ::= CHOICE
275 {
276         iPBinaryAddress  IPBinaryAddress,
277         iPTextRepresentedAddress         IPTextRepresentedAddress
278 }
279
280 IPBinaryAddress ::= CHOICE
281 {
282         iPBinV4Address                  [0] OCTET STRING (SIZE(4)),
283         iPBinV6Address                  [1] OCTET STRING (SIZE(16))
284 }
285
286 IPTextRepresentedAddress        ::= CHOICE
287 {       --
288         -- IP address in the familiar "dot" notation
289         --
290         iPTextV4Address                 [2] IA5String (SIZE(7..15)),
291         iPTextV6Address                 [3] IA5String (SIZE(15..45))
292 }
293
294 LCSCause                                ::= OCTET STRING (SIZE(1))
295 --
296 -- See LCS Cause Value, TS 49.031 [227]
297 --
298
299 LCSClientIdentity               ::= SEQUENCE
300 {
301         lcsClientExternalID     [0] LCSClientExternalID OPTIONAL,
302         lcsClientDialedByMS     [1] AddressString OPTIONAL,
303         lcsClientInternalID     [2] LCSClientInternalID OPTIONAL
304 }
305
306 LCSQoSInfo                              ::= OCTET STRING (SIZE(4))
307 --
308 -- See LCS QoS IE, TS 49.031 [227]
309 --
310
311 LevelOfCAMELService             ::= BIT STRING
312 {
313         basic                                           (0),
314         callDurationSupervision         (1),
315         onlineCharging                          (2)
316 }
317
318 LocalSequenceNumber ::= INTEGER (0..4294967295)
319 --
320 -- Sequence number of the record in this node
321 -- 0.. 4294967295 is equivalent to 0..2**32-1, unsigned integer in four octets
322 --
323
324 LocationAreaAndCell             ::= SEQUENCE
325 {
326         locationAreaCode        [0] LocationAreaCode,
327         cellId                          [1] CellId,
328         mCC-MNC                         [2] MCC-MNC OPTIONAL
329 }
330
331 LocationAreaCode                ::= OCTET STRING (SIZE(2))
332 --
333 -- See TS 24.008 [208]
334 --
335
336 MCC-MNC         ::= OCTET STRING (SIZE(3))
337 --
338 -- See TS 24.008 [208]
339 --
340
341 ManagementExtensions    ::= SET OF ManagementExtension
342
343 MessageReference                ::= OCTET STRING
344
345 MscNo                                   ::= ISDN-AddressString
346 --
347 -- See TS 23.003 [200]
348 --
349
350 MSISDN                                  ::= ISDN-AddressString
351 --
352 -- See TS 23.003 [200]
353 --
354
355 MSTimeZone      ::= OCTET STRING (SIZE (2))
356 --
357 -- 1.Octet: Time Zone and 2. Octet: Daylight saving time, see TS 29.060 [215]
358 --
359
360 NodeAddress ::= CHOICE
361 {
362         iPAddress       [0] IPAddress,
363         domainName      [1] GraphicString
364 }
365
366 PositioningData ::= OCTET STRING (SIZE(1..33))
367 --
368 -- See Positioning Data IE (octet 3..n), TS 49.031 [227]
369 --
370
371 RecordingEntity                 ::= AddressString
372
373 ServiceContextID                ::= UTF8String
374
375 ServiceSpecificInfo  ::=  SEQUENCE
376 {
377         serviceSpecificData             [0] GraphicString OPTIONAL,
378         serviceSpecificType             [1] INTEGER OPTIONAL
379 }
380
381 SMSResult                                       ::= Diagnostics
382
383 SmsTpDestinationNumber ::= OCTET STRING
384 --
385 -- This type contains the binary coded decimal representation of
386 -- the SMS address field the encoding of the octet string is in
387 -- accordance with the definition of address fields in TS 23.040 [201].
388 -- This encoding includes type of number and numbering plan indication
389 -- together with the address value range.
390 --
391
392 SubscriptionID  ::= SET
393 {
394         subscriptionIDType      [0]     SubscriptionIDType,
395         subscriptionIDData      [1]     UTF8String
396 }
397
398 SubscriptionIDType      ::= ENUMERATED
399 {
400         eND-USER-E164           (0),
401         eND-USER-IMSI           (1),
402         eND-USER-SIP-URI        (2),
403         eND-USER-NAI            (3),
404         eND-USER-PRIVATE        (4)
405 }
406
407 SystemType      ::= ENUMERATED
408 {       --
409         --  "unknown" is not to be used in PS domain.
410         --
411         unknown                         (0),
412         iuUTRAN                         (1),
413         gERAN                           (2)
414 }
415
416 TimeStamp                                       ::= OCTET STRING (SIZE(9))
417 --
418 -- The contents of this field are a compact form of the UTCTime format
419 -- containing local time plus an offset to universal time. Binary coded
420 -- decimal encoding is employed for the digits to reduce the storage and
421 -- transmission overhead
422 -- e.g. YYMMDDhhmmssShhmm
423 -- where
424 -- YY   =       Year 00 to 99           BCD encoded
425 -- MM   =       Month 01 to 12          BCD encoded
426 -- DD   =       Day 01 to 31            BCD encoded
427 -- hh   =       hour 00 to 23           BCD encoded
428 -- mm   =       minute 00 to 59         BCD encoded
429 -- ss   =       second 00 to 59         BCD encoded
430 -- S    =       Sign 0 = "+", "-"       ASCII encoded
431 -- hh   =       hour 00 to 23           BCD encoded
432 -- mm   =       minute 00 to 59         BCD encoded
433 --
434
435
436 -- Local WS modification Import ManagementExtension here
437 -- as2wrs fault fix:
438 DMI-EXTENSION::= CLASS {&id     OBJECT IDENTIFIER UNIQUE,
439                                &Value
440 }WITH SYNTAX {TYPE &Value
441               ID &id
442 }
443
444 ManagementExtension ::= SEQUENCE {
445   identifier    DMI-EXTENSION.&id({ManagementExtensionSet}),
446   significance  [1]  BOOLEAN DEFAULT FALSE,
447   information
448     [2]  DMI-EXTENSION.&Value({ManagementExtensionSet}{@.identifier})
449 }
450
451 ManagementExtensionSet DMI-EXTENSION ::=
452   {...}
453
454 END