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