blob: e019f6aba40b34fef436da2f617bfd4190229a4e [file] [log] [blame]
Harald Weltea814f262017-07-24 13:21:35 +02001///////////////////////////////////////////////////////////////////////////////
2// //
3// Copyright Test Competence Center (TCC) ETH 2008 //
4// //
5// The copyright to the computer program(s) herein is the property of TCC. //
6// The program(s) may be used and/or copied only with the written permission //
7// of TCC or in accordance with the terms and conditions stipulated in the //
8// agreement/contract under which the program(s) has been supplied. //
9// //
10///////////////////////////////////////////////////////////////////////////////
11//
12// File: BSSAPp_Types.ttcn
13// Rev: R1A01
14// Prodnr: CNL 113 580
15// Updated: 2008-01-24
16// Contact: http://ttcn.ericsson.se
17// Reference: BSSAP+, 3GPP TS 29.018 v7.3.0 (2006-12)
18
19module BSSAPp_Types { // beginning of module
20
21// This module contains the BSSAP+ type definitions based on
22// 29.018 v7.3.0 (2006-12)
23// with attributes for RAW encoding/decoding.
24
25import from General_Types all;
26
27external function enc_PDU_BSSAPp(in PDU_BSSAPp pdu) return octetstring
28with { extension "prototype(convert)"
29 extension "encode(RAW)"
30 }
31
32external function dec_PDU_BSSAPp(in octetstring stream) return PDU_BSSAPp
33with { extension "prototype(convert)"
34 extension "decode(RAW)"
35 }
36
37//====================================================================
38// Message type
39// Reference: 29.018 18.2
40//====================================================================
41
42type BIT8 ST_BSSAPp_Msg_type with { variant "" };
43
44//====================================================================
45// IMSI
46// Reference: 29.018 18.4.10
47//====================================================================
48
49type hexstring IMSIDigits length(1..15) with { variant "HEXORDER(low)" };
50
51type record STR_BSSAPp_IMSI {
52 BIT8 iEI,
53 LIN1 lengthIndicator,
54 BIT3 first_3_BIT, //this is always '001'B
55 BIT1 parity, // 0 - Even, 1 - Odd
56 IMSIDigits iMSIdigits,
57 BIT4 fillerDigit optional // B'1111, fillerDigit is present
58 // if oddevenIndicator=0
59}
60with {
61 variant (lengthIndicator)
62 "LENGTHTO (first_3_BIT, parity, iMSIdigits, fillerDigit)";
63 variant (fillerDigit) "PRESENCE (parity = '0'B) ";
64};
65
66
67//====================================================================
68// Gs Cause
69// Reference: 29.018 18.4.7
70//====================================================================
71
72type record STR_BSSAPp_Gs_Cause {
73 BIT8 iEI,
74 LIN1 lengthIndicator,
75 OCT1 gsCauseValue
76}
77with {
78 variant (lengthIndicator) "LENGTHTO (gsCauseValue)";
79};
80
81//====================================================================
82// VLR Number
83// Reference: 29.018 18.4.26
84//====================================================================
85
86type record STR_BSSAPp_VLR_Number {
87 BIT8 iEI,
88 LIN1 lengthIndicator,
89 BIT8 first_8_BIT, //this is always '10010001'B
90 IMSIDigits vLRdigits
91}
92with {
93 variant (lengthIndicator) "LENGTHTO (first_8_BIT, vLRdigits)";
94};
95
96//====================================================================
97// Downlink Tunnel Payload Control and Info
98// Reference: 29.018 18.4.3
99//====================================================================
100
101
102type record STR_BSSAPp_Downlink_Tunnel_Payload_Control_And_Info {
103 BIT8 iEI,
104 LIN1 lengthIndicator,
105 BIT2 tunnelPriority,
106 BIT1 e,
107 BIT4 protocolDiscriminator,
108 BIT1 spare,
109 octetstring tunnelPayload
110}
111with {
112 variant (lengthIndicator)
113 "LENGTHTO (tunnelPriority, e, protocolDiscriminator, spare, tunnelPayload)";
114};
115
116//====================================================================
117// SGSN Number
118// Reference: 29.018 18.4.22
119//====================================================================
120
121type STR_BSSAPp_VLR_Number STR_BSSAPp_SGSN_Number with { variant "" };
122
123//====================================================================
124// IMSI Detach from GPRS Service Type
125// Reference: 29.018 18.4.11
126//====================================================================
127
128type record STR_BSSAPp_IMSI_Detach_from_GPRS_service_type {
129 BIT8 iEI,
130 LIN1 lengthIndicator,
131 BIT8 iMSIDetachFromGPRSServiceTypeValue
132}
133with {
134 variant (lengthIndicator) "LENGTHTO (iMSIDetachFromGPRSServiceTypeValue)";
135};
136
137//====================================================================
138// Cell Global Identity
139// Reference: 29.018 18.4.1
140//====================================================================
141
142type record STR_BSSAPp_Cell_Global_Identity {
143 BIT8 iEI,
144 LIN1 lengthIndicator,
145 octetstring cellGlobalIdentityValue length(8)
146}
147with {
148 variant (lengthIndicator) "LENGTHTO (cellGlobalIdentityValue)";
149};
150
151//====================================================================
152// Service Area Identification
153// Reference: 29.018 18.4.21b
154//====================================================================
155
156type record STR_BSSAPp_Service_Area_Identification {
157 BIT8 iEI,
158 LIN1 lengthIndicator,
159 octetstring serviceAreaIdentificationValue length(7)
160}
161with {
162 variant (lengthIndicator) "LENGTHTO (serviceAreaIdentificationValue)";
163};
164
165//====================================================================
166// IMSI Detach from Non-GPRS Service Type
167// Reference: 29.018 18.4.12
168//====================================================================
169
170type record STR_BSSAPp_IMSI_detach_from_non_GPRS_service_type {
171 BIT8 iEI,
172 LIN1 lengthIndicator,
173 BIT8 iMSIDetachFromNonGPRSServiceTypeValue
174}
175with {
176 variant (lengthIndicator) "LENGTHTO (iMSIDetachFromNonGPRSServiceTypeValue)";
177};
178
179//====================================================================
180// Location Information Age
181// Reference: 29.018 18.4.15
182//====================================================================
183
184type record STR_BSSAPp_Location_Information_Age {
185 BIT8 iEI,
186 LIN1 lengthIndicator,
187 OCT2 locationInformationAge
188}
189with {
190 variant (lengthIndicator) "LENGTHTO (locationInformationAge)";
191};
192
193//====================================================================
194// Location Area Identifier
195// Reference: 29.018 18.4.14
196//====================================================================
197
198type record STR_BSSAPp_Location_Area_Identifier {
199 BIT8 iEI,
200 LIN1 lengthIndicator,
201 OCT5 locationAreaIdentifierValue
202}
203with {
204 variant (lengthIndicator) "LENGTHTO (locationAreaIdentifierValue)";
205};
206
207//====================================================================
208// Mobile Identity
209// Reference: 29.018 18.4.17
210//====================================================================
211
212type record STR_BSSAPp_Mobile_Identity {
213 BIT8 iEI,
214 LIN1 lengthIndicator,
215 octetstring mobileIdentityValue
216}
217with {
218 variant (lengthIndicator) "LENGTHTO (mobileIdentityValue)";
219};
220
221//====================================================================
222// Reject Cause
223// Reference: 29.018 18.4.21
224//====================================================================
225
226type record STR_BSSAPp_Reject_Cause {
227 BIT8 iEI,
228 LIN1 lengthIndicator,
229 OCT1 rejectCauseValue
230}
231with {
232 variant (lengthIndicator) "LENGTHTO (rejectCauseValue)";
233};
234
235//====================================================================
236// GPRS Location Update Type
237// Reference: 29.018 18.4.6
238//====================================================================
239
240type record STR_BSSAPp_GPRS_Location_Update_Type {
241 BIT8 iEI,
242 LIN1 lengthIndicator,
243 BIT8 gPRSLocationUpdateTypeValue
244}
245with {
246 variant (lengthIndicator) "LENGTHTO (gPRSLocationUpdateTypeValue)";
247};
248
249//====================================================================
250// Mobile Station Classmark 1
251// Reference: 29.018 18.4.18
252//====================================================================
253
254type record STR_BSSAPp_Mobile_Station_Classmark1 {
255 BIT8 iEI,
256 LIN1 lengthIndicator,
257 OCT1 mobileStationClassmarkValue
258}
259with {
260 variant (lengthIndicator) "LENGTHTO (mobileStationClassmarkValue)";
261};
262
263//====================================================================
264// TMSI Status
265// Reference: 29.018 18.4.24
266//====================================================================
267
268type record STR_BSSAPp_TMSI_Status {
269 BIT8 iEI,
270 LIN1 lengthIndicator,
271 BIT1 tIMSIFlag,
272 BIT7 spare
273}
274with {
275 variant (lengthIndicator) "LENGTHTO (tIMSIFlag, spare)";
276};
277
278//====================================================================
279// IMEISV
280// Reference: 29.018 18.4.9
281//====================================================================
282
283type record STR_BSSAPp_IMEISV {
284 BIT8 iEI,
285 LIN1 lengthIndicator,
286 hexstring digits length (16)
287}
288with {
289 variant (lengthIndicator) "LENGTHTO (digits)";
290};
291
292
293//====================================================================
294// MM Information
295// Reference: 29.018 18.4.16
296//====================================================================
297
298type record STR_BSSAPp_MM_Information {
299 BIT8 iEI,
300 LIN1 lengthIndicator,
301 octetstring mMInformationValue
302}
303with {
304 variant (lengthIndicator) "LENGTHTO (mMInformationValue)";
305};
306
307//====================================================================
308// Erroneous Message
309// Reference: 29.018 18.4.5
310//====================================================================
311
312type record STR_BSSAPp_Erroneous_Message {
313 BIT8 iEI,
314 LIN1 lengthIndicator,
315 octetstring erroneousMessageValue
316}
317with {
318 variant (lengthIndicator) "LENGTHTO (erroneousMessageValue)";
319};
320
321//====================================================================
322// Information Requested
323// Reference: 29.018 18.4.13
324//====================================================================
325
326type record STR_BSSAPp_Information_Requested {
327 BIT8 iEI,
328 LIN1 lengthIndicator,
329 BIT8 informationRequestedValue
330}
331with {
332 variant (lengthIndicator) "LENGTHTO (informationRequestedValue)";
333};
334
335//====================================================================
336// TMSI
337// Reference: 29.018 18.4.23
338//====================================================================
339
340type record STR_BSSAPp_TMSI {
341 BIT8 iEI,
342 LIN1 lengthIndicator,
343 OCT4 tMSIoctets
344}
345with {
346 variant (lengthIndicator) "LENGTHTO (tMSIoctets)";
347};
348
349//====================================================================
350// PTMSI
351// Reference: 29.018 18.4.20
352//====================================================================
353
354type STR_BSSAPp_TMSI STR_BSSAPp_PTMSI with { variant "" };
355
356//====================================================================
357// IMEI
358// Reference: 29.018 18.4.8
359//====================================================================
360
361type record STR_BSSAPp_IMEI {
362 BIT8 iEI,
363 LIN1 lengthIndicator,
364 hexstring digits length (14),
365 OCT1 lastOctet //should be 'F0'O
366}
367with {
368 variant (lengthIndicator) "LENGTHTO (digits, lastOctet)";
369};
370
371//====================================================================
372// Mobile Station State
373// Reference: 29.018 18.4.19
374//====================================================================
375
376type record STR_BSSAPp_Mobile_Station_State {
377 BIT8 iEI,
378 LIN1 lengthIndicator,
379 BIT8 mobileStationStateValue
380}
381with {
382 variant (lengthIndicator) "LENGTHTO (mobileStationStateValue)";
383};
384
385//====================================================================
386// Channel Needed
387// Reference: 29.018 18.4.2
388//====================================================================
389
390type record STR_BSSAPp_Channel_Needed {
391 BIT8 iEI,
392 LIN1 lengthIndicator,
393 OCT1 channelNeededValue
394}
395with {
396 variant (lengthIndicator) "LENGTHTO (channelNeededValue)";
397};
398
399//====================================================================
400// eMLPP Priority
401// Reference: 29.018 18.4.4
402//====================================================================
403
404type record STR_BSSAPp_eMLPP_Priority {
405 BIT8 iEI,
406 LIN1 lengthIndicator,
407 OCT1 eMLPPPriorityValue
408}
409with {
410 variant (lengthIndicator) "LENGTHTO (eMLPPPriorityValue)";
411};
412
413//====================================================================
414// Global CN-Id
415// Reference: 29.018 18.4.27
416//====================================================================
417
418type record STR_BSSAPp_Global_CN_Id {
419 BIT8 iEI,
420 LIN1 lengthIndicator,
421 HEX6n pLMN_Id,
422 OCT2 CN_Id
423}
424with {
425 variant (lengthIndicator) "LENGTHTO (pLMN_Id, CN_Id)";
426};
427
428//====================================================================
429// Downlink Tunnel Payload Control and Info
430// Reference: 29.018 18.4.25
431//====================================================================
432
433type STR_BSSAPp_Downlink_Tunnel_Payload_Control_And_Info
434 STR_BSSAPp_Uplink_Tunnel_Payload_Control_And_Info with { variant "" };
435
436//====================================================================
437// BSSAPp REJECT (Used for several IEs)
438// Reference: 29.018
439//====================================================================
440
441type record BSSAPp_REJECT {
442 ST_BSSAPp_Msg_type messageType,
443 STR_BSSAPp_IMSI iMSI,
444 STR_BSSAPp_Gs_Cause gsCause
445}
446with {
447 variant "TAG (
448 iMSI, iEI = '00000001'B;
449 gsCause, iEI = '00001000'B;
450 )"
451};
452
453
454//-------------- PDUs ----------------//
455
456
457//====================================================================
458// BSSAP+-ALERT-ACK
459// Reference: 29.018 17.1.1
460//====================================================================
461
462
463type record PDU_BSSAPp_ALERT_ACK {
464 ST_BSSAPp_Msg_type messageType,
465 STR_BSSAPp_IMSI iMSI
466}
467with {
468 variant "TAG (
469 iMSI, iEI = '00000001'B;
470 )"
471};
472
473//====================================================================
474// BSSAP+-ALERT-REJECT
475// Reference: 29.018 17.1.2
476//====================================================================
477
478type BSSAPp_REJECT PDU_BSSAPp_ALERT_REJECT;
479
480//====================================================================
481// BSSAP+-ALERT-REQUEST
482// Reference: 29.018 17.1.3
483//====================================================================
484
485type record PDU_BSSAPp_ALERT_REQUEST {
486 ST_BSSAPp_Msg_type messageType,
487 STR_BSSAPp_IMSI iMSI
488}
489with {
490 variant "TAG(
491 iMSI, iEI = '00000001'B;
492 )"
493};
494
495//====================================================================
496// BSSAP+-DOWNLINK-TUNNEL-REQUEST
497// Reference: 29.018 17.1.4
498//====================================================================
499
500type record PDU_BSSAPp_DOWNLINK_TUNNEL_REQUEST {
501 ST_BSSAPp_Msg_type messageType,
502 STR_BSSAPp_IMSI iMSI,
503 STR_BSSAPp_VLR_Number vLRnumber,
504 STR_BSSAPp_Downlink_Tunnel_Payload_Control_And_Info
505 downlinkTunnelPayloadControlAndInfo
506}
507with {
508 variant "TAG (
509 iMSI, iEI = '00000001'B;
510 vLRnumber, iEI = '00000010'B;
511 downlinkTunnelPayloadControlAndInfo, iEI = '00011100'B;
512 )"
513};
514
515//====================================================================
516// BSSAP+-GPRS-DETACH-ACK
517// Reference: 29.018 17.1.5
518//====================================================================
519
520type record PDU_BSSAPp_GPRS_DETACH_ACK {
521 ST_BSSAPp_Msg_type messageType,
522 STR_BSSAPp_IMSI iMSI
523} with { variant "TAG(
524 iMSI, iEI = '00000001'B;
525 )"
526};
527
528//====================================================================
529// BSSAP+-GPRS-DETACH-INDICATION
530// Reference: 29.018 17.1.6
531//====================================================================
532
533type record PDU_BSSAPp_GPRS_DETACH_INDICATION {
534 ST_BSSAPp_Msg_type messageType,
535 STR_BSSAPp_IMSI iMSI,
536 STR_BSSAPp_SGSN_Number sGSNnumber,
537 STR_BSSAPp_IMSI_Detach_from_GPRS_service_type iMSIdetachFromGPRSserviceType,
538 STR_BSSAPp_Cell_Global_Identity cellGlobalIdentity optional,
539 STR_BSSAPp_Service_Area_Identification serviceAreaIdentification optional
540}
541with {
542 variant "TAG (
543 iMSI, iEI = '00000001'B;
544 sGSNnumber, iEI = '00001001'B;
545 iMSIdetachFromGPRSserviceType, iEI = '00010000'B;
546 cellGlobalIdentity, iEI = '00011000'B;
547 serviceAreaIdentification, iEI = '00011110'B;
548 )"
549};
550
551//====================================================================
552// BSSAP+-GPRS-DETACH-ACK
553// Reference: 29.018 17.1.7
554//====================================================================
555
556type record PDU_BSSAPp_IMSI_DETACH_ACK {
557 ST_BSSAPp_Msg_type messageType,
558 STR_BSSAPp_IMSI iMSI
559}
560with {
561 variant "TAG(
562 iMSI, iEI = '00000001'B;
563 )"
564};
565
566//====================================================================
567// BSSAP+-IMSI-DETACH-INDICATION
568// Reference: 29.018 17.1.8
569//====================================================================
570type record PDU_BSSAPp_IMSI_DETACH_INDICATION {
571 ST_BSSAPp_Msg_type messageType,
572
573 STR_BSSAPp_IMSI iMSI,
574 STR_BSSAPp_SGSN_Number sGSNnumber,
575 STR_BSSAPp_IMSI_detach_from_non_GPRS_service_type detachType,
576 STR_BSSAPp_Cell_Global_Identity cellGlobalIdentity optional,
577 STR_BSSAPp_Location_Information_Age locationInformationAge optional,
578 STR_BSSAPp_Service_Area_Identification serviceAreaIdentification optional
579} with {
580 variant "TAG (
581 iMSI, iEI = '00000001'B;
582 sGSNnumber, iEI = '00001001'B;
583 detachType, iEI = '00010001'B;
584 cellGlobalIdentity, iEI = '00011000'B;
585 locationInformationAge, iEI = '00011001'B;
586 serviceAreaIdentification, iEI = '00011110'B;
587 )"
588};
589
590//====================================================================
591// BSSAP+-LOCATION-UPDATE-ACCEPT
592// Reference: 29.018 17.1.9
593//====================================================================
594
595type record PDU_BSSAPp_LOCATION_UPDATE_ACCEPT {
596 ST_BSSAPp_Msg_type messageType,
597 STR_BSSAPp_IMSI iMSI,
598 STR_BSSAPp_Location_Area_Identifier locationAreaIdentifier,
599 STR_BSSAPp_Mobile_Identity newTMSIorIMSI optional
600} with {
601 variant "TAG (
602 iMSI, iEI = '00000001'B;
603 locationAreaIdentifier, iEI = '00000100'B;
604 newTMSIorIMSI, iEI = '00001110'B;
605 )"
606};
607
608//====================================================================
609// BSSAP+-LOCATION-UPDATE-REJECT
610// Reference: 29.018 17.1.10
611//====================================================================
612
613type record PDU_BSSAPp_LOCATION_UPDATE_REJECT {
614 ST_BSSAPp_Msg_type messageType,
615 STR_BSSAPp_IMSI iMSI,
616 STR_BSSAPp_Reject_Cause rejectCause
617} with {
618 variant "TAG(
619 iMSI, iEI = '00000001'B;
620 rejectCause, iEI = '00001111'B
621 )"
622};
623
624//====================================================================
625// BSSAP+-LOCATION-UPDATE-REQUEST
626// Reference: 29.018 17.1.11
627//====================================================================
628
629type record PDU_BSSAPp_LOCATION_UPDATE_REQUEST {
630 ST_BSSAPp_Msg_type messageType,
631 STR_BSSAPp_IMSI iMSI,
632 STR_BSSAPp_SGSN_Number sGSNnumber,
633 STR_BSSAPp_GPRS_Location_Update_Type updateType,
634 STR_BSSAPp_Cell_Global_Identity cellGlobalIdentity,
635 STR_BSSAPp_Mobile_Station_Classmark1 mobileStationClassmark,
636 STR_BSSAPp_Location_Area_Identifier oldLocationAreaIdentifier optional,
637 STR_BSSAPp_TMSI_Status tMSIstatus optional,
638 STR_BSSAPp_Service_Area_Identification serviceAreaIdentification optional,
639 STR_BSSAPp_IMEISV iMEISV optional
640} with {
641 variant "TAG (
642 iMSI, iEI = '00000001'B;
643 sGSNnumber, iEI = '00001001'B;
644 updateType, iEI = '00001010'B;
645 cellGlobalIdentity, iEI = '00011000'B;
646 mobileStationClassmark, iEI = '00001101'B;
647 oldLocationAreaIdentifier, iEI = '00000100'B;
648 tMSIstatus, iEI = '00000111'B;
649 serviceAreaIdentification, iEI = '00011110'B;
650 iMEISV, iEI = '00010101'B;
651 )"
652};
653
654//====================================================================
655// BSSAP+-MM-INFORMATION-REQUEST
656// Reference: 29.018 17.1.12
657//====================================================================
658
659type record PDU_BSSAPp_MM_INFORMATION_REQUEST {
660 ST_BSSAPp_Msg_type messageType,
661 STR_BSSAPp_IMSI iMSI,
662 STR_BSSAPp_MM_Information mMinformation optional
663} with {
664 variant "TAG (
665 iMSI, iEI = '00000001'B;
666 mMinformation, iEI = '00010111'B;
667 )"
668};
669
670//====================================================================
671// BSSAP+-MOBILE-STATUS
672// Reference: 29.018 17.1.13
673//====================================================================
674
675type record PDU_BSSAPp_MOBILE_STATUS {
676 ST_BSSAPp_Msg_type messageType,
677 STR_BSSAPp_IMSI iMSI optional,
678 STR_BSSAPp_Gs_Cause gsCause,
679 STR_BSSAPp_Erroneous_Message erroneousMessage
680} with {
681 variant "TAG (
682 iMSI, iEI = '00000001'B;
683 gsCause, iEI = '00001000'B;
684 erroneousMessage, iEI = '00011011'B;
685 )"
686};
687
688//====================================================================
689// BSSAP+-MS-ACTIVITY-INDICATION
690// Reference: 29.018 17.1.14
691//====================================================================
692
693type record PDU_BSSAPp_MS_ACTIVITY_INDICATION {
694 ST_BSSAPp_Msg_type messageType,
695 STR_BSSAPp_IMSI iMSI,
696 STR_BSSAPp_Cell_Global_Identity cellGlobalIdentity optional,
697 STR_BSSAPp_Service_Area_Identification serviceAreaIdentification optional
698} with {
699 variant "TAG (
700 iMSI, iEI = '00000001'B;
701 cellGlobalIdentity, iEI = '00011000'B;
702 serviceAreaIdentification, iEI = '00011110'B;
703 )"
704};
705
706//====================================================================
707// BSSAP+-MS-INFORMATION-REQUEST
708// Reference: 29.018 17.1.15
709//====================================================================
710
711type record PDU_BSSAPp_MS_INFORMATION_REQUEST {
712 ST_BSSAPp_Msg_type messageType,
713 STR_BSSAPp_IMSI iMSI,
714 STR_BSSAPp_Information_Requested informationRequested
715} with {
716 variant "TAG(
717 iMSI, iEI = '00000001'B;
718 informationRequested, iEI = '00010010'B;
719 )"
720};
721
722//====================================================================
723// BSSAP+-MS-INFORMATION-RESPONSE
724// Reference: 29.018 17.1.16
725//====================================================================
726
727type record PDU_BSSAPp_MS_INFORMATION_RESPONSE {
728 ST_BSSAPp_Msg_type messageType,
729 STR_BSSAPp_IMSI iMSI,
730 STR_BSSAPp_TMSI tMSI optional,
731 STR_BSSAPp_PTMSI pTMSI optional,
732 STR_BSSAPp_IMEI iMEI optional,
733 STR_BSSAPp_IMEISV iMEISV optional,
734 STR_BSSAPp_Cell_Global_Identity cellGlobalIdentity optional,
735 STR_BSSAPp_Location_Information_Age locationInformationAge optional,
736 STR_BSSAPp_Mobile_Station_State mobileStationState optional,
737 STR_BSSAPp_Service_Area_Identification serviceAreaIdentification optional
738} with {
739 variant "TAG (
740 iMSI, iEI = '00000001'B;
741 tMSI, iEI = '00000011'B;
742 pTMSI, iEI = '00010011'B;
743 iMEI, iEI = '00010100'B;
744 iMEISV, iEI = '00010101'B;
745 cellGlobalIdentity, iEI = '00011000'B;
746 locationInformationAge, iEI = '00011001'B;
747 mobileStationState, iEI = '00011010'B;
748 serviceAreaIdentification, iEI = '00011110'B;
749 )"
750};
751
752//====================================================================
753// BSSAP+-MS-UNREACHABLE
754// Reference: 29.018 17.1.17
755//====================================================================
756
757
758type BSSAPp_REJECT PDU_BSSAPp_MS_UNREACHABLE;
759
760//====================================================================
761// BSSAP+-PAGING-REJECT
762// Reference: 29.018 17.1.18
763//====================================================================
764
765type BSSAPp_REJECT PDU_BSSAPp_PAGING_REJECT;
766
767//====================================================================
768// BSSAP+-PAGING-REQUEST
769// Reference: 29.018 17.1.19
770//====================================================================
771
772
773type record PDU_BSSAPp_PAGING_REQUEST {
774 ST_BSSAPp_Msg_type messageType,
775 STR_BSSAPp_IMSI iMSI,
776 STR_BSSAPp_VLR_Number vLRnumber,
777 STR_BSSAPp_TMSI tMSI optional,
778 STR_BSSAPp_Location_Area_Identifier locationAreaIdentifier optional,
779 STR_BSSAPp_Channel_Needed channelNeeded optional,
780 STR_BSSAPp_eMLPP_Priority eMLPPpriority optional,
781 STR_BSSAPp_Global_CN_Id global_CN_Id optional
782} with {
783 variant "TAG (
784 iMSI, iEI = '00000001'B;
785 vLRnumber, iEI = '00000010'B;
786 tMSI, iEI = '00000011'B;
787 locationAreaIdentifier, iEI = '00000100'B;
788 channelNeeded, iEI = '00000101'B;
789 eMLPPpriority, iEI = '00000110'B;
790 global_CN_Id, iEI = '00001011'B;
791 )"
792};
793
794//====================================================================
795// BSSAP+-RESET-ACK
796// Reference: 29.018 17.1.20
797//====================================================================
798
799type record PDU_BSSAPp_RESET_ACK {
800 ST_BSSAPp_Msg_type messageType,
801 STR_BSSAPp_SGSN_Number sGSNnumber optional,
802 STR_BSSAPp_VLR_Number vLRnumber optional
803} with {
804 variant "TAG (
805 sGSNnumber, iEI = '00001001'B;
806 vLRnumber, iEI = '00000010'B;
807 )"
808};
809
810//====================================================================
811// BSSAP+-RESET-INDICATION
812// Reference: 29.018 17.1.21
813//====================================================================
814
815type record PDU_BSSAPp_RESET_INDICATION {
816 ST_BSSAPp_Msg_type messageType,
817 STR_BSSAPp_SGSN_Number sGSNnumber optional,
818 STR_BSSAPp_VLR_Number vLRnumber optional
819} with {
820 variant "TAG (
821 sGSNnumber, iEI = '00001001'B;
822 vLRnumber, iEI = '00000010'B;
823 )"
824};
825
826//====================================================================
827// BSSAP+-TMSI-REALLOCATION-COMPLETE
828// Reference: 29.018 17.1.22
829//====================================================================
830
831type record PDU_BSSAPp_TMSI_REALLOCATION_COMPLETE {
832 ST_BSSAPp_Msg_type messageType,
833 STR_BSSAPp_IMSI iMSI,
834 STR_BSSAPp_Cell_Global_Identity cellGlobalIdentity optional,
835 STR_BSSAPp_Service_Area_Identification serviceAreaIdentification optional
836} with {
837 variant "TAG (
838 iMSI, iEI = '00000001'B;
839 cellGlobalIdentity, iEI = '00011000'B;
840 serviceAreaIdentification, iEI = '00011110'B;
841 )"
842};
843
844//====================================================================
845// BSSAP+-UPLINK-TUNNEL-REQUEST
846// Reference: 29.018 17.1.23
847//====================================================================
848
849
850type record PDU_BSSAPp_UPLINK_TUNNEL_REQUEST {
851 ST_BSSAPp_Msg_type messageType,
852 STR_BSSAPp_IMSI iMSI,
853 STR_BSSAPp_SGSN_Number sGSNnumber,
854 STR_BSSAPp_Uplink_Tunnel_Payload_Control_And_Info
855 uplinkTunnelPayloadControlAndInfo
856} with {
857 variant "TAG(
858 iMSI, iEI = '00000001'B;
859 sGSNnumber, iEI = '00001001'B;
860 uplinkTunnelPayloadControlAndInfo, iEI = '00011101'B;
861 )"
862};
863
864
865
866// ------------------ // ----PDU_BSSAPp---- // ------------------
867
868
869type union PDU_BSSAPp {
870 PDU_BSSAPp_PAGING_REJECT pDU_BSSAPp_PAGING_REJECT,
871 PDU_BSSAPp_PAGING_REQUEST pDU_BSSAPp_PAGING_REQUEST,
872 PDU_BSSAPp_DOWNLINK_TUNNEL_REQUEST pDU_BSSAPp_DOWNLINK_TUNNEL_REQUEST,
873 PDU_BSSAPp_UPLINK_TUNNEL_REQUEST pDU_BSSAPp_UPLINK_TUNNEL_REQUEST,
874 PDU_BSSAPp_LOCATION_UPDATE_REQUEST pDU_BSSAPp_LOCATION_UPDATE_REQUEST,
875 PDU_BSSAPp_LOCATION_UPDATE_ACCEPT pDU_BSSAPp_LOCATION_UPDATE_ACCEPT,
876 PDU_BSSAPp_LOCATION_UPDATE_REJECT pDU_BSSAPp_LOCATION_UPDATE_REJECT,
877 PDU_BSSAPp_TMSI_REALLOCATION_COMPLETE pDU_BSSAPp_TMSI_REALLOCATION_COMPLETE,
878 PDU_BSSAPp_ALERT_REQUEST pDU_BSSAPp_ALERT_REQUEST,
879 PDU_BSSAPp_ALERT_ACK pDU_BSSAPp_ALERT_ACK,
880 PDU_BSSAPp_ALERT_REJECT pDU_BSSAPp_ALERT_REJECT,
881 PDU_BSSAPp_MS_ACTIVITY_INDICATION pDU_BSSAPp_MS_ACTIVITY_INDICATION,
882 PDU_BSSAPp_GPRS_DETACH_INDICATION pDU_BSSAPp_GPRS_DETACH_INDICATION,
883 PDU_BSSAPp_GPRS_DETACH_ACK pDU_BSSAPp_GPRS_DETACH_ACK,
884 PDU_BSSAPp_IMSI_DETACH_INDICATION pDU_BSSAPp_IMSI_DETACH_INDICATION,
885 PDU_BSSAPp_IMSI_DETACH_ACK pDU_BSSAPp_IMSI_DETACH_ACK,
886 PDU_BSSAPp_RESET_INDICATION pDU_BSSAPp_RESET_INDICATION,
887 PDU_BSSAPp_RESET_ACK pDU_BSSAPp_RESET_ACK,
888 PDU_BSSAPp_MS_INFORMATION_REQUEST pDU_BSSAPp_MS_INFORMATION_REQUEST,
889 PDU_BSSAPp_MS_INFORMATION_RESPONSE pDU_BSSAPp_MS_INFORMATION_RESPONSE,
890 PDU_BSSAPp_MM_INFORMATION_REQUEST pDU_BSSAPp_MM_INFORMATION_REQUEST,
891 PDU_BSSAPp_MOBILE_STATUS pDU_BSSAPp_MOBILE_STATUS,
892 PDU_BSSAPp_MS_UNREACHABLE pDU_BSSAPp_MS_UNREACHABLE
893
894} with {
895 variant "TAG (
896 pDU_BSSAPp_PAGING_REQUEST, messageType ='00000001'B;
897 pDU_BSSAPp_PAGING_REJECT, messageType ='00000010'B;
898 pDU_BSSAPp_DOWNLINK_TUNNEL_REQUEST, messageType ='00000111'B;
899 pDU_BSSAPp_UPLINK_TUNNEL_REQUEST, messageType ='00001000'B;
900 pDU_BSSAPp_LOCATION_UPDATE_REQUEST, messageType ='00001001'B;
901 pDU_BSSAPp_LOCATION_UPDATE_ACCEPT, messageType ='00001010'B;
902 pDU_BSSAPp_LOCATION_UPDATE_REJECT, messageType ='00001011'B;
903 pDU_BSSAPp_TMSI_REALLOCATION_COMPLETE, messageType ='00001100'B;
904 pDU_BSSAPp_ALERT_REQUEST, messageType ='00001101'B;
905 pDU_BSSAPp_ALERT_ACK, messageType ='00001110'B;
906 pDU_BSSAPp_ALERT_REJECT, messageType ='00001111'B;
907 pDU_BSSAPp_MS_ACTIVITY_INDICATION, messageType ='00010000'B;
908 pDU_BSSAPp_GPRS_DETACH_INDICATION, messageType ='00010001'B;
909 pDU_BSSAPp_GPRS_DETACH_ACK, messageType ='00010010'B;
910 pDU_BSSAPp_IMSI_DETACH_INDICATION, messageType ='00010011'B;
911 pDU_BSSAPp_IMSI_DETACH_ACK, messageType ='00010100'B;
912 pDU_BSSAPp_RESET_INDICATION, messageType ='00010101'B;
913 pDU_BSSAPp_RESET_ACK, messageType ='00010110'B;
914 pDU_BSSAPp_MS_INFORMATION_REQUEST, messageType ='00010111'B;
915 pDU_BSSAPp_MS_INFORMATION_RESPONSE, messageType ='00011000'B;
916 pDU_BSSAPp_MM_INFORMATION_REQUEST, messageType ='00011010'B;
917 pDU_BSSAPp_MOBILE_STATUS, messageType ='00011101'B;
918 pDU_BSSAPp_MS_UNREACHABLE, messageType ='00011111'B;
919 )"
920};
921
922} with{ encode "RAW"}//end of module BSSAPp_Types