260 lines
7.2 KiB
Groff
260 lines
7.2 KiB
Groff
MAPv2-CommonDataTypes {
|
|
ccitt identified-organization (4) etsi (0) mobileDomain (0)
|
|
gsm-Network (1) modules (3) map-CommonDataTypes (18) version2 (2)}
|
|
|
|
DEFINITIONS
|
|
|
|
IMPLICIT TAGS
|
|
|
|
::=
|
|
|
|
BEGIN
|
|
|
|
EXPORTS
|
|
|
|
AddressString,
|
|
ISDN-AddressString,
|
|
ISDN-SubaddressString,
|
|
ExternalSignalInfo,
|
|
SignalInfo,
|
|
maxSignalInfoLength,
|
|
|
|
IMSI,
|
|
TMSI,
|
|
SubscriberId,
|
|
IMEI,
|
|
LocationInfo,
|
|
HLR-List,
|
|
LMSI,
|
|
GlobalCellId,
|
|
NetworkResource,
|
|
|
|
Category,
|
|
BearerServiceList,
|
|
TeleserviceList,
|
|
BasicServiceCode,
|
|
BasicServiceList,
|
|
BasicServiceGroupList,
|
|
maxNumOfBasicServiceGroups
|
|
;
|
|
|
|
IMPORTS
|
|
TeleserviceCode
|
|
FROM MAPv2-TS-Code {
|
|
ccitt identified-organization (4) etsi (0) mobileDomain (0)
|
|
gsm-Network (1) modules (3) map-TS-Code (19) version2 (2)}
|
|
|
|
BearerServiceCode
|
|
FROM MAPv2-BS-Code {
|
|
ccitt identified-organization (4) etsi (0) mobileDomain (0)
|
|
gsm-Network (1) modules (3) map-BS-Code (20) version2 (2)}
|
|
;
|
|
|
|
|
|
|
|
TBCD-STRING ::= OCTET STRING
|
|
-- This type (Telephony Binary Coded Decimal String) is used to
|
|
-- represent several digits from 0 through 9, *, #, a, b, c, two
|
|
-- digits per octet, each digit encoded 0000 to 1001 (0 to 9),
|
|
-- 1010 (*), 1011 (#), 1100 (a), 1101 (b) or 1110 (c); 1111 used
|
|
-- as filler when there is an odd number of digits.
|
|
|
|
-- bits 8765 of octet n encoding digit 2n
|
|
-- bits 4321 of octet n encoding digit 2(n-1) +1
|
|
|
|
AddressString ::= OCTET STRING (SIZE (1..maxAddressLength))
|
|
-- This type is used to represent a number for addressing
|
|
-- purposes. It is composed of
|
|
-- a) one octet for nature of address, and numbering plan
|
|
-- indicator.
|
|
-- b) digits of an address encoded as TBCD-String.
|
|
|
|
-- a) The first octet includes a one bit extension indicator, a
|
|
-- 3 bits nature of address indicator and a 4 bits numbering
|
|
-- plan indicator, encoded as follows:
|
|
|
|
-- bit 8: 1 (no extension)
|
|
|
|
-- bits 765: nature of address indicator
|
|
-- 000 unknown
|
|
-- 001 international number
|
|
-- 010 national significant number
|
|
-- 011 network specific number
|
|
-- 100 subscriber number
|
|
-- 101 reserved
|
|
-- 110 abbreviated number
|
|
-- 111 reserved for extension
|
|
|
|
-- bits 4321: numbering plan indicator
|
|
-- 0000 unknown
|
|
-- 0001 ISDN/Telephony Numbering Plan (Rec CCITT E.164)
|
|
-- 0010 spare
|
|
-- 0011 data numbering plan (CCITT Rec X.121)
|
|
-- 0100 telex numbering plan (CCITT Rec F.69)
|
|
-- 0101 spare
|
|
-- 0110 land mobile numbering plan (CCITT Rec E.212)
|
|
-- 0111 spare
|
|
-- 1000 national numbering plan
|
|
-- 1001 private numbering plan
|
|
-- 1111 reserved for extension
|
|
|
|
-- all other values are reserved.
|
|
|
|
-- b) The following octets representing digits of an address
|
|
-- encoded as a TBCD-STRING.
|
|
|
|
maxAddressLength INTEGER ::= 20
|
|
|
|
ISDN-AddressString ::=
|
|
AddressString (SIZE (1..maxISDN-AddressLength))
|
|
-- This type is used to represent ISDN numbers.
|
|
|
|
maxISDN-AddressLength INTEGER ::= 9
|
|
|
|
ISDN-SubaddressString ::=
|
|
OCTET STRING (SIZE (1..maxISDN-SubaddressLength))
|
|
-- This type is used to represent ISDN subaddresses.
|
|
-- It is composed of
|
|
-- a) one octet for type of subaddress and odd/even indicator.
|
|
-- b) 20 octets for subaddress information.
|
|
|
|
-- a) The first octet includes a one bit extension indicator, a
|
|
-- 3 bits type of subaddress and a one bit odd/even indicator,
|
|
-- encoded as follows:
|
|
|
|
-- bit 8: 1 (no extension)
|
|
|
|
-- bits 765: type of subaddress
|
|
-- 000 NSAP (X.213/ISO 8348 AD2)
|
|
-- 010 User Specified
|
|
-- All other values are reserved
|
|
|
|
-- bit 4: odd/even indicator
|
|
-- 0 even number of address signals
|
|
-- 1 odd number of address signals
|
|
-- The odd/even indicator is used when the type of subaddress
|
|
-- is "user specified" and the coding is BCD.
|
|
|
|
-- bits 321: 000 (unused)
|
|
|
|
-- b) Subaddress information.
|
|
-- The NSAP X.213/ISO8348AD2 address shall be formatted as specified
|
|
-- by octet 4 which contains the Authority and Format Identifier
|
|
-- (AFI). The encoding is made according to the "preferred binary
|
|
-- encoding" as defined in X.213/ISO834AD2. For the definition
|
|
-- of this type of subaddress, see CCITT Rec I.334.
|
|
|
|
-- For User-specific subaddress, this field is encoded according
|
|
-- to the user specification, subject to a maximum length of 20
|
|
-- octets. When interworking with X.25 networks BCD coding should
|
|
-- be applied.
|
|
|
|
maxISDN-SubaddressLength INTEGER ::= 21
|
|
|
|
ExternalSignalInfo ::= SEQUENCE {
|
|
protocolId ProtocolId,
|
|
signalInfo SignalInfo,
|
|
...}
|
|
-- Information about the internal structure is given in
|
|
-- subclause 5.6.9.
|
|
|
|
SignalInfo ::= OCTET STRING (SIZE (1..maxSignalInfoLength))
|
|
|
|
maxSignalInfoLength INTEGER ::= 200
|
|
-- This NamedValue represents the theoretical maximum number of
|
|
-- octets which are available to carry a single data type,
|
|
-- without requiring segmentation to cope with the network layer
|
|
-- service. However, the actual maximum size available for a data
|
|
-- type may be lower, especially when other information elements
|
|
-- have to be included in the same component.
|
|
|
|
ProtocolId ::= ENUMERATED {
|
|
gsm-0408 (1),
|
|
gsm-0806 (2),
|
|
gsm-BSSMAP (3),
|
|
-- NU1 NU2 Value 3 must not be used in version 1 and
|
|
-- must not be used in version 2.
|
|
ets-300102-1 (4)}
|
|
|
|
IMSI ::= TBCD-STRING (SIZE (3..8))
|
|
-- digits of MCC, MNC, MSIN are concatenated in this order.
|
|
|
|
TMSI ::= OCTET STRING (SIZE (1..4))
|
|
|
|
SubscriberId ::= CHOICE {
|
|
imsi [0] IMSI,
|
|
tmsi [1] TMSI}
|
|
|
|
IMEI ::= TBCD-STRING (SIZE (8))
|
|
-- Refers to International Mobile Station Equipment Identity
|
|
-- and Software Version Number (SVN) defined in GSM 03.03.
|
|
-- If the SVN is not present the last octet shall contain the
|
|
-- digit 0 and a filler.
|
|
-- If present the SVN shall be included in the last octet.
|
|
-- The SVN must not be present in version 1.
|
|
|
|
LocationInfo ::= CHOICE {
|
|
roamingNumber [0] ISDN-AddressString,
|
|
-- NU>1 roamingNumber must not be used in version greater 1
|
|
msc-Number [1] ISDN-AddressString}
|
|
|
|
HLR-Id ::= IMSI
|
|
-- leading digits of IMSI, i.e. (MCC, MNC, leading digits of
|
|
-- MSIN) forming HLR Id defined in GSM 03.03.
|
|
|
|
HLR-List ::= SEQUENCE SIZE (1..maxNumOfHLR-Id) OF
|
|
HLR-Id
|
|
|
|
maxNumOfHLR-Id INTEGER ::= 50
|
|
|
|
LMSI ::= OCTET STRING (SIZE (4))
|
|
|
|
GlobalCellId ::= OCTET STRING (SIZE (5..7))
|
|
-- Refers to Cell Global Identification defined in GSM 03.03.
|
|
-- Octets are coded according to GSM 04.08.
|
|
-- The internal structure is defined as follows:
|
|
-- Mobile Country Code: 3 digits according to CCITT Rec E.212
|
|
-- 1 digit filler (1111)
|
|
-- Mobile Network Code: 2 digits according to CCITT Rec E.212
|
|
-- Location Area Code: 2 octets according to GSM 04.08
|
|
-- Cell Identity: 2 octets (CI) according to GSM 04.08
|
|
|
|
NetworkResource ::= ENUMERATED {
|
|
plmn (0),
|
|
hlr (1),
|
|
vlr (2),
|
|
pvlr (3),
|
|
controllingMSC (4),
|
|
vmsc (5),
|
|
eir (6),
|
|
rss (7)}
|
|
|
|
Category ::= OCTET STRING (SIZE (1))
|
|
-- The internal structure is defined in CCITT Rec Q.763.
|
|
|
|
BearerServiceList ::= SEQUENCE SIZE (1..maxNumOfBearerServices) OF
|
|
BearerServiceCode
|
|
|
|
maxNumOfBearerServices INTEGER ::= 50
|
|
|
|
TeleserviceList ::= SEQUENCE SIZE (1..maxNumOfTeleservices) OF
|
|
TeleserviceCode
|
|
|
|
maxNumOfTeleservices INTEGER ::= 20
|
|
|
|
BasicServiceCode ::= CHOICE {
|
|
bearerService [2] BearerServiceCode,
|
|
teleservice [3] TeleserviceCode}
|
|
|
|
BasicServiceList ::= SEQUENCE SIZE (1..maxNumOfBasicServices) OF
|
|
BasicServiceCode
|
|
|
|
maxNumOfBasicServices INTEGER ::= 70
|
|
|
|
BasicServiceGroupList ::= SEQUENCE SIZE (1..maxNumOfBasicServiceGroups) OF
|
|
BasicServiceCode
|
|
|
|
maxNumOfBasicServiceGroups INTEGER ::= 13
|
|
|
|
END
|