~ubuntu-branches/debian/squeeze/erlang/squeeze

« back to all changes in this revision

Viewing changes to lib/asn1/test/asn1_SUITE_data/Mvrasn-18-6.asn

  • Committer: Bazaar Package Importer
  • Author(s): Sergei Golovan
  • Date: 2010-03-09 17:34:57 UTC
  • mfrom: (10.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20100309173457-4yd6hlcb2osfhx31
Tags: 1:13.b.4-dfsg-3
Manpages in section 1 are needed even if only arch-dependent packages are
built. So, re-enabled them.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
-- module(Mvrasn-18-6).
 
2
-- vsn('%CCaseRev: %').
 
3
-- date('%CCaseDate: %').
 
4
-- author('etord').    
 
5
-- =============================================================================
 
6
 
 
7
-- =============================================================================
 
8
--
 
9
-- Title       : "Common data types".
 
10
--
 
11
-- ASN.1 module: "MAP-CommonDataTypes".
 
12
--
 
13
-- =============================================================================
 
14
 
 
15
-- ==============================================================
 
16
-- #1.    REVISION LOG
 
17
-- ==============================================================
 
18
-- Rev   Date    Name     What
 
19
-- .... ....... .......  ........................................
 
20
-- PA1  010813  etord    First draft, based on GSM 29.002 v. 3.8.0.
 
21
-- ..............................................................
 
22
 
 
23
Mvrasn-18-6
 
24
 
 
25
DEFINITIONS
 
26
 
 
27
IMPLICIT TAGS
 
28
 
 
29
::=
 
30
 
 
31
BEGIN
 
32
 
 
33
EXPORTS
 
34
 
 
35
        -- general data types and values
 
36
        AddressString,
 
37
        ISDN-AddressString,
 
38
        maxISDN-AddressLength,
 
39
        FTN-AddressString,
 
40
        ISDN-SubaddressString,
 
41
        ExternalSignalInfo, 
 
42
        Ext-ExternalSignalInfo, 
 
43
        AccessNetworkSignalInfo,
 
44
        SignalInfo,
 
45
        maxSignalInfoLength,
 
46
        AlertingPattern,
 
47
 
 
48
        -- data types for numbering and identification
 
49
        IMSI,
 
50
        TMSI, 
 
51
        Identity,
 
52
        SubscriberId,
 
53
        IMEI,
 
54
        HLR-List,
 
55
        LMSI,
 
56
        GlobalCellId,
 
57
        NetworkResource,
 
58
        NAEA-PreferredCI, 
 
59
        NAEA-CIC, 
 
60
        ASCI-CallReference,
 
61
        SubscriberIdentity,
 
62
 
 
63
        -- data types for CAMEL
 
64
        CellGlobalIdOrServiceAreaIdOrLAI,
 
65
 
 
66
        -- data types for subscriber management
 
67
        BasicServiceCode,
 
68
        Ext-BasicServiceCode,
 
69
        EMLPP-Info,
 
70
        EMLPP-Priority, 
 
71
        MC-SS-Info,
 
72
        MaxMC-Bearers,
 
73
        MC-Bearers,
 
74
        Ext-SS-Status,
 
75
 
 
76
        -- data types for geographic location
 
77
        AgeOfLocationInformation,
 
78
        LCSClientExternalID,
 
79
        LCSClientInternalID
 
80
;
 
81
 
 
82
IMPORTS
 
83
        TeleserviceCode,
 
84
        Ext-TeleserviceCode
 
85
FROM Mvrasn-19-6
 
86
 
 
87
        BearerServiceCode,
 
88
        Ext-BearerServiceCode
 
89
FROM Mvrasn-20-6
 
90
 
 
91
        SS-Code
 
92
FROM Mvrasn-15-6
 
93
 
 
94
        ExtensionContainer
 
95
FROM Mvrasn-21-4
 
96
;
 
97
 
 
98
 
 
99
-- general data types
 
100
 
 
101
TBCD-STRING ::= OCTET STRING
 
102
        -- This type (Telephony Binary Coded Decimal String) is used to
 
103
        -- represent several digits from 0 through 9, *, #, a, b, c, two
 
104
        -- digits per octet, each digit encoded 0000 to 1001 (0 to 9),
 
105
        -- 1010 (*), 1011 (#), 1100 (a), 1101 (b) or 1110 (c); 1111 used
 
106
        -- as filler when there is an odd number of digits.
 
107
 
 
108
        -- bits 8765 of octet n encoding digit 2n
 
109
        -- bits 4321 of octet n encoding digit 2(n-1) +1
 
110
 
 
111
AddressString ::= OCTET STRING (SIZE (1..maxAddressLength))
 
112
        -- This type is used to represent a number for addressing
 
113
        -- purposes. It is composed of
 
114
        --      a)      one octet for nature of address, and numbering plan
 
115
        --              indicator.
 
116
        --      b)      digits of an address encoded as TBCD-String.
 
117
 
 
118
        -- a)   The first octet includes a one bit extension indicator, a
 
119
        --              3 bits nature of address indicator and a 4 bits numbering
 
120
        --              plan indicator, encoded as follows:
 
121
 
 
122
        -- bit 8: 1  (no extension)
 
123
 
 
124
        -- bits 765: nature of address indicator
 
125
        --      000  unknown
 
126
        --      001  international number
 
127
        --      010  national significant number
 
128
        --      011  network specific number
 
129
        --      100  subscriber number
 
130
        --      101  reserved
 
131
        --      110  abbreviated number
 
132
        --      111  reserved for extension
 
133
 
 
134
        -- bits 4321: numbering plan indicator
 
135
        --      0000  unknown
 
136
        --      0001  ISDN/Telephony Numbering Plan (Rec CCITT E.164)
 
137
        --      0010  spare
 
138
        --      0011  data numbering plan (CCITT Rec X.121)
 
139
        --      0100  telex numbering plan (CCITT Rec F.69)
 
140
        --      0101  spare
 
141
        --      0110  land mobile numbering plan (CCITT Rec E.212)
 
142
        --      0111  spare
 
143
        --      1000  national numbering plan
 
144
        --      1001  private numbering plan
 
145
        --      1111  reserved for extension
 
146
 
 
147
        --      all other values are reserved.
 
148
 
 
149
        -- b)   The following octets representing digits of an address
 
150
        --              encoded as a TBCD-STRING.
 
151
 
 
152
maxAddressLength  INTEGER ::= 20
 
153
 
 
154
ISDN-AddressString ::= 
 
155
                        AddressString (SIZE (1..maxISDN-AddressLength))
 
156
        -- This type is used to represent ISDN numbers.
 
157
 
 
158
maxISDN-AddressLength  INTEGER ::= 9
 
159
 
 
160
FTN-AddressString ::= 
 
161
                        AddressString (SIZE (1..maxFTN-AddressLength))
 
162
        -- This type is used to represent forwarded-to numbers.
 
163
 
 
164
maxFTN-AddressLength  INTEGER ::= 15
 
165
 
 
166
ISDN-SubaddressString ::= 
 
167
                        OCTET STRING (SIZE (1..maxISDN-SubaddressLength))
 
168
        -- This type is used to represent ISDN subaddresses.
 
169
        -- It is composed of
 
170
        --      a)      one octet for type of subaddress and odd/even indicator.
 
171
        --      b)      20 octets for subaddress information.
 
172
 
 
173
        --      a)      The first octet includes a one bit extension indicator, a
 
174
        --              3 bits type of subaddress and a one bit odd/even indicator,
 
175
        --              encoded as follows:
 
176
 
 
177
        --      bit 8: 1  (no extension)
 
178
 
 
179
        --      bits 765: type of subaddress
 
180
        --              000  NSAP (X.213/ISO 8348 AD2)
 
181
        --              010  User Specified
 
182
        --              All other values are reserved
 
183
 
 
184
        --      bit 4: odd/even indicator
 
185
        --              0  even number of address signals
 
186
        --              1  odd number of address signals
 
187
        --              The odd/even indicator is used when the type of subaddress
 
188
        --              is "user specified" and the coding is BCD.
 
189
 
 
190
        --      bits 321: 000 (unused)
 
191
 
 
192
        --      b) Subaddress information.
 
193
        --      The NSAP X.213/ISO8348AD2 address shall be formatted as specified
 
194
        --      by octet 4 which contains the Authority and Format Identifier
 
195
        --      (AFI). The encoding is made according to the "preferred binary
 
196
        --      encoding" as defined in X.213/ISO834AD2. For the definition
 
197
        --      of this type of subaddress, see CCITT Rec I.334.
 
198
 
 
199
        --      For User-specific subaddress, this field is encoded according
 
200
        --      to the user specification, subject to a maximum length of 20
 
201
        --      octets. When interworking with X.25 networks BCD coding should
 
202
        --      be applied.
 
203
 
 
204
maxISDN-SubaddressLength  INTEGER ::= 21
 
205
 
 
206
ExternalSignalInfo ::= SEQUENCE {
 
207
        protocolId      ProtocolId,
 
208
        signalInfo      SignalInfo,
 
209
        -- Information about the internal structure is given in
 
210
        -- subclause 7.6.9.
 
211
        extensionContainer      ExtensionContainer      OPTIONAL,
 
212
        -- extensionContainer must not be used in version 2
 
213
        ...}
 
214
 
 
215
SignalInfo ::= OCTET STRING (SIZE (1..maxSignalInfoLength))
 
216
 
 
217
maxSignalInfoLength  INTEGER ::= 200
 
218
        -- This NamedValue represents the theoretical maximum number of octets which is
 
219
        -- available to carry a single instance of the SignalInfo data type,
 
220
        -- without requiring segmentation to cope with the network layer service.
 
221
        -- However, the actual maximum size available for an instance of the data
 
222
        -- type may be lower, especially when other information elements
 
223
        -- have to be included in the same component.
 
224
 
 
225
ProtocolId ::= ENUMERATED {
 
226
        gsm-0408  (1),
 
227
        gsm-0806  (2),
 
228
        gsm-BSSMAP  (3),
 
229
        -- Value 3 is reserved and must not be used
 
230
        ets-300102-1  (4)}
 
231
 
 
232
Ext-ExternalSignalInfo ::= SEQUENCE {
 
233
        ext-ProtocolId  Ext-ProtocolId,
 
234
        signalInfo      SignalInfo,
 
235
        -- Information about the internal structure is given in
 
236
        -- subclause 7.6.9.10
 
237
        extensionContainer      ExtensionContainer      OPTIONAL,
 
238
        ...}
 
239
 
 
240
Ext-ProtocolId ::= ENUMERATED {
 
241
        ets-300356  (1),
 
242
        ... 
 
243
         }
 
244
-- exception handling:
 
245
-- For Ext-ExternalSignalInfo sequences containing this parameter with any
 
246
-- other value than the ones listed the receiver shall ignore the whole 
 
247
-- Ext-ExternalSignalInfo sequence.
 
248
 
 
249
AccessNetworkSignalInfo ::= SEQUENCE {
 
250
        accessNetworkProtocolId AccessNetworkProtocolId,
 
251
        signalInfo      LongSignalInfo,
 
252
        -- Information about the internal structure is given in
 
253
        extensionContainer      ExtensionContainer      OPTIONAL,
 
254
        ...}
 
255
 
 
256
LongSignalInfo ::= OCTET STRING (SIZE (1..maxLongSignalInfoLength))
 
257
 
 
258
maxLongSignalInfoLength  INTEGER ::= 2560
 
259
        -- This Named Value represents the maximum number of octets which is available
 
260
        -- to carry a single instance of the LongSignalInfo data type using
 
261
        -- White Book SCCP with the maximum number of segments.
 
262
        -- It takes account of the octets used by the lower layers of the protocol, and
 
263
        -- other information elements which may be included in the same component.
 
264
 
 
265
 
 
266
AccessNetworkProtocolId ::= ENUMERATED {
 
267
        gsm-0806   (1),
 
268
        ts3G-25413 (2),
 
269
        ...}
 
270
        -- exception handling:
 
271
        -- For AccessNetworkSignalInfo sequences containing this parameter with any
 
272
        -- other value than the ones listed the receiver shall ignore the whole 
 
273
        -- AccessNetworkSignalInfo sequence.
 
274
 
 
275
AlertingPattern ::= OCTET STRING (SIZE (1) )
 
276
        -- This type is used to represent Alerting Pattern
 
277
 
 
278
        --      bits 8765 : 0000 (unused)
 
279
 
 
280
        --      bits 43 : type of Pattern
 
281
        --              00 level
 
282
        --              01 category
 
283
        --              10 category
 
284
        --              all other values are reserved.
 
285
 
 
286
        --      bits 21 : type of alerting
 
287
 
 
288
alertingLevel-0   AlertingPattern ::= '00000000'B
 
289
alertingLevel-1   AlertingPattern ::= '00000001'B
 
290
alertingLevel-2   AlertingPattern ::= '00000010'B
 
291
        -- all other values of Alerting level are reserved
 
292
        -- Alerting Levels are defined in GSM 02.07
 
293
        
 
294
alertingCategory-1   AlertingPattern ::= '00000100'B
 
295
alertingCategory-2   AlertingPattern ::= '00000101'B
 
296
alertingCategory-3   AlertingPattern ::= '00000110'B
 
297
alertingCategory-4   AlertingPattern ::= '00000111'B
 
298
alertingCategory-5   AlertingPattern ::= '00001000'B
 
299
        -- all other values of Alerting Category are reserved
 
300
        -- Alerting categories are defined in GSM 02.07
 
301
 
 
302
 
 
303
-- data types for numbering and identification
 
304
 
 
305
IMSI ::= TBCD-STRING (SIZE (3..8))
 
306
        -- digits of MCC, MNC, MSIN are concatenated in this order.
 
307
 
 
308
Identity ::= CHOICE {
 
309
        imsi                    IMSI,
 
310
        imsi-WithLMSI   IMSI-WithLMSI}
 
311
 
 
312
IMSI-WithLMSI ::= SEQUENCE {
 
313
        imsi                    IMSI,
 
314
        lmsi                    LMSI,
 
315
        -- a special value 00000000 indicates that the LMSI is not in use
 
316
        ...}
 
317
 
 
318
ASCI-CallReference ::= TBCD-STRING (SIZE (1..8))
 
319
        -- digits of VGCS/VBC-area,Group-ID are concatenated in this order.
 
320
 
 
321
 
 
322
TMSI ::= OCTET STRING (SIZE (1..4))
 
323
 
 
324
SubscriberId ::= CHOICE {
 
325
        imsi                    [0] IMSI,
 
326
        tmsi                    [1] TMSI}
 
327
 
 
328
IMEI ::= TBCD-STRING (SIZE (8))
 
329
        --      Refers to International Mobile Station Equipment Identity
 
330
        --      and Software Version Number (SVN) defined in TS GSM 03.03.
 
331
        --      If the SVN is not present the last octet shall contain the
 
332
        --      digit 0 and a filler.
 
333
        --      If present the SVN shall be included in the last octet.
 
334
 
 
335
HLR-Id ::= IMSI
 
336
        -- leading digits of IMSI, i.e. (MCC, MNC, leading digits of
 
337
        -- MSIN) forming HLR Id defined in TS GSM 03.03.
 
338
 
 
339
HLR-List ::= SEQUENCE SIZE (1..maxNumOfHLR-Id) OF
 
340
                                HLR-Id
 
341
 
 
342
maxNumOfHLR-Id  INTEGER ::= 50
 
343
 
 
344
LMSI ::= OCTET STRING (SIZE (4))
 
345
 
 
346
GlobalCellId ::= OCTET STRING (SIZE (5..7))
 
347
        -- Refers to Cell Global Identification defined in TS GSM 03.03.
 
348
        -- The internal structure is defined as follows:
 
349
        -- octet 1 bits 4321    Mobile Country Code 1st digit
 
350
        --         bits 8765    Mobile Country Code 2nd digit
 
351
        -- octet 2 bits 4321    Mobile Country Code 3rd digit
 
352
        --         bits 8765    Mobile Network Code 3rd digit
 
353
        --                      or filler (1111) for 2 digit MNCs
 
354
        -- octet 3 bits 4321    Mobile Network Code 1st digit
 
355
        --         bits 8765    Mobile Network Code 2nd digit
 
356
        -- octets 4 and 5       Location Area Code according to TS GSM 04.08
 
357
        -- octets 6 and 7       Cell Identity (CI) according to TS GSM 04.08
 
358
 
 
359
NetworkResource ::= ENUMERATED {
 
360
        plmn  (0),
 
361
        hlr  (1),
 
362
        vlr  (2),
 
363
        pvlr  (3),
 
364
        controllingMSC  (4),
 
365
        vmsc  (5),
 
366
        eir  (6),
 
367
        rss  (7)}
 
368
 
 
369
NAEA-PreferredCI ::= SEQUENCE {
 
370
        naea-PreferredCIC       [0] NAEA-CIC,
 
371
        extensionContainer      [1] ExtensionContainer  OPTIONAL,
 
372
        ...}
 
373
 
 
374
NAEA-CIC ::= OCTET STRING (SIZE (3))
 
375
        -- The internal structure is defined by the Carrier Identification
 
376
        -- parameter in ANSI T1.113.3. Carrier codes between �000� and �999� may
 
377
        -- be encoded as 3 digits using �000� to �999� or as 4 digits using 
 
378
        -- �0000� to �0999�. Carrier codes between �1000� and �9999� are encoded
 
379
        -- using 4 digits.
 
380
 
 
381
SubscriberIdentity ::= CHOICE {
 
382
        imsi                    [0] IMSI,
 
383
        msisdn          [1] ISDN-AddressString
 
384
        }
 
385
 
 
386
LCSClientExternalID ::= SEQUENCE {
 
387
        externalAddress [0] AddressString       OPTIONAL,
 
388
        extensionContainer      [1] ExtensionContainer  OPTIONAL,
 
389
        ... }
 
390
 
 
391
LCSClientInternalID ::= ENUMERATED {
 
392
        broadcastService        (0),
 
393
        o-andM-HPLMN    (1),
 
394
        o-andM-VPLMN    (2),
 
395
        anonymousLocation       (3),
 
396
        targetMSsubscribedService       (4),
 
397
        ... }
 
398
-- for a CAMEL phase 3 PLMN operator client, the value targetMSsubscribedService shall be used
 
399
 
 
400
 
 
401
-- data types for CAMEL
 
402
 
 
403
CellGlobalIdOrServiceAreaIdOrLAI ::= CHOICE {
 
404
        cellGlobalIdOrServiceAreaIdFixedLength  [0] CellGlobalIdOrServiceAreaIdFixedLength,
 
405
        laiFixedLength  [1] LAIFixedLength}
 
406
 
 
407
CellGlobalIdOrServiceAreaIdFixedLength ::= OCTET STRING (SIZE (7))
 
408
        -- Refers to Cell Global Identification or Service Are Identification
 
409
        -- defined in 3G TS 23.003.
 
410
        -- The internal structure is defined as follows:
 
411
        -- octet 1 bits 4321    Mobile Country Code 1st digit
 
412
        --         bits 8765    Mobile Country Code 2nd digit
 
413
        -- octet 2 bits 4321    Mobile Country Code 3rd digit
 
414
        --         bits 8765    Mobile Network Code 3rd digit
 
415
        --                      or filler (1111) for 2 digit MNCs
 
416
        -- octet 3 bits 4321    Mobile Network Code 1st digit
 
417
        --         bits 8765    Mobile Network Code 2nd digit
 
418
        -- octets 4 and 5       Location Area Code according to 3G TS 24.008
 
419
        -- octets 6 and 7       Cell Identity (CI) value or 
 
420
        --                      Service Area Code (SAC) value 
 
421
        --                      according to 3G TS 23.003
 
422
 
 
423
LAIFixedLength ::= OCTET STRING (SIZE (5))
 
424
        -- Refers to Location Area Identification defined in TS GSM 03.03.
 
425
        -- The internal structure is defined as follows:
 
426
        -- octet 1 bits 4321    Mobile Country Code 1st digit
 
427
        --         bits 8765    Mobile Country Code 2nd digit
 
428
        -- octet 2 bits 4321    Mobile Country Code 3rd digit
 
429
        --         bits 8765    Mobile Network Code 3rd digit
 
430
        --                      or filler (1111) for 2 digit MNCs
 
431
        -- octet 3 bits 4321    Mobile Network Code 1st digit
 
432
        --         bits 8765    Mobile Network Code 2nd digit
 
433
        -- octets 4 and 5       Location Area Code according to TS GSM 04.08
 
434
 
 
435
 
 
436
-- data types for subscriber management
 
437
 
 
438
BasicServiceCode ::= CHOICE {
 
439
        bearerService   [2] BearerServiceCode,
 
440
        teleservice     [3] TeleserviceCode}
 
441
 
 
442
Ext-BasicServiceCode ::= CHOICE {
 
443
        ext-BearerService       [2] Ext-BearerServiceCode,
 
444
        ext-Teleservice [3] Ext-TeleserviceCode}
 
445
 
 
446
EMLPP-Info ::= SEQUENCE {
 
447
        maximumentitledPriority EMLPP-Priority,
 
448
        defaultPriority EMLPP-Priority,
 
449
        extensionContainer      ExtensionContainer      OPTIONAL,
 
450
        ...}
 
451
 
 
452
EMLPP-Priority ::= INTEGER (0..15)
 
453
        -- The mapping from the values A,B,0,1,2,3,4 to the integer-value is
 
454
        -- specified as follows where A is the highest and 4 is the lowest
 
455
        -- priority level
 
456
        -- the integer values 7-15 are spare and shall be mapped to value 4
 
457
 
 
458
priorityLevelA          EMLPP-Priority ::= 6
 
459
priorityLevelB          EMLPP-Priority ::= 5
 
460
priorityLevel0          EMLPP-Priority ::= 0
 
461
priorityLevel1          EMLPP-Priority ::= 1
 
462
priorityLevel2          EMLPP-Priority ::= 2
 
463
priorityLevel3          EMLPP-Priority ::= 3
 
464
priorityLevel4          EMLPP-Priority ::= 4
 
465
 
 
466
 
 
467
MC-SS-Info ::= SEQUENCE {
 
468
        ss-Code         [0] SS-Code,
 
469
        ss-Status               [1] Ext-SS-Status,
 
470
        nbrSB           [2] MaxMC-Bearers,
 
471
        nbrUser         [3] MC-Bearers,
 
472
        extensionContainer      [4] ExtensionContainer  OPTIONAL,
 
473
        ...}
 
474
 
 
475
MaxMC-Bearers ::= INTEGER (2..maxNumOfMC-Bearers)
 
476
 
 
477
MC-Bearers ::= INTEGER (1..maxNumOfMC-Bearers)
 
478
 
 
479
maxNumOfMC-Bearers  INTEGER ::= 7
 
480
 
 
481
 
 
482
Ext-SS-Status ::= OCTET STRING (SIZE (1..5))
 
483
 
 
484
        -- OCTET 1:
 
485
        --
 
486
        -- bits 8765: 0000 (unused)
 
487
        -- bits 4321: Used to convey the "P bit","R bit","A bit" and "Q bit",
 
488
        --                  representing supplementary service state information
 
489
        --                  as defined in TS GSM 03.11
 
490
 
 
491
        -- bit 4: "Q bit"
 
492
 
 
493
        -- bit 3: "P bit"
 
494
 
 
495
        -- bit 2: "R bit"
 
496
 
 
497
        -- bit 1: "A bit"
 
498
 
 
499
        -- OCTETS 2-5: reserved for future use. They shall be discarded if
 
500
        -- received and not understood.
 
501
 
 
502
 
 
503
 
 
504
        -- data types for geographic location
 
505
 
 
506
AgeOfLocationInformation ::= INTEGER (0..32767)
 
507
-- the value represents the elapsed time in minutes since the last
 
508
-- network contact of the mobile station (i.e. the actuality of the
 
509
-- location information).
 
510
-- value �0� indicates that the MS is currently in contact with the
 
511
--           network
 
512
-- value �32767� indicates that the location information is at least
 
513
--               32767 minutes old
 
514
 
 
515
END