Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: cf0d8820402a0bd9a75fa028f6b2ff17d9726c5f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
///////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2000-2017 Ericsson Telecom AB
//
// All rights reserved. This program and the accompanying materials
// are made available under the terms of the Eclipse Public License v1.0
// which accompanies this distribution, and is available at
// http://www.eclipse.org/legal/epl-v10.html
///////////////////////////////////////////////////////////////////////////////
//
//  File:     ISUP_Types.ttcn
//  Rev:      R8A
//  Prodnr:   CNL 113 365
//  Updated:  2011-05-10
//  Contact:  http://ttcn.ericsson.se
///////////////////////////////////////////////////////////////////////////////
//
// This product is based on the following documents:
//************************************************************************
// Ericsson  Reference for ITU-T : 2/155 17-FAY 112 020/4 Uen, ITU-T ISDN User
//                                 Part, Section A:Formats and Codes
// Standard ITU-T Reference ISUP : Q.763, Signaling System No. 7 - ISDN User
//                                 Part formats and codes
//************************************************************************
// EED/X 1056-174 Uen - Global Call reference for ISUP and BICC, MSC R12

///////////////////////////////////////////////////////////////////////////////
//     ! ! ! ! ! ! !        W A R N I N G         ! ! ! ! ! ! !              //
// From R2A02 the parameters are in 'set' and not in 'set of'. It has the    //
// consequence, that the parameters will be sent out in fix order (as defined//
// in set) so the tester cannot modify the order of the parameters with      //
// modification the order in the template. If the order is important, then   //
// the previous version of this protocol module should be used.              //
///////////////////////////////////////////////////////////////////////////////

//----------------------------------------------------------
//----------------------------------------------------------
//The following modification were done from R1A03 to R2A02:
//----------------------------------------------------------
//----------------------------------------------------------
// New parameter:
//Calling_name_identity
//Global_call_reference
//-------------------------------------------------
// Modified parameter:
//Calling_geodetic_location: Polygon updated
//CCSS_parameter : replaces CCBS_parameter
//Charged_party_identification : converted into record
//Forward_GVNS: TNRN_Spare->BIT1, lengths->INT4b, RAW coding attributes
//Loop_prevention_indicators : field splitted
//Message_compatibility_information: field name updated
//Network_routing_number: incorrect fields
//Network_specific_facility : was not possible to decode
//Optional_backward_call_indicators: field name updated
//Pivot_counter: PivCount->BIT5
//Pivot_routing_backward_information : converted into record
//Pivot_routing_forward_information : converted into record
//Redirect_backward_information : converted into record
//Redirect_forward_information : converted into record
//Redirecting_number : field name updated
//Redirection_information : optional keywords added
//Tariff_indicator : optional keywords added
//User_service_information: redesigned
//User_service_information_prime: redesigned
//User_teleservice_information : optional keywords added
//-------------------------------------------------
// Hexorder modified in parameter:
//Call_transfer_number
//Called_IN_number
//Called_directory_number
//Called_party_number
//Calling_party_number
//Connected_number
//Forward_GVNS
//Generic_number
//HTR_information
//Location_number
//Network_routing_number
//Original_called_number
//Original_called_IN_number
//Redirecting_number
//Redirection_number
//Subsequent_number
//-------------------------------------------------
// Parameter, which should be modified, but due to backward compatibility
// it is not modified:
//Parameter_compatibility_information
//-------------------------------------------------
//"set of" was changed to "set" with the following consequence in parameter:
//-Every optional parameter is extended the id and length.
//-The multiple parameters are put into a set with name <parameter_name>_set
//-The optional parameters of the messages are put into set where every field
// is optional.
//-For mandatory fix long parameters new type is created via removing id and
// length
//-For mandatory variable long parameters new type is created via removing id
//-For parameters which can be also mandatory and optional, the end of name of
// the optional version is extended with an _OPT

module  ISUP_Types
{
 import from General_Types all;

 external function enc_PDU_ISUP(in PDU_ISUP pdu) return octetstring;
 external function dec_PDU_ISUP(in octetstring stream) return PDU_ISUP;
 external function dec_PDU_ISUP_noCIC(in octetstring stream) return PDU_ISUP;
 external function enc_PDU_ISUP_fast(in PDU_ISUP pdu, out octetstring stream)
 with { extension "prototype(fast) encode(RAW)" };
 external function dec_PDU_ISUP_backtrack(in octetstring stream, out PDU_ISUP pdu) return integer
 with { extension "prototype(backtrack) decode(RAW)" };
 external function dec_PDU_ISUP_backtrack_noCIC(in octetstring stream, out PDU_ISUP pdu) return integer;

//************************************************************************
//  ISUP parameters
//************************************************************************
group ISUP_parameters
{

//************************************************************************
// Circuit Identification Code
// Ericsson Specification Reference: Chapter 2.1.3
// Standard Reference ISUP         : Chapter 1.2
//************************************************************************
  type record Circuit_identification_code
    {
     BIT12 CIC, // Circuit identification code
     BIT4 Spare // Spare
    } with { variant "" };


//************************************************************************
// Message Type
// Ericsson Specification Reference: Chapter 2.1.3
// Standard Reference ISUP         : Chapter 1.3
//************************************************************************
  type bitstring ISUP_Message_type length(8)
    with { variant "FIELDLENGTH(8)" };


//************************************************************************
// Pointer
// Ericsson Specification Reference: Chapter 2.1.7
// Standard Reference ISUP         : Chapter 1.9
//************************************************************************
  type integer Pointer (0..255)
    with { variant "FIELDLENGTH(8)" };
	

//************************************************************************
// End Of Optional Parameters Indicator
// Ericsson Specification Reference: Chapter 2.3.3.30
// Standard Reference ISUP         : Chapter 3.20
//************************************************************************
  type octetstring End_of_optional_parameters_indicator length(1)
    with { variant "FIELDLENGTH(1)" };


//************************************************************************
// Access Delivery Information
// Ericsson Specification Reference: Chapter 2.3.3.1
// Standard Reference ISUP         : Chapter 3.2
//************************************************************************
  type record Access_delivery_information       // 3.2 / Q.763
    {
     BIT8 id,
     INT1 lengthField,

     BIT1 AccessDel, // Access delivery indicator
     BIT7 Spare      // Spare
    } with { variant "PRESENCE( id = '00101110'B)";
             variant (lengthField)"LENGTHTO(AccessDel,Spare)";
           };


//************************************************************************
// Access Transport
// Ericsson Specification Reference: Chapter 2.3.3.2
// Standard Reference ISUP         : Chapter 3.3
//************************************************************************
  type record Access_transport
    {
     BIT8 id,
     INT1 lengthField,

     OCTN ATP_field
    } with { variant "PRESENCE( id = '00000011'B)";
             variant (lengthField)"LENGTHTO(ATP_field)";
           };


//************************************************************************
// Additional Charging Information
// Ericsson Specification Reference: Chapter 2.3.3.3
//************************************************************************
  type record Additional_charging_information
    {
     BIT8 id,
     INT1 lengthField,

     BIT8 AddChargeInfo // Additional charging information
    } with { variant "PRESENCE( id = '11111010'B)";
             variant (lengthField)"LENGTHTO(AddChargeInfo)";
           };


//************************************************************************
// Additional Routing Information
// Ericsson Specification Reference: Chapter 2.3.3.4
//************************************************************************
  type record Additional_routing_information
    {
     BIT8 id,
     INT1 lengthField,

     OCT2 AddRoutInfo // Additional routing information
    } with { variant "PRESENCE( id = '11111011'B)";
             variant (lengthField)"LENGTHTO(AddRoutInfo)";
           };


//************************************************************************
// Application Transport Parameter
// Standard Reference ISUP         : Chapter 3.82
//************************************************************************
  type record Application_transport_parameter
    {
     BIT8 id,
     INT1 lengthField,

     BIT7 applicationContextIdOct1, // Application context identifier
     BIT1 extInd1,                  // Extension indicator
     BIT7 applicationContextIdOct1a optional, // Application context identifier
     BIT1 extInd1a optional,                  // Extension indicator
     BIT1 releaseCallInd,      // Release call indicator
     BIT1 sendNotificationInd, // Send notification indicator
     BIT5 spare,               // Spare
     BIT1 extInd2,             // Extension indicator
     BIT6 aPMSegmentationInd,    // APM segmentation indicator
     BIT1 sequenceInd,           // Sequence indicator
     BIT1 extInd3,               // Extension indicator
     BIT7 segmentationLocalRef optional, // Segmentation local reference
     BIT1 extInd3a optional,             // Extension indicator
     OCTN aPMUserInfo // Encapsulated application information
    } with { variant "EXTENSION_BIT_GROUP (yes, applicationContextIdOct1,
                                                extInd1a)";
             variant "EXTENSION_BIT_GROUP (yes, aPMSegmentationInd,
                                                extInd3a)";
             variant "PRESENCE( id = '01111000'B)";
             variant (lengthField)"LENGTHTO(applicationContextIdOct1,extInd1,
                                            applicationContextIdOct1a,extInd1a,
                                            releaseCallInd,sendNotificationInd,
                                            spare,extInd2,aPMSegmentationInd,
                                            sequenceInd,extInd3,
                                            segmentationLocalRef,extInd3a,
                                            aPMUserInfo)";
           };

  type set of Application_transport_parameter
                         Application_transport_parameter_set
      with { variant "" };


//************************************************************************
// Automatic Congestion Level
// Ericsson Specification Reference: Chapter 2.3.3.5
// Standard Reference ISUP         : Chapter 3.4
//************************************************************************
  type record Automatic_congestion_level
    {
     BIT8 id,
     INT1 lengthField,

     BIT8 CongLevel
    } with { variant "PRESENCE( id = '00100111'B)";
             variant (lengthField)"LENGTHTO(CongLevel)";
           };


//************************************************************************
// Backward Call Indicators
// Ericsson Specification Reference: Chapter 2.3.3.6
// Standard Reference ISUP         : Chapter 3.5
//************************************************************************
  type record Backward_call_indicators_OPT
    {
     BIT8 id,
     INT1 lengthField,

     BIT2 ChargeInd,            // Charge indicator
     BIT2 CalledPartyStatusInd, // Called party's status indicator
     BIT2 CalledPartyCatInd,    // Called party's category indicator
     BIT2 EndToEndInd,          // End-to-end method indicator
     BIT1 InterworkingInd,   // Interworking indicator
     BIT1 EndToEndInfoInd,   // End-to-end INFormation indicator
     BIT1 ISUPInd,           // ISDN User Part indicator
     BIT1 HoldingInd,        // Holding indicator
     BIT1 ISDNAccessInd,     // ISDN access indicator
     BIT1 EchoControlDevInd, // Echo CONtrol device indicator
     BIT2 SCCPMethodInd      // SCCP method indicator
    } with { variant "PRESENCE( id = '00010001'B)";
             variant (lengthField)"LENGTHTO(ChargeInd,CalledPartyStatusInd,
                                            CalledPartyCatInd,EndToEndInd,
                                            InterworkingInd,EndToEndInfoInd,
                                            ISUPInd,HoldingInd,ISDNAccessInd,
                                            EchoControlDevInd,SCCPMethodInd)";
           };

  type record Backward_call_indicators    
    {
     BIT2 ChargeInd,            // Charge indicator
     BIT2 CalledPartyStatusInd, // Called party's status indicator
     BIT2 CalledPartyCatInd,    // Called party's category indicator
     BIT2 EndToEndInd,          // End-to-end method indicator
     BIT1 InterworkingInd,   // Interworking indicator
     BIT1 EndToEndInfoInd,   // End-to-end INFormation indicator
     BIT1 ISUPInd,           // ISDN User Part indicator
     BIT1 HoldingInd,        // Holding indicator
     BIT1 ISDNAccessInd,     // ISDN access indicator
     BIT1 EchoControlDevInd, // Echo CONtrol device indicator
     BIT2 SCCPMethodInd      // SCCP method indicator
    } with { variant ""};

//************************************************************************
// Backward GVNS
// Ericsson Specification Reference: Chapter 2.3.3.7
// Standard Reference ISUP         : Chapter 3.62
//************************************************************************
  type record Backward_GVNS
    {
     BIT8 id,
     INT1 lengthField,

     BIT2 TerminatingAccessInd, // Terminating access indicator
     BIT5 Spare,                // Spare
     BIT1 ExtensionInd          // Extension indicator
    } with { variant "PRESENCE( id = '01001101'B)";
             variant (lengthField)"LENGTHTO(TerminatingAccessInd,Spare,
                                            ExtensionInd)";
           };


//************************************************************************
// Call Diversion Information
// Ericsson Specification Reference: Chapter 2.3.3.8
// Standard Reference ISUP         : Chapter 3.6
//************************************************************************
  type record Call_diversion_information
    {
     BIT8 id,
     INT1 lengthField,

     BIT3 NotificationSubscriptionOptions, // Notification subscription options
     BIT4 RedirectionReason,               // Redirecting reason
     BIT1 Spare                            // Spare
    } with { variant "PRESENCE( id = '00110110'B)";
             variant (lengthField)"LENGTHTO(NotificationSubscriptionOptions,
                                            RedirectionReason,Spare)";
           };


//************************************************************************
// Call Diversion Treatment Information
// Ericsson Specification Reference: Chapter 2.3.3.9
// Standard Reference ISUP         : Chapter 3.72
//************************************************************************
  type record Call_diversion_treatment_indicators
    {
     BIT8 id,
     INT1 lengthField,

     BIT2 CallDivertedInd, // Call to be diverted indicator
     BIT5 Spare,           // Spare
     BIT1 ExtensionInd     // Extension indicator
    } with { variant "PRESENCE( id = '01101110'B)";
             variant(lengthField)"LENGTHTO(CallDivertedInd,Spare,ExtensionInd)";
           };


//************************************************************************
// Call History Information
// Ericsson Specification Reference: Chapter 2.3.3.10
// Standard Reference ISUP         : Chapter 3.7
//************************************************************************
  type record Call_history_information
    {
     BIT8 id,
     INT1 lengthField,

     OCT2 PropagatDelayValue
    } with { variant "PRESENCE( id = '00101101'B)";
             variant (lengthField)"LENGTHTO(PropagatDelayValue)";
           };


//************************************************************************
// Call Offering Treatment Indicators
// Ericsson Specification Reference: Chapter 2.3.3.11
// Standard Reference ISUP         : Chapter 3.74
//************************************************************************
  type record Call_offering_treatment_indicators
    {
     BIT8 id,
     INT1 lengthField,

     BIT2 CallOfferedInd, // Call to be offered indicator
     BIT5 Spare,          // Spare
     BIT1 ExtensionInd    // Extension indicator
    } with { variant "PRESENCE( id = '01110000'B)";
             variant (lengthField)"LENGTHTO(CallOfferedInd,Spare,ExtensionInd)";
           };


//************************************************************************
// Call Reference
// Standard Reference ISUP         : Chapter 3.8
//************************************************************************
  type record Call_reference
    {
     BIT8 id,
     INT1 lengthField,

     OCT5 CRef_contents // Call identity
    } with { variant "PRESENCE( id = '00000001'B)";
             variant (lengthField)"LENGTHTO(CRef_contents)";
           };


//************************************************************************
// Call Transfer Number
// Ericsson Specification Reference: Chapter 2.3.3.12
// Standard Reference ISUP         : Chapter 3.64
//************************************************************************
  type record Call_transfer_number
    {
     BIT8 id,
     INT1 lengthField,

     BIT7 NatureOfAddrInd, // Nature of address indicator
     BIT1 OddEven,         // Odd/even indicator
     BIT2 ScreeningInd,       // Screening indicator
     BIT2 AddrPresentRestInd, // Address presentation REStricted indicator
     BIT3 NumberingPlanInd,   // Numbering plan indicator
     BIT1 Spare,              // Spare
     HEX1_32 AddrSignals optional,  // Address signals and Filler if odd addr.signals
     HEX1 Filler optional
    } with { variant (AddrSignals) "HEXORDER(low)";
             variant "PRESENCE( id = '01000101'B)";
             variant (lengthField)"LENGTHTO(NatureOfAddrInd,OddEven,
                                            ScreeningInd,AddrPresentRestInd,
                                            NumberingPlanInd,Spare,
                                            AddrSignals,Filler)";
           };


//************************************************************************
// Call Transfer Reference
// Ericsson Specification Reference: Chapter 2.3.3.13
// Standard Reference ISUP         : Chapter 3.65
//************************************************************************
  type record Call_transfer_reference
    {
     BIT8 id,
     INT1 lengthField,

     BIT8 CallTransferId // Call transfer identity
    } with { variant "PRESENCE( id = '01000011'B)";
             variant (lengthField)"LENGTHTO(CallTransferId)";
           };


//************************************************************************
// Call Transfer Treatment Indicators
// Ericsson Specification Reference: Chapter 2.3.3.14
//************************************************************************
  type record Call_transfer_treatment_indicators
    {
     BIT8 id,
     INT1 lengthField,

     BIT2 CallTransferredInd, // Call to be transferred indicator
     BIT5 Spare,              // Spare
     BIT1 ExtensionInd        // Extension indicator
    } with { variant "PRESENCE( id = '11110011'B)";
             variant (lengthField)"LENGTHTO(CallTransferredInd,Spare,
                                            ExtensionInd)";
           };


//************************************************************************
// Called IN Number
// Standard Reference ISUP         : Chapter 3.73
//************************************************************************
  type record Called_IN_number
    {
     BIT8 id,
     INT1 lengthField,

     BIT7 NatureOfAddrInd, // Nature of address indicator
     BIT1 OddEven,         // Odd/even indicator
     BIT2 spare_1,
     BIT2 AddrPresentRestInd, // Address presentation REStricted indicator
     BIT3 NumberingPlanInd,   // Numbering plan indicator
     BIT1 spare_2,            // Numbering plan indicator
     HEX1_32 AddrSignals optional, // Address signals and Filler if odd addr.signals
     HEX1 Filler optional
    } with { variant (AddrSignals) "HEXORDER(low)";
             variant "PRESENCE( id = '01101111'B)";
             variant (lengthField)"LENGTHTO(NatureOfAddrInd,OddEven,
                                            spare_1,AddrPresentRestInd,
                                            NumberingPlanInd,spare_2,
                                            AddrSignals,Filler)";
           };

//************************************************************************
// Called Directory Number
// Standard Reference ISUP         : Chapter 3.86
//************************************************************************
  type record Called_directory_number
    {
     BIT8 id,
     INT1 lengthField,

     BIT7 NatureOfAddrInd, // Nature of address indicator
     BIT1 OddEven,         // Odd/even indicator
     BIT4 spare,             // spare
     BIT3 NumberingPlanInd,  // Numbering plan indicator
     BIT1 INNInd,            // Internal network number indicator
     HEX1_32 AddrSignals, // Address signals and Filler if odd addr.signals
     HEX1 Filler optional
    } with { variant (AddrSignals) "HEXORDER(low)";
             variant "PRESENCE( id = '01111101'B)";
             variant (lengthField)"LENGTHTO(NatureOfAddrInd,OddEven,
                                            spare,NumberingPlanInd,
                                            INNInd,AddrSignals,Filler)";
           };



//************************************************************************
// Called Party Number
// Ericsson Specification Reference: Chapter 2.3.3.15
// Standard Reference ISUP         : Chapter 3.9
//************************************************************************
  type record Called_party_number    
    {
     INT1 lengthField,

     BIT7 NatureOfAddrInd, // Nature of address indicator
     BIT1 OddEven,         // Odd/even indicator
     BIT4 Spare,             // spare
     BIT3 NumberingPlanInd,  // Numbering plan indicator
     BIT1 INNInd,            // Internal network number indicator
     HEX1_32 AddrSignals, // Address signals and Filler if odd addr.signals
     HEX1 Filler optional
    } with { variant (AddrSignals) "HEXORDER(low)";
             variant (lengthField)"LENGTHTO(NatureOfAddrInd,OddEven,
                                            Spare,NumberingPlanInd,
                                            INNInd,AddrSignals,Filler)";
           };


//************************************************************************
// Calling Geodetic Location
// Standard Reference ISUP         : Chapter 3.88
//************************************************************************
  type record Ellipsoid_point
    {
     OCT3 DgrLat, // Degrees of latitude with sign
     OCT3 DgrLong // Degrees of longitude
    } with { variant "" };

  type record Ellipsoid_point_with_uncertainty
    {
     OCT3 DgrLat,  // Degrees of latitude with sign
     OCT3 DgrLong, // Degrees of longitude
     BIT7 UncCode, // Uncertainty code
     BIT1 spare_1, // Spare
     BIT7 Conf,    // Confidence
     BIT1 spare_2  // Spare
    } with { variant "" };

  type record Point_with_altitude_and_uncertainty
    {
     OCT3 DgrLat,    // Degrees of latitude with sign
     OCT3 DgrLong,   // Degrees of longitude
     BIT7 UncCode_1, // Uncertainty code
     BIT1 spare_1,   // Spare
     OCT2 Alt,       // Altitude with sign
     BIT7 UncCode_2, // Uncertainty code
     BIT1 spare_2,   // Spare
     BIT7 Conf,      // Confidence
     BIT1 spare_3    // Spare
    } with { variant "" };

  type record Ellipse_on_the_ellipsoid
    {
     OCT3 DgrLat,  // Degrees of latitude with sign
     OCT3 DgrLong, // Degrees of longitude
     BIT7 MajRad,  // Major radius
     BIT1 spare_1, // Spare
     BIT7 MinRad,  // Minor radius
     BIT1 spare_2, // Spare
     OCT1 orient,  // Orientation
     BIT7 Conf,    // Confidence
     BIT1 spare_3  // Spare
    } with { variant "" };

  type record Ellipsoid_circle_sector
    {
     OCT3 DgrLat,  // Degrees of latitude with sign
     OCT3 DgrLong, // Degrees of longitude
     BIT7 Rad,     // Radius
     BIT1 spare_1, // Spare
     OCT1 Offset,  // Offset
     OCT1 IncAng,  // Included angle
     BIT7 Conf,    // Confidence
     BIT1 spare_2  // Spare
    } with { variant "" };

  type record Polygon
    {
     integer NumPoints, // Number of points
     BIT4 spare_1,      // Spare
     DgrLat_longs DgrLat_Longs, // Degrees of latitude / logitude
     BIT7 Conf,         // Confidence
     BIT1 spare_2       // Spare
    } with { variant (NumPoints)"LENGTHTO(DgrLat_Longs)";
             variant (NumPoints)"UNIT(elements)";
	     variant (NumPoints) "FIELDLENGTH(4)";
	   };

  type record of DgrLat_long DgrLat_longs// Degrees of latitude / logitude

  type record DgrLat_long
    {
     OCT3 DgrLat, // Degrees of latitude with sign
     OCT3 DgrLong // Degrees of longitude
    } with { variant "" };

  type union Shape_description_union
    {
     Ellipsoid_point                     EP,
     Ellipsoid_point_with_uncertainty    EPU,
     Point_with_altitude_and_uncertainty PAU,
     Ellipse_on_the_ellipsoid            EonE,
     Ellipsoid_circle_sector             ECS,
     Polygon                             Pol
    } with { variant "" };

  type record Calling_geodetic_location
    {
     BIT8 id,
     INT1 lengthField,

     BIT2 Scr,    // Screening
     BIT2 LPRI,   // Location presentation REStricted indicator
     BIT4 Spare,  // Spare
     BIT7 typeSh, // Type of shape
     BIT1 ExtI,   // Extension indicator
     Shape_description_union ShapeDes
    } with { variant (ShapeDes) "CROSSTAG(
                        EP,   typeSh = '0000000'B;
                        EPU,  typeSh = '0000001'B;
                        PAU,  typeSh = '0000010'B;
                        EonE, typeSh = '0000011'B;
                        ECS,  typeSh = '0000100'B;
                        Pol,  typeSh = '0000101'B
                        )";
             variant "PRESENCE( id = '10000001'B)";
             variant (lengthField)"LENGTHTO(Scr,LPRI,Spare,typeSh,ExtI,
                                            ShapeDes)";
           };

//************************************************************************
// Calling name identity
// Ericsson Specification Reference: Chapter 2.3.3.16
//************************************************************************
  type record Calling_name_identity
    {
     BIT8 id,
     INT1 lengthField,

     BIT2 namePresentationRestrictedInd, // Name presentation restricted ind.
     BIT2 screeningIndicator, // Screening indicator
     BIT1 availabilityInd, // Availability indicator
     BIT3 typeOfName, // Type of name
     BIT8 encodingInd, // Encoding identification
     OCT1_50 characterSubfield // Character
    } with { variant "PRESENCE( id = '11110010'B)";
             variant (lengthField)"LENGTHTO(namePresentationRestrictedInd,
                                            screeningIndicator,availabilityInd,
                                            typeOfName,encodingInd,
                                            characterSubfield)";
           };


//************************************************************************
// Calling Party Number
// Ericsson Specification Reference: Chapter 2.3.3.17
// Standard Reference ISUP         : Chapter 3.10
//************************************************************************
  type record Calling_party_number
    {
     BIT8 id,
     INT1 lengthField,

     BIT7 NatureOfAddrInd,  // Nature of address indicator
     BIT1 OddEven,          // Odd/even indicator
     BIT2 ScreeningInd,       // Screening indicator
     BIT2 AddrPresentRestInd, // Address presentation REStricted indicator
     BIT3 NumberingPlanInd,   // Numbering plan indicator
     BIT1 NIInd,              // Calling party number incomplete indicator
     HEX1_32 AddrSignals optional, // Address signals and Filler if odd addr.signals
     HEX1 Filler optional
    } with { variant (AddrSignals) "HEXORDER(low)";
             variant "PRESENCE( id = '00001010'B)";
             variant (lengthField)"LENGTHTO(NatureOfAddrInd,OddEven,
                                            ScreeningInd,AddrPresentRestInd,
                                            NumberingPlanInd,NIInd,
                                            AddrSignals,Filler)";
           };

//************************************************************************
// Calling Party Number
// Ericsson Specification Reference: Chapter 2.3.3.18
// Standard Reference ISUP         : Chapter 3.11
//************************************************************************
  type record Calling_partys_category_OPT
    {
     BIT8 id,
     INT1 lengthField,

     BIT8 CallingPartysCategory  // Calling party's category
    } with { variant "PRESENCE( id = '00001001'B)";
             variant (lengthField)"LENGTHTO(CallingPartysCategory)";
           };

  type record Calling_partys_category    
    {
     BIT8 CallingPartysCategory  // Calling party's category
    } with { variant "" };

//************************************************************************
// Cause Indicators
// Ericsson Specification Reference: Chapter 2.3.3.19
// Standard Reference ISUP         : Chapter 3.12
//************************************************************************
  type record Cause_indicators_OPT
    {
     BIT8 id,
     INT1 lengthField,

     BIT4 Location,         // Location
     BIT1 Spare,            // Spare
     BIT2 CodingStandard,   // Coding standard
     BIT1 Ext1,             // Extension indicator
     BIT7 CauseValue,       // Vause value
     BIT1 Ext2,             // Extension indicator
     OCTN Diagnostics optional // Diagnostic(s)   (if any)
    } with { variant "PRESENCE( id = '00010010'B)";
             variant (lengthField)"LENGTHTO(Location,Spare,CodingStandard,
                                            Ext1,CauseValue,
                                            Ext2,Diagnostics)";
           };

  type record Cause_indicators    
    {
     INT1 lengthField,

     BIT4 Location,         // Location
     BIT1 Spare,            // Spare
     BIT2 CodingStandard,   // Coding standard
     BIT1 Ext1,             // Extension indicator
     BIT7 Reserved optional,   // National Recommendation
     BIT1 Ext1a optional,      // Present when Reserved field is present
     BIT7 CauseValue,       // Vause value
     BIT1 Ext2,             // Extension indicator
     OCTN Diagnostics optional // Diagnostic(s)   (if any)
    } with { variant (Reserved) "PRESENCE (Ext1='0'B)";
             variant (Ext1a) "PRESENCE (Ext1='0'B)";
             variant (lengthField)"LENGTHTO(Location,Spare,CodingStandard,
                                            Ext1,Reserved,Ext1a,CauseValue,
                                            Ext2,Diagnostics)";
           };


//************************************************************************
// CCNR Possible Indicator
// Standard Reference ISUP         : Chapter 3.83
//************************************************************************
  type record CCNR_possible_indicator
    {
     BIT8 id,
     INT1 lengthField,

     BIT1 CCNRPInd, // CCNR possible indicator
     BIT7 spare     // Spare
    } with { variant "PRESENCE( id = '01111010'B)";
             variant (lengthField)"LENGTHTO(CCNRPInd,spare)";
           };


//************************************************************************
// CCSS
// Ericsson Specification Reference: Chapter 2.3.3.20
// Standard Reference ISUP         : Chapter 3.63
//************************************************************************
  type record CCSS_parameter
    {
     BIT8 id,
     INT1 lengthField,

     BIT1 CCSSCallInd,  // CCSS call indicator
     BIT7 Spare
    } with { variant "PRESENCE( id = '01001011'B)";
             variant (lengthField)"LENGTHTO(CCSSCallInd,Spare)";
           };


//************************************************************************
// Charged Party Identification
// Standard Reference ISUP         : Chapter 3.75
//************************************************************************
  type record Charged_party_identification
    {
     BIT8 id,
     INT1 lengthField,

     OCTN ChargedPartyId
    } with { variant "PRESENCE( id = '01110001'B)";
             variant (lengthField)"LENGTHTO(ChargedPartyId)";
           };


//************************************************************************
// Circuit Assignment Map
// Standard Reference ISUP         : Chapter 3.69
//************************************************************************
  type record Circuit_assignment_map
    {
     BIT8 id,
     INT1 lengthField,

     BIT6 MapType,  // Map type
     BIT2 spare_1,  // Spare
     BIT31 MapFormat,  // Map format
     BIT1  spare_2     // spare
    } with { variant "PRESENCE( id = '00100101'B)";
             variant (lengthField)"LENGTHTO(MapType,spare_1,MapFormat,spare_2)";
           };


//************************************************************************
// Circuit Group Supervision Message Type Indicator
// Ericsson Specification Reference: Chapter 2.3.3.21
// Standard Reference ISUP         : Chapter 3.13
//************************************************************************
  type record Circuit_group_supervision_message_type_indicator    
    {
     BIT2 Type, // Type indicator
     BIT6 Spare // Spare
    } with { variant "" };


//************************************************************************
// Circuit State Indicator
// Ericsson Specification Reference: Chapter 2.3.3.22
// Standard Reference ISUP         : Chapter 3.14
//************************************************************************
  type record Circuit_state_indicator    
    {
     INT1 lengthField,

     OCTN CircuitStateIndicator
    } with { variant (lengthField)"LENGTHTO(CircuitStateIndicator)";
           };


//************************************************************************
// Closed User Group Interlock Code
// Ericsson Specification Reference: Chapter 2.3.3.23
// Standard Reference ISUP         : Chapter 3.15
//************************************************************************
// The contents of this parameter are not subdivided because values
//are easy to give as hexnumbers.
  type record Closed_user_group_interlock_code
    {
     BIT8 id,
     INT1 lengthField,

     OCT4 CUGIC_contents // CUGIC
    } with { variant "PRESENCE( id = '00011010'B)";
             variant (lengthField)"LENGTHTO(CUGIC_contents)";
           };


//************************************************************************
// Collect Call Request
// Standard Reference ISUP         : Chapter 3.81
//************************************************************************
  type record Collect_call_request
    {
     BIT8 id,
     INT1 lengthField,

     BIT1 CCReqInd, // Collect call request indicator
     BIT7 spare     // Spare
    } with { variant "PRESENCE( id = '01111001'B)";
             variant (lengthField)"LENGTHTO(CCReqInd,spare)";
           };


//************************************************************************
// Conference Treatment Indicators
// Ericsson Specification Reference: Chapter 2.3.3.24
// Standard Reference ISUP         : Chapter 3.76
//************************************************************************
  type record Conference_treatment_indicators
    {
     BIT8 id,
     INT1 lengthField,

     BIT2 ConfAcceptanceInd, // Conference acceptance indicator
     BIT5 Spare,             // Spare
     BIT1 ExtensionInd       // Extension indicator
    } with { variant "PRESENCE( id = '01110010'B)";
             variant (lengthField)"LENGTHTO(ConfAcceptanceInd,Spare,
                                            ExtensionInd)";
           };


//************************************************************************
// Connected Number
// Ericsson Specification Reference: Chapter 2.3.3.25
// Standard Reference ISUP         : Chapter 3.16
//************************************************************************
  type record Connected_number
    {
     BIT8 id,
     INT1 lengthField,

     BIT7 NatureOfAddrInd, // Nature of address indicators
     BIT1 OddEven,         // Odd/even indicator
     BIT2 ScreeningInd,       // Screening indicator
     BIT2 AddrPresentRestInd, // Address presentation REStriction indicator
     BIT3 NumberingPlanInd,   // Numbering plan indicator
     BIT1 Spare,              // Spare
     HEX1_32 AddrSignals optional, // Address signals and Filler if odd addr.signals
     HEX1 Filler optional
    } with { variant (AddrSignals) "HEXORDER(low)";
             variant "PRESENCE( id = '00100001'B)";
             variant (lengthField)"LENGTHTO(NatureOfAddrInd,OddEven,
                                            ScreeningInd,AddrPresentRestInd,
                                            NumberingPlanInd,Spare,
                                            AddrSignals,Filler)";
           };

//************************************************************************
// Connection Request
// Standard Reference ISUP         : Chapter 3.17
//************************************************************************
  type record Connection_request
    {
     BIT8 id,
     INT1 lengthField,

     OCT3 LocRef,       // Local reference
     OCT2 SPC_contents, // Signalling point code
     BIT8 PC,           // Protocol class
     BIT8 credit        // Credit
    } with { variant "PRESENCE( id = '00001101'B)";
             variant (lengthField)"LENGTHTO(LocRef,SPC_contents,PC,credit)";
           };


//************************************************************************
// Continuity Indicators
// Ericsson Specification Reference: Chapter 2.3.3.26
// Standard Reference ISUP         : Chapter 3.18
//************************************************************************
  type record Continuity_indicators
    {
     BIT1 ContInd_field, // Continuity indicator
     BIT7 Spare // Spare
    } with { variant "" };


//************************************************************************
// Correlation Id
// Ericsson Specification Reference: Chapter 2.3.3.27
// Standard Reference ISUP         : Chapter 3.70
//************************************************************************
  type record Correlation_id
    {
     BIT8 id,
     INT1 lengthField,

     OCTN  CorrelationId
    } with { variant "PRESENCE( id = '01100101'B)";
             variant (lengthField)"LENGTHTO(CorrelationId)";
           };


//************************************************************************
// Display Information
// Ericsson Specification Reference: Chapter 2.3.3.28
// Standard Reference ISUP         : Chapter 3.77
//************************************************************************
  type record Display_information
    {
     BIT8 id,
     INT1 lengthField,

     OCTN DisplayInfo
    } with { variant "PRESENCE( id = '01110011'B)";
             variant (lengthField)"LENGTHTO(DisplayInfo)";
           };


//************************************************************************
// Distributed Dynamic Routing Indicators
// Ericsson Specification Reference: Chapter 2.3.3.29
//************************************************************************
  type record Distributed_dynamic_routing_indicators
    {
     BIT8 id,
     INT1 lengthField,

     BIT1 AutoReroutingInd,   // Automatic re-routing indicator
     BIT1 EventDepRoutingInd, // Event dependent routing indicator
     BIT6 Spare               // Spare
    } with { variant "PRESENCE( id = '11111000'B)";
             variant (lengthField)"LENGTHTO(AutoReroutingInd,EventDepRoutingInd,
                                            Spare)";
           };


//************************************************************************
// Echo Control Information
// Standard Reference ISUP         : Chapter 3.19
//************************************************************************
  type record Echo_control_information
    {
     BIT8 id,
     INT1 lengthField,

     BIT2 OEchoRsI, // Outgoing echo CONtrol device INFormation indicator
     BIT2 IEchoRsI, // Incoming echo CONtrol device INFormation indicator
     BIT2 OEchoRqI, // Outgoing echo CONtrol device request indicator
     BIT2 IEchoRqI  // Incoming echo CONtrol device request indicator
    } with { variant "PRESENCE( id = '00110111'B)";
             variant (lengthField)"LENGTHTO(OEchoRsI,IEchoRsI,OEchoRqI,
                                            IEchoRqI)";
           };


//************************************************************************
// Event Information
// Ericsson Specification Reference: Chapter 2.3.3.31
// Standard Reference ISUP         : Chapter 3.21
//************************************************************************
  type record Event_information    
    {
     BIT7 EventInd,            // Event indicator
     BIT1 EventPresentRestrInd // Event presentation retriction indicator
    } with { variant ""};


//************************************************************************
// Facility Indicator
// Ericsson Specification Reference: Chapter 2.3.3.32
// Standard Reference ISUP         : Chapter 3.22
//************************************************************************
  type record Facility_indicator    
    {
     OCT1 FacilityInd  // Facility indicator
    } with { variant "" };


//************************************************************************
// Forward Call Indicators
// Ericsson Specification Reference: Chapter 2.3.3.33
// Standard Reference ISUP         : Chapter 3.23
//************************************************************************
  type record Forward_call_indicators    
    {
     BIT1 NatIntCallInd,     // National/international call indicator
     BIT2 EndToEndMethInd,   // End-to-end method indicator
     BIT1 InterworkInd,      // Interworking indicator
     BIT1 EndToEndInfoInd,   // End-to-end INFormation indicator
     BIT1 ISUPInd,           // ISDN User Part indicator
     BIT2 ISUPPreferenceInd, // ISDN User Part preference indicator
     BIT1 ISDNAccessInd, // ISDN access indicator
     BIT2 SCCPMethodInd, // SCCP method indicator
     BIT1 Spare,         // Spare
     BIT2 Reserved,      // Reserved
     BIT2 VPNCallInd     // VPN call indicator (national use)
    } with { variant "" };


//************************************************************************
// Forward GVNS
// Ericsson Specification Reference: Chapter 2.3.3.34
// Standard Reference ISUP         : Chapter 3.66
//************************************************************************
 type record Forward_GVNS
    {
     BIT8 id,
     INT1 lengthField,

     INT4b OPSP_Len,        // OPSP length indicator
     BIT3 OPSP_Spare,      // Spare
     BIT1 OPSP_OddEven,    // Odd/even indicator
     HEX1_32 OPSP_AddSign optional, // Digits and Filler if odd digits
     HEX1 OPSP_Filler optional,
     INT4b GUG_Len,           // GUG length indicator
     BIT3 GUG_Spare,         // Spare
     BIT1 GUG_OddEven,       // Odd/even indicator
     HEX1_32 GUG_AddSign optional,    // Digits and Filler if odd digits
     HEX1 GUG_Filler optional,
     INT4b TNRN_Len,        // TNRN length indicator
     BIT3 TNRN_NumPlanInd, // Numbering plan indicator
     BIT1 TNRN_OddEven,    // Odd/even indicator
     BIT7 TNRN_NatOfAddInd optional, // Nature of address indicator
     BIT1 TNRN_Spare       optional, // Spare
     HEX1_32 TNRN_AddSign  optional, // Digits and Filler if odd digits
     HEX1 TNRN_Filler optional
    } with { variant (OPSP_Len) "LENGTHTO(OPSP_AddSign,OPSP_Filler)";
             variant (GUG_Len)  "LENGTHTO(GUG_AddSign,GUG_Filler)";
             variant (TNRN_Len) "LENGTHTO(TNRN_NatOfAddInd,TNRN_Spare,
                                          TNRN_AddSign,TNRN_Filler)";
             variant (OPSP_AddSign) "HEXORDER(low)";
             variant (GUG_AddSign)  "HEXORDER(low)";
             variant (TNRN_AddSign) "HEXORDER(low)";
             variant "PRESENCE( id = '01001100'B)";
             variant (lengthField)"LENGTHTO(OPSP_Len,OPSP_Spare,OPSP_OddEven,
                                            OPSP_AddSign,OPSP_Filler,GUG_Len,
                                            GUG_Spare,GUG_OddEven,GUG_AddSign,
                                            GUG_Filler,TNRN_Len,TNRN_NumPlanInd,
                                            TNRN_OddEven,TNRN_NatOfAddInd,
                                            TNRN_Spare,TNRN_AddSign,
                                            TNRN_Filler)";
           };


//************************************************************************
// Freephone Indicators
// Ericsson Specification Reference: Chapter 2.3.3.35
//************************************************************************
  type record Freephone_indicators
    {
     BIT8 id,
     INT1 lengthField,

     BIT1 FreephoneInd, // Freephone indicator
     BIT7 Spare         // Spare
    } with { variant "PRESENCE( id = '01000001'B)";
             variant (lengthField)"LENGTHTO(FreephoneInd,Spare)";
           };


//************************************************************************
// Generic Digits
// Ericsson Specification Reference: Chapter 2.3.3.36
// Standard Reference ISUP         : Chapter 3.24
//************************************************************************
  type record Generic_digits
    {
     BIT8 id,
     INT1 lengthField,

     BIT5 TypeOfDigits,   // Type of digits
     BIT3 EncodingScheme, // Encoding scheme
     HEX1_32 Digits       // Digits
    } with { variant "PRESENCE( id = '11000001'B)";
             variant (lengthField)"LENGTHTO(TypeOfDigits,EncodingScheme,
                                            Digits)";
           };

  type set of Generic_digits Generic_digits_set
      with { variant "" };


//************************************************************************
// Generic Notification Indicator
// Ericsson Specification Reference: Chapter 2.3.3.37
// Standard Reference ISUP         : Chapter 3.25
//************************************************************************
  type record Generic_notification_indicator
    {
     BIT8 id,
     INT1 lengthField,

     BIT7 NotificationInd, // Notification indicator
     BIT1 ExtInd           // Extension indicator
    } with { variant "PRESENCE( id = '00101100'B)";
             variant (lengthField)"LENGTHTO(NotificationInd,ExtInd)";
           };

  type set of Generic_notification_indicator 
                 Generic_notification_indicator_set
      with { variant "" };


//************************************************************************
// Generic Number
// Ericsson Specification Reference: Chapter 2.3.3.38
// Standard Reference ISUP         : Chapter 3.26
//************************************************************************
  type record Generic_number
    {
     BIT8 id,
     INT1 lengthField,

     BIT8 NumQualifier,   // Number qualifier indicator
     BIT7 NatureOfAddrInd, // Nature of address indicator
     BIT1 Odd_Even,        // Odd/even indicator
     BIT2 ScreeningInd,       // Screening indicator
     BIT2 AddrPresentRestInd, // Address presesntation REStricted indicator
     BIT3 NumberingPlanInd,   // Numbering plan indicator
     BIT1 NIInd,              // Number incomplete indicator
     HEX1_32 AddrSignals optional, // Address signals and Filler if odd addr.signals
     HEX1 Filler optional
    } with { variant (AddrSignals) "HEXORDER(low)";
             variant "PRESENCE( id = '11000000'B)";
             variant (lengthField)"LENGTHTO(NumQualifier,NatureOfAddrInd,
                                            Odd_Even,ScreeningInd,
                                            AddrPresentRestInd,NumberingPlanInd,
                                            NIInd,AddrSignals,Filler)";
           };

  type set of Generic_number Generic_number_set
      with { variant "" };


  //************************************************************************
// HTR Information
// Standard Reference ISUP         : Chapter 3.89
//************************************************************************
  type record HTR_information
    {
     BIT8 id,
     INT1 lengthField,

     BIT7 NatureOfAddrInd, // Nature of address indicator
     BIT1 OddEven,         // Odd/even indicator
     BIT4 spare_1,           // Spare
     BIT3 NumberingPlanInd,  // Numbering plan indicator
     BIT1 spare_2,           // Spare
     HEX1_32 AddrSignals, // Address signals and Filler if odd addr.signals
     HEX1 Filler optional
    } with { variant (AddrSignals) "HEXORDER(low)";
             variant "PRESENCE( id = '10000010'B)";
             variant (lengthField)"LENGTHTO(NatureOfAddrInd,OddEven,spare_1,
                                            NumberingPlanInd,spare_2,
                                            AddrSignals,Filler)";
           };

//************************************************************************
// Hop Counter
// Ericsson Specification Reference: Chapter 2.3.3.39
// Standard Reference ISUP         : Chapter 3.80
//************************************************************************
  type record Hop_counter
    {
     BIT8 id,
     INT1 lengthField,

     BIT5 HopCount, // Hop counter
     BIT3 spare // Spare
    } with { variant "PRESENCE( id = '00111101'B)";
             variant (lengthField)"LENGTHTO(HopCount,spare)";
           };


//************************************************************************
// Information Indicators
// Ericsson Specification Reference: Chapter 2.3.3.40
// Standard Reference ISUP         : Chapter 3.28
//************************************************************************
  type record Information_indicators    
    {
     BIT2 CallingPartyAddrRespInd, // Calling party address RESponse indicator
     BIT1 HoldProvidedInd,         // Hold provided indicator
     BIT2 Spare1,                  // Spare
     BIT1 CallingPartyCatRespInd,  // Calling party's category RESponse ind.
     BIT1 Reserved1,               // Reserved
     BIT1 SolicitedInfoInd,        // Solicited INFormation indicator
     BIT4 Spare2,   // Spare
     BIT4 Reserved2 // Reserved 2
    } with { variant "" };


//************************************************************************
// Information Request Indicators
// Ericsson Specification Reference: Chapter 2.3.3.41
// Standard Reference ISUP         : Chapter 3.29
//************************************************************************
  type record Information_request_indicators    
    {
     BIT1 CallingPartyAddrRequestInd,// Calling party address request ind.
     BIT1 HoldingInd_or_Spare,       // Holding indicator
     BIT1 Spare1,                    // Spare
     BIT1 CallingPartyCatRequestInd, // Calling party's category request ind.
     BIT1 Reserved1,                 // Charge INFormation request ind.
     BIT2 Spare2,                    // Spare
     BIT1 MCIDReqInd_or_Spare, // Malicious call identification request ind.
     BIT4 Spare3,   // Spare
     BIT4 Reserved2 // Reserved
    } with { variant "" };


//************************************************************************
// Location Number
// Ericsson Specification Reference: Chapter 2.3.3.42
// Standard Reference ISUP         : Chapter 3.30
//************************************************************************
  type record Location_number
    {
     BIT8 id,
     INT1 lengthField,

     BIT7 NatureOfAddrInd, // Nature of address indicator
     BIT1 OddEven,         // Odd/Even indicator
     BIT2 ScreeningInd,       // Screening indicator
     BIT2 AddrPresentRestInd, // Address presentation REStricted indicator
     BIT3 NumberingPlanInd,   // Numbering plan indicator
     BIT1 INNInd,             // Internal network number indicator
     HEX1_32 AddrSignals optional, // Address signals and Filler if odd addr.signals
     HEX1 Filler optional
    } with { variant (AddrSignals) "HEXORDER(low)";
             variant "PRESENCE( id = '00111111'B)";
             variant (lengthField)"LENGTHTO(NatureOfAddrInd,OddEven,
                                            ScreeningInd,AddrPresentRestInd,
                                            NumberingPlanInd,INNInd,
                                            AddrSignals,Filler)";
           };

//************************************************************************
// Loop Prevention Indicators
// Ericsson Specification Reference: Chapter 2.3.3.43
// Standard Reference ISUP         : Chapter 3.67
//************************************************************************
  type record Loop_prevention_indicators
    {
     BIT8 id,
     INT1 lengthField,

     BIT1 Type,                 // Type
     BIT2 ResponseInd_or_Spare, // Response indicator or Spare
     BIT5 Spare
    } with { variant "PRESENCE( id = '01000100'B)";
             variant (lengthField)"LENGTHTO(Type,ResponseInd_or_Spare,Spare)";
           };

//************************************************************************
// MCID Request Indicators
// Ericsson Specification Reference: Chapter 2.3.3.44
// Standard Reference ISUP         : Chapter 3.31
//************************************************************************
  type record MCID_request_indicators
    {
     BIT8 id,
     INT1 lengthField,

     BIT1 MCIDReqInd, // MCID request indicator
     BIT1 HoldingInd, // Holding indicator
     BIT6 Spare       // Spare
    } with { variant "PRESENCE( id = '00111011'B)";
             variant (lengthField)"LENGTHTO(MCIDReqInd,HoldingInd,Spare)";
           };


//************************************************************************
// MCID Response Indicators
// Ericsson Specification Reference: Chapter 2.3.3.45
// Standard Reference ISUP         : Chapter 3.32
//************************************************************************
  type record MCID_response_indicators
    {
     BIT8 id,
     INT1 lengthField,

     BIT1 MCIDRespInd,    // MCID RESponse indicator
     BIT1 HoldingProvInd, // Hold provided indicator
     BIT6 Spare           // Spare
    } with { variant "PRESENCE( id = '00111100'B)";
             variant (lengthField)"LENGTHTO(MCIDRespInd,HoldingProvInd,Spare)";
           };


//************************************************************************
// Message Compatibility Information
// Ericsson Specification Reference: Chapter 2.3.3.46
// Standard Reference ISUP         : Chapter 3.33
//************************************************************************
  type record Message_compatibility_information
    {
     BIT8 id,
     INT1 lengthField,

     BIT1 TransitIntermedExchInd, // Transit at intermediate exchange ind.
     BIT1 ReleaseCallInd,         // Release call indicator
     BIT1 SendNotificationInd,    // Send notification indicator
     BIT1 DiscardMessageInd,      // Discard message indicator
     BIT1 PassOnNotPossibleInd,   // Pass on not possible indicator
     BIT2 BroadNarrowbandIwInd,   // Broadband/narrowband interworking ind.
     BIT1 ExtInd1,                // Extension indicator
     OCTN Spare2  optional
    } with { variant "EXTENSION_BIT_GROUP (yes,TransitIntermedExchInd,Spare2)";
             variant "PRESENCE( id = '00111000'B)";
             variant (lengthField)"LENGTHTO(TransitIntermedExchInd,
                                            ReleaseCallInd,SendNotificationInd,
                                            DiscardMessageInd,
                                            PassOnNotPossibleInd,
                                            BroadNarrowbandIwInd,
                                            ExtInd1,Spare2)";
           };




//************************************************************************
// Meter Pulse Indicator
// Ericsson Specification Reference: Chapter 2.3.3.47
//************************************************************************
  type record Meter_pulse_indicator
    {
     BIT8 id,
     INT1 lengthField,

     OCT1 MeterPulse, // Meter pulse indicator
     OCT1 Reserved    // Reserved
    } with { variant "PRESENCE( id = '11111110'B)";
             variant (lengthField)"LENGTHTO(MeterPulse,Reserved)";
           };

//************************************************************************
// MLPP Precedence
// Ericsson Specification Reference: Chapter 2.3.3.48
// Standard Reference ISUP         : Chapter 3.34
//************************************************************************
  type record MLPP_precedence
    {
     BIT8 id,
     INT1 lengthField,

     BIT4 PreLev,  // Precedence level
     BIT1 spare_1, // Spare
     BIT2 LFB,     // Look ahead for busy
     BIT1 spare_2, // Spare
     OCT2 NI,       // Network identity
     OCT3 ServDom   // MLPP service domain
    } with { variant "PRESENCE( id = '00111010'B)";
             variant (lengthField)"LENGTHTO(PreLev,spare_1,LFB,spare_2,NI,
                                            ServDom)";
           };


//************************************************************************
// Nature Of Connection Indicators
// Ericsson Specification Reference: Chapter 2.3.3.49
// Standard Reference ISUP         : Chapter 3.35
//************************************************************************
  type record Nature_of_connection_indicators    
    {
     BIT2 SatelliteInd,       // Satellite indicator
     BIT2 ContinuityCheckInd, // Continuity check indicator
     BIT1 EchoControlDevInd,  // Echo CONtrol device indicator
     BIT3 Spare               // Spare
    } with { variant "" };


//************************************************************************
// Network Call Reference
// Ericsson Specification Reference: Chapter 2.3.3.50
//************************************************************************
  type record Network_call_reference
    {
     BIT8 id,
     INT1 lengthField,

     OCT3 CallIdentity, // Call identity
     BIT14 SwitchId, // Switch identity
     BIT2 Spare // Spare
    } with { variant "PRESENCE( id = '11110100'B)";
             variant (lengthField)"LENGTHTO(CallIdentity,SwitchId,Spare)";
           };


//************************************************************************
// Network Management Controls
// Standard Reference ISUP         : Chapter 3.68
//************************************************************************
  type record Network_management_controls
    {
     BIT8 id,
     INT1 lengthField,

     BIT1 TAR_indicator, // Temporary alternate routing indicator
     BIT6 spare,         // Temporary alternate routing indicator
     BIT1 ExtI           // Extension indicator
    } with { variant "PRESENCE( id = '01011011'B)";
             variant (lengthField)"LENGTHTO(TAR_indicator,spare,ExtI)";
           };


//************************************************************************
// Network Routing Number
// Standard Reference ISUP         : Chapter 3.90
//************************************************************************
  type record Network_routing_number
    {
     BIT8 id,
     INT1 lengthField,

     BIT4 NatureOfAddrInd,  // Nature of address indicator
     BIT3 NumberingPlanInd, // Numbering plan indicator
     BIT1 OddEven,          // Odd/even indicator
     HEX1_32 AddrSignals, // Address signals and Filler if odd addr.signals
     HEX1 Filler optional
    } with { variant (AddrSignals) "HEXORDER(low)";
             variant "PRESENCE( id = '10000100'B)";
             variant (lengthField)"LENGTHTO(NatureOfAddrInd,NumberingPlanInd,
                                            OddEven,AddrSignals,Filler)";
           };

//************************************************************************
// Network Specific Facility
// Ericsson Specification Reference: Chapter 2.3.3.51
// Standard Reference ISUP         : Chapter 3.36
//************************************************************************
  type record Network_specific_facility
    {
     BIT8 id,
     INT1 lengthField,

     INT1 LenOfNetwId, // Length of network identification
     BIT4 NetworkIdPlan optional,   // Network identification plan
     BIT3 TypeofNetworkId optional, // Type of network identification
     BIT1 One optional,
     OCTN NetworkId optional,   // Network id. First bit in octets is 0
     OCTN NetworkSpecificFacility // network-specific FACility indicator
    } with { variant (LenOfNetwId) "LENGTHTO(NetworkIdPlan,TypeofNetworkId,
                                             One,NetworkId)";
             variant "PRESENCE( id = '00101111'B)";
             variant (lengthField)"LENGTHTO(LenOfNetwId,NetworkIdPlan,
                                            TypeofNetworkId,One,NetworkId,
                                            NetworkSpecificFacility)";
           };


//************************************************************************
// Number Portability Forward Information
// Standard Reference ISUP         : Chapter 3.101
//************************************************************************
  type record Number_portability_forward_information
    {
     BIT8 id,
     INT1 lengthField,

     BIT4 NbPStInd, // Number portability status indicator
     BIT3 spare,    // Spare
     BIT1 ExtI      // Extension indicator
    } with { variant "PRESENCE( id = '10001101'B)";
             variant (lengthField)"LENGTHTO(NbPStInd,spare,ExtI)";
           };


//************************************************************************
// Optional Backward Call Indicators
// Ericsson Specification Reference: Chapter 2.3.3.52
// Standard Reference ISUP         : Chapter 3.37
//************************************************************************
  type record Optional_backward_call_indicators
    {
     BIT8 id,
     INT1 lengthField,

     BIT1 InBandInfoInd,            // In-band INFormation indicator
     BIT1 CallDiversionMayOccurInd, // Call diversion may occur indicator
     BIT1 SimpleSegmentationInd,    // Simple segmentation indicator
     BIT1 MLPPUserInd,              // MLPP User Indicator
     BIT2 Reserved,                 // Reserved
     BIT1 TimeSupervBeforeAnsInd,   // Time supervision before answerind.
     BIT1 LastPartyRelInd           // Last party release indicator
    } with { variant "PRESENCE( id = '00101001'B)";
             variant (lengthField)"LENGTHTO(InBandInfoInd,
                                            CallDiversionMayOccurInd,
                                            SimpleSegmentationInd,MLPPUserInd,
                                            Reserved,TimeSupervBeforeAnsInd,
                                            LastPartyRelInd)";
           };


//************************************************************************
// Optional Forward Call Indicators
// Ericsson Specification Reference: Chapter 2.3.3.53
// Standard Reference ISUP         : Chapter 3.38
//************************************************************************
  type record Optional_forward_call_indicators
    {
     BIT8 id,
     INT1 lengthField,

     BIT2 CUGCallInd,            // Closed user group call indicator
     BIT1 SimpleSegmentationInd, // Simple segmentation indicator
     BIT4 Spare,                 // Spare
     BIT1 ConnLineReqInd         // Connected line identity request indicator
    } with { variant "PRESENCE( id = '00001000'B)";
             variant (lengthField)"LENGTHTO(CUGCallInd,SimpleSegmentationInd,
                                            Spare,ConnLineReqInd)";
           };


//************************************************************************
// Original Called Number
// Ericsson Specification Reference: Chapter 2.3.3.54
// Standard Reference ISUP         : Chapter 3.39
//************************************************************************
  type record Original_called_number
    {
     BIT8 id,
     INT1 lengthField,

     BIT7 NatureOfAddrInd, // Nature of address indicator
     BIT1 OddEven,         // Odd/even indicator
     BIT2 Spare_1,            // Spare
     BIT2 AddrPresentRestInd, // Address presentation REStricted indicator
     BIT3 NumberingPlanInd,   // Numbering plan indicator
     BIT1 Spare_2,            // Spare
     HEX1_32 AddrSignals optional, // Address signals and Filler if odd addr.signals
     HEX1 Filler optional
    } with { variant (AddrSignals) "HEXORDER(low)";
             variant "PRESENCE( id = '00101000'B)";
             variant (lengthField)"LENGTHTO(NatureOfAddrInd,OddEven,Spare_1,
                                            AddrPresentRestInd,NumberingPlanInd,
                                            Spare_2,AddrSignals,Filler)";
           };

//************************************************************************
// Original Called IN Number
// Standard Reference ISUP         : Chapter 3.87
//************************************************************************
  type record Original_called_IN_number
    {
     BIT8 id,
     INT1 lengthField,

     BIT7 NatureOfAddrInd, // Nature of address indicator
     BIT1 OddEven,         // Odd/even indicator
     BIT2 spare_1,            // Spare
     BIT2 AddrPresentRestInd, // Address presentation REStricted indicator
     BIT3 NumberingPlanInd,   // Numbering plan indicator
     BIT1 spare_2,            // Spare
     HEX1_32 AddrSignals optional, // Address signals and Filler if odd addr.signals
     HEX1 Filler optional
    } with { variant (AddrSignals) "HEXORDER(low)";
             variant "PRESENCE( id = '01111111'B)";
             variant (lengthField)"LENGTHTO(NatureOfAddrInd,OddEven,spare_1,
                                            AddrPresentRestInd,NumberingPlanInd,
                                            spare_2,AddrSignals,Filler)";
           };

//************************************************************************
// Origination ISC Point Code
// Ericsson Specification Reference: Chapter 2.3.3.55
// Standard Reference ISUP         : Chapter 3.40
//************************************************************************
  type record Origination_ISC_point_code
    {
     BIT8 id,
     INT1 lengthField,

     OCT2 OriISC_contents // Signalling point code
    } with { variant "PRESENCE( id = '00101011'B)";
             variant (lengthField)"LENGTHTO(OriISC_contents)";
           };


//************************************************************************
// Parameter Compatibility Information
// Ericsson Specification Reference: Chapter 2.3.3.56
// Standard Reference ISUP         : Chapter 3.41
//************************************************************************
  type record Parameter_compatibility_information
    {
     BIT8 id,
     INT1 lengthField,

     BIT8 FirstUpgradParam, // Upgraded parameter name
     BIT7 InstructIndFirst, // all instruction indicators for parameter 1
     BIT1 ExtInd1, // Extension indicator
     BIT8 SecondUpgradParam optional,
     BIT7 InstructIndSecond optional, // all instruction indicators for param. 2
     BIT1 ExtInd2 optional, // Extension indicator
     BIT8 ThirdUpgradParam optional,
     BIT7 InstructIndThird optional, // all instruction indicators for param. 3
     BIT1 ExtInd3 optional, // Extension indicator
     BIT8 FourthUpgradParam optional,
     BIT7 InstructIndFourth optional, // all instruction indicators for param. 4
     BIT1 ExtInd4 optional, // Extension indicator
     BIT8 FifthUpgradParam optional,
     BIT7 InstructIndFifth optional, // all instruction indicators for param. 5
     BIT1 ExtInd5 optional// Extension indicator
    } with { variant "PRESENCE( id = '00111001'B)";
             variant (lengthField)"LENGTHTO(FirstUpgradParam,InstructIndFirst,
                                            ExtInd1,SecondUpgradParam,
                                            InstructIndSecond,ExtInd2,
                                            ThirdUpgradParam,InstructIndThird,
                                            ExtInd3,FourthUpgradParam,
                                            InstructIndFourth,ExtInd4,
                                            FifthUpgradParam,InstructIndFifth,
                                            ExtInd5)";
           };


//************************************************************************
// Pivot Capability
// Standard Reference ISUP         : Chapter 3.84
//************************************************************************
  type record Pivot_capability
    {
     BIT8 id,
     INT1 lengthField,

     BIT3 PivPosInd,  // Pivot possible indicator
     BIT3 spare,      // Spare
     BIT1 IwRedirInd, // Interworking to redirection indicator
     BIT1 ExtI        // Extension indicator
    } with { variant "PRESENCE( id = '01111011'B)";
             variant (lengthField)"LENGTHTO(PivPosInd,spare,IwRedirInd,ExtI)";
           };


//************************************************************************
// Pivot Counter
// Standard Reference ISUP         : Chapter 3.93
//************************************************************************
  type record Pivot_counter
    {
     BIT8 id,
     INT1 lengthField,

     BIT5 PivCount, // Pivot counter
     BIT3 spare // spare
    } with { variant "PRESENCE( id = '10000111'B)";
             variant (lengthField)"LENGTHTO(PivCount,spare)";
           };


//************************************************************************
// Pivot Routing Backward Information
// Standard Reference ISUP         : Chapter 3.95
//************************************************************************
  type record Pivot_routing_backward_information
    {
     BIT8 id,
     INT1 lengthField,

     ISUP_Information_type_set PivotInfo
    } with { variant "PRESENCE( id = '10001001'B)";
             variant (lengthField)"LENGTHTO(PivotInfo)";
           };

  type record ISUP_Information_type
    {
     BIT8 infoTypeTag,
     INT1 infoTypeLength,
     OCTN infoTypeValue
    } with { variant (infoTypeLength)"LENGTHTO(infoTypeValue)";
           };

  type set of ISUP_Information_type ISUP_Information_type_set
      with { variant "" };


//************************************************************************
// Pivot Routing Forward Information
// Standard Reference ISUP         : Chapter 3.94
//************************************************************************
  type record Pivot_routing_forward_information
    {
     BIT8 id,
     INT1 lengthField,

     ISUP_Information_type_set PivotInfo
    } with { variant "PRESENCE( id = '10001000'B)";
             variant (lengthField)"LENGTHTO(PivotInfo)";
           };


//************************************************************************
// Pivot Routing Indicators
// Standard Reference ISUP         : Chapter 3.85
//************************************************************************
  type record Pivot_routing_indicators
    {
     BIT8 id,
     INT1 lengthField,

     BIT7 PivRoutInd, // Pivot routing indicators
     BIT1 ExtI        // Extension indicator
    } with { variant "PRESENCE( id = '01111100'B)";
             variant (lengthField)"LENGTHTO(PivRoutInd,ExtI)";
           };


//************************************************************************
// Pivot Status
// Standard Reference ISUP         : Chapter 3.92
//************************************************************************
  type record Pivot_status
    {
     BIT8 id,
     INT1 lengthField,

     BIT2 PivStInd, // Pivot status indicator
     BIT5 spare, // Spare
     BIT1 ExtI // Extension indicator
    } with { variant "PRESENCE( id = '10000110'B)";
             variant (lengthField)"LENGTHTO(PivStInd,spare,ExtI)";
           };


//************************************************************************
// Propagation Delay Counter
// Ericsson Specification Reference: Chapter 2.3.3.57
// Standard Reference ISUP         : Chapter 3.42
//************************************************************************
  type record Propagation_delay_counter
    {
     BIT8 id,
     INT1 lengthField,

     OCT2 PropagationDelayValue
    } with { variant "PRESENCE( id = '00110001'B)";
             variant (lengthField)"LENGTHTO(PropagationDelayValue)";
           };


//************************************************************************
// Query On Release Capability
// Standard Reference ISUP         : Chapter 3.91
//************************************************************************
  type record Query_on_release_capability
    {
     BIT8 id,
     INT1 lengthField,

     BIT1 QoRCapInd, // Query on RELease capability indicator
     BIT6 spare,     // Spare
     BIT1 ExtI       // Extension indicator
    } with { variant "PRESENCE( id = '10000101'B)";
             variant (lengthField)"LENGTHTO(QoRCapInd,spare,ExtI)";
           };


//************************************************************************
// Range And Status
// Ericsson Specification Reference: Chapter 2.3.3.58
// Standard Reference ISUP         : Chapter 3.43
//************************************************************************
  type record Range_and_status    
    {
     INT1 lengthField,

     OCT1 Range,         // Range
     OCTN Status optional// Status
    } with { variant (lengthField)"LENGTHTO(Range,Status)";
           };


//************************************************************************
// Redirect Backward Information
// Standard Reference ISUP         : Chapter 3.100
//************************************************************************
  type record Redirect_backward_information
    {
     BIT8 id,
     INT1 lengthField,

     ISUP_Information_type_set RedirInfo
    } with { variant "PRESENCE( id = '10001100'B)";
             variant (lengthField)"LENGTHTO(RedirInfo)";
           };


//************************************************************************
// Redirect Capability
// Standard Reference ISUP         : Chapter 3.96
//************************************************************************
  type record Redirect_capability
    {
     BIT8 id,
     INT1 lengthField,

     BIT3 RedirPosInd, // Redirect possible indicator
     BIT4 spare,       // Spare
     BIT1 ExtI         // Extension indicator
    } with { variant "PRESENCE( id = '01001110'B)";
             variant (lengthField)"LENGTHTO(RedirPosInd,spare,ExtI)";
           };


//************************************************************************
// Redirect Counter
// Standard Reference ISUP         : Chapter 3.97
//************************************************************************
  type record Redirect_counter
    {
     BIT8 id,
     INT1 lengthField,

     BIT5 RedirCount, // Redirect counter
     BIT3 spare       // Spare
    } with { variant "PRESENCE( id = '01110111'B)";
             variant (lengthField)"LENGTHTO(RedirCount,spare)";
           };


//************************************************************************
// Redirect Forward Information
// Standard Reference ISUP         : Chapter 3.99
//************************************************************************
  type record Redirect_forward_information
    {
     BIT8 id,
     INT1 lengthField,

     ISUP_Information_type_set RedirInfo
    } with { variant "PRESENCE( id = '10001011'B)";
             variant (lengthField)"LENGTHTO(RedirInfo)";
           };


//************************************************************************
// Redirect Status
// Standard Reference ISUP         : Chapter 3.98
//************************************************************************
  type record Redirect_status
    {
     BIT8 id,
     INT1 lengthField,

     BIT2 RedirStInd, // Redirect status indicator
     BIT5 spare,      // Spare
     BIT1 ExtI        // Extension indicator
    } with { variant "PRESENCE( id = '10001010'B)";
             variant (lengthField)"LENGTHTO(RedirStInd,spare,ExtI)";
           };


//************************************************************************
// Redirecting Number
// Ericsson Specification Reference: Chapter 2.3.3.59
// Standard Reference ISUP         : Chapter 3.44
//************************************************************************
  type record Redirecting_number
    {
     BIT8 id,
     INT1 lengthField,

     BIT7 NatureOfAddrInd, // Nature of address indicator
     BIT1 OddEven,         // Odd/even indicator
     BIT2 Spare1,              // Spare
     BIT2 AddrPresentRestInd, // Address presentation REStricted indicator
     BIT3 NumberingPlanInd,   // Numbering plan indicator
     BIT1 Spare,              // Spare
     HEX1_32 AddrSignals optional, // Address signals and Filler if odd addr.signals
     HEX1 Filler optional
    } with { variant (AddrSignals) "HEXORDER(low)";
             variant "PRESENCE( id = '00001011'B)";
             variant (lengthField)"LENGTHTO(NatureOfAddrInd,OddEven,
                                            Spare1,AddrPresentRestInd,
                                            NumberingPlanInd,Spare,AddrSignals,
                                            Filler)";
           };



//************************************************************************
// Redirection Information
// Ericsson Specification Reference: Chapter 2.3.3.60
// Standard Reference ISUP         : Chapter 3.45
//************************************************************************
  type record Redirection_information
    {
     BIT8 id,
     INT1 lengthField,

     BIT3 RedirectionInd,            // Redirecting indicator
     BIT1 Spare1,                    // Redirecting indicator
     BIT4 OriginalRedirectionReason, // Original redirection reason
     BIT3 RedirectionCounter optional, // Redirection counter
     BIT1 Spare2 optional,             // Spare
     BIT4 RedirectingReason optional   // Redirecting reason
    } with { variant "PRESENCE( id = '00010011'B)";
             variant (lengthField)"LENGTHTO(RedirectionInd,Spare1,
                                            OriginalRedirectionReason,
                                            RedirectionCounter,Spare2,
                                            RedirectingReason)";
           };


//************************************************************************
// Redirection Number
// Ericsson Specification Reference: Chapter 2.3.3.61
// Standard Reference ISUP         : Chapter 3.46
//************************************************************************
  type record Redirection_number
    {
     BIT8 id,
     INT1 lengthField,

     BIT7 NatureOfAddrInd, // Nature of address indicator
     BIT1 OddEven,         // Odd/even indicator
     BIT4 Spare,              // spare
     BIT3 NumberingPlanInd,   // Numbering plan indicator
     BIT1 INNInd,             // Internal network number indicator
     HEX1_32 AddrSignals, // Address signals and Filler if odd addr.signals
     HEX1 Filler optional
    } with { variant (AddrSignals) "HEXORDER(low)";
             variant "PRESENCE( id = '00001100'B)";
             variant (lengthField)"LENGTHTO(NatureOfAddrInd,OddEven,Spare,
                                            NumberingPlanInd,INNInd,
                                            AddrSignals,Filler)";
           };

//************************************************************************
// Redirection Number Restriction
// Ericsson Specification Reference: Chapter 2.3.3.62
// Standard Reference ISUP         : Chapter 3.47
//************************************************************************
  type record Redirection_number_restriction
    {
     BIT8 id,
     INT1 lengthField,

     BIT2 PresRestInd, // Presentation REStricted indicator
     BIT6 Spare        // Spare
    } with { variant "PRESENCE( id = '01000000'B)";
             variant (lengthField)"LENGTHTO(PresRestInd,Spare)";
           };


//************************************************************************
// Remote Operations
// Standard Reference ISUP         : Chapter 3.48
//************************************************************************
  type record Remote_operations
    {
     BIT8 id,
     INT1 lengthField,

     BIT5 ProtProf, // Protocol profile
     BIT2 spare,    //  Spare
     BIT1 ExtI,     // Extension indicator
     OCTN Comp      // Components
    } with { variant "PRESENCE( id = '00110010'B)";
             variant (lengthField)"LENGTHTO(ProtProf,spare,ExtI,Comp)";
           };


//************************************************************************
// Route Identity
// Ericsson Specification Reference: Chapter 2.3.3.63
//************************************************************************
  type record Route_identity
    {
     BIT8 id,
     INT1 lengthField,

     OCT2 RouteIdentity
    } with { variant "PRESENCE( id = '11111100'B)";
             variant (lengthField)"LENGTHTO(RouteIdentity)";
           };


//************************************************************************
// SCF Id
// Ericsson Specification Reference: Chapter 2.3.3.64
// Standard Reference ISUP         : Chapter 3.71
//************************************************************************
  type record SCF_id
    {
     BIT8 id,
     INT1 lengthField,

     OCTN SCFId
    } with { variant "PRESENCE( id = '01100110'B)";
             variant (lengthField)"LENGTHTO(SCFId)";
           };


//************************************************************************
// Service Activation
// Ericsson Specification Reference: Chapter 2.3.3.65
// Standard Reference ISUP         : Chapter 3.49
//************************************************************************
  type record Service_activation
    {
     BIT8 id,
     INT1 lengthField,

     OCTN ServAct_contents
    } with { variant "PRESENCE( id = '00110011'B)";
             variant (lengthField)"LENGTHTO(ServAct_contents)";
           };


//************************************************************************
// Signalling Point Code
// Standard Reference ISUP         : Chapter 3.50
//************************************************************************
  type record Signalling_point_code
    {
     BIT8 id,
     INT1 lengthField,

     OCT2 SPC_contents // Signalling point code
    } with { variant "PRESENCE( id = '00011110'B)";
             variant (lengthField)"LENGTHTO(SPC_contents)";
           };


//************************************************************************
// Subsequent Number
// Ericsson Specification Reference: Chapter 2.3.3.66
// Standard Reference ISUP         : Chapter 3.51
//************************************************************************
  type record Subsequent_number_OPT
    {
     BIT8 id,
     INT1 lengthField,

     BIT7 Spare,   // Spare
     BIT1 OddEven, // Odd/even inicator
     HEX1_32 AddrSignals, // Address signals and Filler if odd addr.signals
     HEX1 Filler optional
    } with { variant (AddrSignals) "HEXORDER(low)";
             variant "PRESENCE( id = '00000101'B)";
             variant (lengthField)"LENGTHTO(Spare,OddEven,AddrSignals,Filler)";
           };

  type record Subsequent_number    
    {
     INT1 lengthField,

     BIT7 Spare,   // Spare
     BIT1 OddEven, // Odd/even inicator
     HEX1_32 AddrSignals, // Address signals and Filler if odd addr.signals
     HEX1 Filler optional
    } with { variant (AddrSignals) "HEXORDER(low)";
             variant (lengthField)"LENGTHTO(Spare,OddEven,AddrSignals,Filler)";
           };


//************************************************************************
// Suspend Resume Indicators
// Ericsson Specification Reference: Chapter 2.3.3.67
// Standard Reference ISUP         : Chapter 3.52
//************************************************************************
  type record Suspend_resume_indicators    
    {
     BIT1 SUSRESInd, // Suspend/resume indicator
     BIT7 Spare      // Spare
    } with { variant "" };


//************************************************************************
// Tariff Indicator
// Ericsson Specification Reference: Chapter 2.3.3.68
//************************************************************************
  type record Tariff_indicator
    {
     BIT8 id,
     INT1 lengthField,

     OCT1 TariffInd, // Tariff indicator
     OCT1 Reserved optional// Reserved
    } with { variant "PRESENCE( id = '11111101'B)";
             variant (lengthField)"LENGTHTO(TariffInd,Reserved)";
           };


//************************************************************************
// Transit Network Selection
// Ericsson Specification Reference: Chapter 2.3.3.69
// Standard Reference ISUP         : Chapter 3.53
//************************************************************************
  type record Transit_network_selection
    {
     BIT8 id,
     INT1 lengthField,

     BIT4 NetIdPlan,   //  Network identification plan
     BIT3 TypeOfNetId, // Type of network identification
     BIT1 OddEvenInd,  // Odd/even inicator
     OCTN NetId // Network identification
    } with { variant "PRESENCE( id = '00100011'B)";
             variant (lengthField)"LENGTHTO(NetIdPlan,TypeOfNetId,OddEvenInd,
                                            NetId)";
           };


//************************************************************************
// Transmission Medium Requirement
// Ericsson Specification Reference: Chapter 2.3.3.70
// Standard Reference ISUP         : Chapter 3.54
//************************************************************************
  type record Transmission_medium_requirement    
    {
     BIT8 TMR
    } with { variant "" };

//************************************************************************
// Transmission Medium Requirement Prime
// Ericsson Specification Reference: Chapter 2.3.3.71
// Standard Reference ISUP         : Chapter 3.55
//************************************************************************
  type record Transmission_medium_requirement_prime
    {
     BIT8 id,
     INT1 lengthField,

     BIT8 TMRp_field
    } with { variant "PRESENCE( id = '00111110'B)";
             variant (lengthField)"LENGTHTO(TMRp_field)";
           };

//************************************************************************
// Transmission Medium Used
// Ericsson Specification Reference: Chapter 2.3.3.72
// Standard Reference ISUP         : Chapter 3.56
//************************************************************************
  type record Transmission_medium_used
    {
     BIT8 id,
     INT1 lengthField,

     BIT8 TMU_field
    } with { variant "PRESENCE( id = '00110101'B)";
             variant (lengthField)"LENGTHTO(TMU_field)";
           };


//************************************************************************
// UID Action Indicators
// Standard Reference ISUP         : Chapter 3.78
//************************************************************************
  type record UID_action_indicators
    {
     BIT8 id,
     INT1 lengthField,

     BIT1 ThConInsInd, // Through CONnection instruction indicator
     BIT1 T9InsInd,    // T9 timer instruction indicator
     BIT5 spare,       // Spare
     BIT1 ExtI         // Extension indicator
    } with { variant "PRESENCE( id = '01110100'B)";
             variant (lengthField)"LENGTHTO(ThConInsInd,T9InsInd,spare,ExtI)";
           };


//************************************************************************
// UID Capability Indicators
// Standard Reference ISUP         : Chapter 3.79
//************************************************************************
  type record UID_capability_indicators
    {
     BIT8 id,
     INT1 lengthField,

     BIT1 through_connection_indicator, // Through CONnection indicator
     BIT1 T9_timer_indicator, // T9 timer indicator
     BIT5 spare, // T9 timer indicator
     BIT1 ExtI // Extension indicator
    } with { variant "PRESENCE( id = '01110101'B)";
             variant (lengthField)"LENGTHTO(through_connection_indicator,
                                            T9_timer_indicator,spare,ExtI)";
           };


//************************************************************************
// User Service Information
// Ericsson Specification Reference: Chapter 2.3.3.73
// Standard Reference ISUP         : Chapter 3.57
//************************************************************************
  type record User_service_information
    {
     BIT8 id,
     INT1 lengthField,

     BIT5 InfTrC, // Information transfer capability
     BIT2 CodS,   // Coding standard
     BIT1 ExtI_1, // Extension indicator (1)
  //EXT GR1 start
     BIT5 infTR,    // Information transfer rate
     BIT2 TrMod,    // Transfer mode
     BIT1 ExtI_2,   // Extension indicator (0/1)

     BIT2 establishment optional, // demand
     BIT2 configuration optional, // point-to-point
     BIT3 structure optional,     // default
     BIT1 ext2a optional,

     BIT5 infoTransRate optional, //used for packet-mode calls
     BIT2 symmetry optional,      // bi-directional symmetric
     BIT1 ext2b optional,
   //EXT GR1 end
     BIT7 RatMul optional,   // Rate multiplier
     BIT1 ExtI_2_1 optional, // Extension indicator (1)

     Layer1_info  layer1 optional,
     Layer2_info  layer2 optional,
     Layer3_info  layer3 optional
    } with { variant "EXTENSION_BIT_GROUP(yes,infTR,ext2b)";
             variant (RatMul) "PRESENCE(infTR = '11000'B)";
             variant (ExtI_2_1) "PRESENCE(infTR = '11000'B)";
             variant "TAG ( layer1, layer_id = '01'B;	
                            layer2, layer_id = '10'B;	
                            layer3, layer_id = '11'B;)"
             variant "PRESENCE( id = '00011101'B)";
             variant (lengthField)"LENGTHTO(InfTrC,CodS,ExtI_1,infTR,TrMod,
                                            ExtI_2,establishment,configuration,
                                            structure,ext2a,infoTransRate,
                                            symmetry,ext2b,RatMul,ExtI_2_1,
                                            layer1,layer2,layer3)";
           };

  type record Layer1_info
    {
     BIT5 UInf1,    // User INFormation layer 1 protocol
     BIT2 layer_id, // Layer identification
     BIT1 ExtI_3,   // Extension indicator (0/1)

     BIT5 UsrRate optional, // User rate
     BIT1 Negot optional,   // Negotiation
     BIT1 SynAsyn optional, // Synchronous/Asynchronous
     BIT1 ExtI_3a optional, // Extension indicator (0/1)

     //Note: the content of this field depends on field UInf1 - see Q.931 4.5.5
     BIT7 Bits_3b optional,  // info bits in octet 3b
     BIT1 ExtI_3b optional,    // Extension indicator (0/1)

     //BIT1 Spare_1 optional, // Spare
     //BIT1 FlCtrRx optional, // Flow control on Rx
     //BIT1 FlCtrTx optional, // Flow control on Tx
     //BIT1 NICRx optional,   // Network independent clock on RX
     //BIT1 NICTx optional,   // Network independent clock on TX
     //BIT2 IntRate optional, // Intermediate rate
     //BIT1 ExtI_6 optional,  // Extension indicator (0/1)

     //BIT1 Spare_2 optional,  // Spare
     //BIT1 InBndNeg optional, // In-band/out-band negotiation
     //BIT1 Ass optional,      // Assignor/assignee
     //BIT1 LLINeg optional,   // Logical link identifier negotiation
     //BIT1 Mode optional,     // Mode of operation

     //BIT1 MultFr optional,// Multiple frame establishment support in data link
     //BIT1 Hdr optional,   // Rate adaption header/no header
     //BIT1 ExtI_7 optional,// Extension indicator (0/1)

     BIT3 Prty optional,    // Parity INFormation
     BIT2 NDatBit optional, // Number of data bits excluding parity bit if pres.
     BIT2 NStpBit optional, // Number of stop bits
     BIT1 ExtI_3c optional,  // Extension indicator (0/1)

     BIT6 MdmTyp optional, // Modem type
     BIT1 DupMod optional, // Mode duplex
     BIT1 ExtI_3d optional  // Extension indicator (1)
     } with { variant "EXTENSION_BIT(yes)"}

  type record Layer2_info
    {
     BIT5 uInf2,    // User information layer 2 protocol
     BIT2 layer_id, // Layer identification
     BIT1 extI_10   // Extension indicator (1)
    } with { variant "" };

  type record Layer3_info
    {
     BIT5 uInf3,    // User information layer 3 protocol
     BIT2 layer_id, // Layer identification
     BIT1 extI_11   // Extension indicator (1)
    } with { variant "" };


//************************************************************************
// User Service Information Prime
// Ericsson Specification Reference: Chapter 2.3.3.74
// Standard Reference ISUP         : Chapter 3.58
//************************************************************************
  type record User_service_information_prime
    {
     BIT8 id,
     INT1 lengthField,

     BIT5 InfTrC, // Information transfer capability
     BIT2 CodS,   // Coding standard
     BIT1 ExtI_1, // Extension indicator (1)
  //EXT GR1 start
     BIT5 infTR,    // Information transfer rate
     BIT2 TrMod,    // Transfer mode
     BIT1 ExtI_2,   // Extension indicator (0/1)

     BIT2 establishment optional, // demand
     BIT2 configuration optional, // point-to-point
     BIT3 structure optional,     // default
     BIT1 ext2a optional,

     BIT5 infoTransRate optional, //used for packet-mode calls
     BIT2 symmetry optional,      // bi-directional symmetric
     BIT1 ext2b optional,
   //EXT GR1 end
     BIT7 RatMul optional,   // Rate multiplier
     BIT1 ExtI_2_1 optional, // Extension indicator (1)

     Layer1_info  layer1 optional,
     Layer2_info  layer2 optional,
     Layer3_info  layer3 optional
    } with { variant "EXTENSION_BIT_GROUP(yes,infTR,ext2b)";
             variant (RatMul) "PRESENCE(infTR = '11000'B)";
             variant (ExtI_2_1) "PRESENCE(infTR = '11000'B)";
             variant "TAG ( layer1, layer_id = '01'B;	
                            layer2, layer_id = '10'B;	
                            layer3, layer_id = '11'B;)"
             variant "PRESENCE( id = '00110000'B)";
             variant (lengthField)"LENGTHTO(InfTrC,CodS,ExtI_1,infTR,TrMod,
                                            ExtI_2,establishment,configuration,
                                            structure,ext2a,infoTransRate,
                                            symmetry,ext2b,RatMul,ExtI_2_1,
                                            layer1,layer2,layer3)";
            };
/* The old version is commented out because it could cause decoding problems.
  type record User_service_information    // 3.57 / Q.763
    {
     BIT5 InfTrC, // Information transfer capability
     BIT2 CodS, // Coding standard
     BIT1 ExtI_1, // Extension indicator (1)
     BIT5 InfTR, // Information transfer rate
     BIT2 TrMod, // Transfer mode
     BIT1 ExtI_2, // Extension indicator (0/1)
     BIT8 RatMul optional, // Rate multiplier
     BIT1 ExtI_3 optional, // Extension indicator (1)
     BIT5 UInf1 optional, // User INFormation layer 1 protocol
     BIT2 Lay1 optional, // Layer identification
     BIT1 ExtI_4 optional, // Extension indicator (0/1)
     BIT5 UsrRate optional, // User rate
     BIT1 Negot optional, // Negotiation
     BIT1 SynAsyn optional, // Synchronous/Asynchronous
     BIT1 ExtI_5 optional, // Extension indicator (0/1)
     BIT1 Spare_1 optional, // Spare
     BIT1 FlCtrRx optional, // Flow control on Rx
     BIT1 FlCtrTx optional, // Flow control on Tx
     BIT1 NICRx optional, // Network independent clock on RX
     BIT1 NICTx optional, // Network independent clock on TX
     BIT2 IntRate optional, // Intermediate rate
     BIT1 ExtI_6 optional, // Extension indicator (0/1)
     BIT1 Spare_2 optional, // Spare
     BIT1 InBndNeg optional, // In-band/out-band negotiation
     BIT1 Ass optional, // Assignor/assignee
     BIT1 LLINeg optional, // Logical link identifier negotiation
     BIT1 Mode optional, // Mode of operation
     BIT1 MultFr optional, // Multiple frame establishment support in data link
     BIT1 Hdr optional, // Rate adaption header/no header
     BIT1 ExtI_7 optional, // Extension indicator (0/1)
     BIT3 Prty optional, // Parity INFormation
     BIT2 NDatBit optional, // Number of data bits excluding parity bit if pres.
     BIT2 NStpBit optional, // Number of stop bits
     BIT1 ExtI_8 optional, // Extension indicator (1)
     BIT6 MdmTyp optional, // Modem type
     BIT1 DupMod optional, // Mode duplex
     BIT1 ExtI_9 optional, // Extension indicator (1)
     BIT5 UInf2 optional, // User INFormation layer 2 protocol
     BIT2 Lay2 optional, // Layer identification
     BIT1 ExtI_10 optional, // Extension indicator (1)
     BIT5 UInf3 optional, // User INFormation layer 3 protocol
     BIT2 Lay3 optional, // Layer identification
     BIT1 ExtI_11 optional // Extension indicator (1)
    } with { variant "" };


  type record User_service_information_prime    // 3.58 / Q.763
    {
     BIT5 InfTrC, // Information transfer capability
     BIT2 CodS, // Coding standard
     BIT1 ExtI_1, // Extension indicator (1)
     BIT5 InfTR, // Information transfer rate
     BIT2 TrMod, // Transfer mode
     BIT1 ExtI_2, // Extension indicator (0/1)
     BIT8 RatMul optional, // Rate multiplier
     BIT1 ExtI_3 optional, // Extension indicator (1)
     BIT5 UInf1 optional, // User INFormation layer 1 protocol
     BIT2 Lay1 optional, // Layer identification
     BIT1 ExtI_4 optional, // Extension indicator (0/1)
     BIT5 UsrRate optional, // User rate
     BIT1 Negot optional, // Negotiation
     BIT1 SynAsyn optional, // Synchronous/Asynchronous
     BIT1 ExtI_5 optional, // Extension indicator (0/1)
     BIT1 Spare_1 optional, // Spare
     BIT1 FlCtrRx optional, // Flow control on Rx
     BIT1 FlCtrTx optional, // Flow control on Tx
     BIT1 NICRx optional, // Network independent clock on RX
     BIT1 NICTx optional, // Network independent clock on TX
     BIT2 IntRate optional, // Intermediate rate
     BIT1 ExtI_6 optional, // Extension indicator (0/1)
     BIT1 Spare_2 optional, // Spare
     BIT1 InBndNeg optional, // In-band/out-band negotiation
     BIT1 Ass optional, // Assignor/assignee
     BIT1 LLINeg optional, // Logical link identifier negotiation
     BIT1 Mode optional, // Mode of operation
     BIT1 MultFr optional, // Multiple frame establishment support in data link
     BIT1 Hdr optional, // Rate adaption header/no header
     BIT1 ExtI_7 optional, // Extension indicator (0/1)
     BIT3 Prty optional, // Parity INFormation
     BIT2 NDatBit optional, // Number of data bits excluding parity bit if pres.
     BIT2 NStpBit optional, // Number of stop bits
     BIT1 ExtI_8 optional, // Extension indicator (1)
     BIT6 MdmTyp optional, // Modem type
     BIT1 DupMod optional, // Mode duplex
     BIT1 ExtI_9 optional, // Extension indicator (1)
     BIT5 UInf2 optional, // User INFormation layer 2 protocol
     BIT2 Lay2 optional, // Layer identification
     BIT1 ExtI_10 optional, // Extension indicator (1)
     BIT5 UInf3 optional, // User INFormation layer 3 protocol
     BIT2 Lay3 optional, // Layer identification
     BIT1 ExtI_11 optional // Extension indicator (1)
    } with { variant "" };
*/


//************************************************************************
// User Teleservice Information
// Ericsson Specification Reference: Chapter 2.3.3.75
// Standard Reference ISUP         : Chapter 3.59
//************************************************************************
  type record User_teleservice_information
    {
     BIT8 id,
     INT1 lengthField,

     BIT2 Pres,     // Presentation
     BIT3 Interpr,  // Interpretation
     BIT2 CodS,     // Coding standard
     BIT1 ExtI_1,   // Extention indicator, always 1
     BIT7 HLChrInf,   // High layer characteristics identification
     BIT1 ExtI_2,     // Extension indicator, (0/1)
     BIT7 ExHLChrInf optional, // Extended high layer characteristics id.
     BIT1 ExtI_3 optional      // Extention indicator, always 1
    } with { variant (ExHLChrInf) "PRESENCE(ExtI_2 = '0'B)";
             variant (ExtI_3) "PRESENCE(ExtI_2 = '0'B)";
             variant "PRESENCE( id = '00110100'B)";
             variant (lengthField)"LENGTHTO(Pres,Interpr,CodS,ExtI_1,HLChrInf,
                                            ExtI_2,ExHLChrInf,ExtI_3)";
           };

//************************************************************************
// User To User Indicators
// Ericsson Specification Reference: Chapter 2.3.3.76
// Standard Reference ISUP         : Chapter 3.60
//************************************************************************
  type record User_to_user_indicators
    {
     BIT8 id,
     INT1 lengthField,

     BIT1 Type, //  type
     BIT2 Service1, // Service 1
     BIT2 Service2, // Service 2
     BIT2 Service3, // Service 3
     BIT1 NetworkDiscardInd //Network discard ind. (spare if Type = request)
    } with { variant "PRESENCE( id = '00101010'B)";
             variant (lengthField)"LENGTHTO(Type,Service1,Service2,Service3,
                                            NetworkDiscardInd)";
           };


//************************************************************************
// User To User Information
// Ericsson Specification Reference: Chapter 2.3.3.77
// Standard Reference ISUP         : Chapter 3.61
//************************************************************************
  type record User_to_user_information_OPT
    {
     BIT8 id,
     INT1 lengthField,

     OCTN UserInfo
    } with { variant "PRESENCE( id = '00100000'B)";
             variant (lengthField)"LENGTHTO(UserInfo)";
           };

  type record User_to_user_information    
    {
     INT1 lengthField,

     OCTN UserInfo
    } with { variant (lengthField)"LENGTHTO(UserInfo)";
           };


//************************************************************************
// Global Call Reference
// GCR included in ISUP market variants based on EED/X 1056-174 Uen - Global
// Call reference for ISUP and BICC, MSC R12.
// It is used in the IAM message.  See section 3.1.1 for details.
//************************************************************************
  type record Global_call_reference
    {
     BIT8 id,
     INT1 lengthField,

     INT1 netwIdLenInd, // Network ID length indicator
     OCTN netwId, // Network ID
     INT1 nodeIdLenInd, // Node ID length indicator
     OCTN nodeId, // Node ID
     INT1 callRefLenInd, // Call Reference length indicator
     OCTN callRefId // Call Reference ID
    } with { variant (netwIdLenInd) "LENGTHTO (netwId)";
             variant (nodeIdLenInd) "LENGTHTO(nodeId)";
             variant (callRefLenInd) "LENGTHTO (callRefId)";
             variant "PRESENCE( id = '10100100'B)";
             variant (lengthField)"LENGTHTO(netwIdLenInd,netwId,nodeIdLenInd,
                                            nodeId,callRefLenInd,callRefId)";
           };
} // END Group ISUP_parameters


//************************************************************************
//************************************************************************
//************************************************************************
//************************************************************************
//************************************************************************


//************************************************************************
// ACM - Address complete
// Ericsson Specification Reference: Chapter 2.2.2.1
// Standard Reference ISUP         : Chapter 4, Table 21
//************************************************************************
  type set ACM_optional_part
    {
     Optional_backward_call_indicators      optBackwardCallInd optional,
     Cause_indicators_OPT                   causeInd optional,
     User_to_user_indicators                userToUserInd optional,
     User_to_user_information_OPT           userToUserInfo optional,
     Access_transport                       accessTransport optional,
     Generic_notification_indicator_set     genericNotificationInd optional,
     Transmission_medium_used               transMediumUsed optional,
     Access_delivery_information            accessDeliveryInfo optional,
     Redirection_number                     redirectionNum optional,
     Parameter_compatibility_information    paramCompatibilityInfo optional,
     Call_diversion_information             callDiversionInfo optional,
     Network_specific_facility              networkFacility optional,
     Redirection_number_restriction         redirectionNumRest optional,
     Route_identity                         routeIdentity optional,
     Call_transfer_treatment_indicators     callTransferTreatmentInd optional,
     Conference_treatment_indicators        conferenceTreatmentInd optional,

     Call_reference                         callReference optional,
     Echo_control_information               echoControlInfo optional,
     Remote_operations                      remoteOperations optional,
     Service_activation                     serviceActivation optional,
     UID_action_indicators                  UIDAcInd optional,
     Application_transport_parameter_set    ATPP optional,
     CCNR_possible_indicator                CCNRP optional,
     HTR_information                        HTRInfo optional,
     Pivot_routing_backward_information     PRBI optional,
     Redirect_status                        RedirSt optional
    } with { variant (ATPP,genericNotificationInd) "REPEATABLE(yes)";};


  type record ACM_parameters
    {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType,
     Backward_call_indicators       backwardCallInd,
     Pointer                        opt_part_ptr,
     ACM_optional_part              acmOptionals optional,
     End_of_optional_parameters_indicator endOfOp optional
    } with { variant (opt_part_ptr) "POINTERTO (acmOptionals)"};


//************************************************************************
// ANM - Answer
// Ericsson Specification Reference: Chapter 2.2.2.2
// Standard Reference ISUP         : Chapter 4, Table 22
//************************************************************************
  type set ANM_optional_part
    {
     Backward_call_indicators_OPT           backwardCallInd optional,
     Optional_backward_call_indicators      optBackwardCallInd optional,
     User_to_user_indicators                userToUserInd optional,
     User_to_user_information_OPT           userToUserInfo optional,
     Connected_number                       connectedNum optional,
     Access_transport                       accessTransport optional,
     Access_delivery_information            accessDeliveryInfo optional,
     Parameter_compatibility_information    paramCompatibilityInfo optional,
     Backward_GVNS                          backwardGVNS optional,
     Call_history_information               callHistoryInfo optional,
     Generic_number_set                     genericNum optional,
     Transmission_medium_used               transMediumUsed optional,
     Network_specific_facility              networkFacility optional,
     Redirection_number_restriction         redirectionNumRest optional,
     Call_transfer_treatment_indicators     callTransferTreatmentInd optional,
     Conference_treatment_indicators        conferenceTreatmentInd optional,

     Call_reference                         callReference optional,
     Generic_notification_indicator_set     genericNotificationInd optional,
     Remote_operations                      remoteOperations optional,
     Redirection_number                     redirectionNum optional,
     Service_activation                     serviceActivation optional,
     Echo_control_information               echoControlInfo optional,
     Display_information                    DisInf optional,
     Application_transport_parameter_set    ATPP optional,
     Pivot_routing_backward_information     PRBI optional,
     Redirect_status                        RedirSt optional
    } with { variant (ATPP,genericNotificationInd,genericNum) "REPEATABLE(yes)";};


  type record ANM_parameters
    {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType,
     Pointer                        opt_part_ptr,
     ANM_optional_part              anmOptionals optional,
     End_of_optional_parameters_indicator endOfOp optional
    } with { variant (opt_part_ptr)"POINTERTO (anmOptionals)";
           };


//************************************************************************
// APM - Application Transport
// Standard Reference ISUP         : Chapter 4, Table 51
//************************************************************************
  type set APM_optional_part
    {
     Message_compatibility_information      MCI optional,
     Parameter_compatibility_information    paramCompatibilityInfo optional,
     Application_transport_parameter_set    ATPP optional
    } with { variant (ATPP) "REPEATABLE(yes)";};


  type record APM_parameters
    {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType,
     Pointer                        opt_part_ptr,
     APM_optional_part              apmOptionals optional,
     End_of_optional_parameters_indicator endOfOp optional
    } with { variant (opt_part_ptr) "POINTERTO (apmOptionals)";
           };


//************************************************************************
// BLO - Blocking
// Ericsson Specification Reference: Chapter 2.2.2.3
// Standard Reference ISUP         : Chapter 4, Table 39
//************************************************************************
  type record BLO_parameters
    {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType
    } with { variant "" };


//************************************************************************
// BLA - Blocking Acknowledgement
// Ericsson Specification Reference: Chapter 2.2.2.4
// Standard Reference ISUP         : Chapter 4, Table 39
//************************************************************************
  type record BLA_parameters
    {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType
    } with { variant "" };


//************************************************************************
// CPG - Call Progress
// Ericsson Specification Reference: Chapter 2.2.2.5
// Standard Reference ISUP         : Chapter 4, Table 23
//************************************************************************
  type set CPG_optional_part
    {
     Cause_indicators_OPT                   causeInd optional,
     Backward_call_indicators_OPT           backwardCallInd optional,
     Optional_backward_call_indicators      optBackwardCallInd optional,
     Access_transport                       accessTransport optional,
     User_to_user_indicators                userToUserInd optional,
     Redirection_number                     redirectionNum optional,
     User_to_user_information_OPT           userToUserInfo optional,
     Generic_notification_indicator_set     genericNotificationInd optional,
     Network_specific_facility              networkFacility optional,
     Transmission_medium_used               transMediumUsed optional,
     Access_delivery_information            accessDeliveryInfo optional,
     Parameter_compatibility_information    paramCompatibilityInfo optional,
     Call_diversion_information             callDiversionInfo optional,
     Redirection_number_restriction         redirectionNumRest optional,
     Call_transfer_number                   callTransferNumber optional,
     Call_transfer_treatment_indicators     callTransferTreatmentInd optional,
     Conference_treatment_indicators        conferenceTreatmentInd optional,

     Call_reference                         callReference optional,
     Remote_operations                      remoteOperations optional,
     Service_activation                     serviceActivation optional,
     Echo_control_information               echoControlInfo optional,
     Connected_number                       connectedNum optional,
     Backward_GVNS                          backwardGVNS optional,
     Generic_number_set                     genericNum optional,
     Call_history_information               callHistoryInfo optional,
     UID_action_indicators                  UIDAcInd optional,
     Application_transport_parameter_set    ATPP optional,
     CCNR_possible_indicator                CCNRP optional,
     Pivot_routing_backward_information     PRBI optional,
     Redirect_status                        RedirSt optional
    } with { variant (ATPP,genericNotificationInd,genericNum) "REPEATABLE(yes)";};


  type record CPG_parameters
    {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType,
     Event_information              eventInfo,
     Pointer                        opt_part_ptr,
     CPG_optional_part              cpgOptionals optional,
     End_of_optional_parameters_indicator endOfOp optional
    } with { variant (opt_part_ptr) "POINTERTO (cpgOptionals)";
           };


//************************************************************************
// CRG - Charge Information
// Ericsson Specification Reference: Chapter 2.2.2.6
//************************************************************************
  type set CRG_optional_part
    {
     Meter_pulse_indicator                  meterPulseInd optional,
     Tariff_indicator                       tariffInd optional,
     Parameter_compatibility_information    paramCompatibilityInfo optional
    } with { variant "" };


  type record CRG_parameters
    {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType,
     Pointer                        opt_part_ptr,
     CRG_optional_part              crgOptionals optional,
     End_of_optional_parameters_indicator endOfOp optional
    } with { variant (opt_part_ptr)"POINTERTO (crgOptionals)";
           };


//************************************************************************
// CGB - Circuit Group Blocking
// Ericsson Specification Reference: Chapter 2.2.2.7
// Standard Reference ISUP         : Chapter 4, Table 40
//************************************************************************
  type record CGB_parameters
    {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType,
     Circuit_group_supervision_message_type_indicator  circuitGroupSupervMsgInd,
     Pointer                        var_part_ptr,
     Range_and_status               rangeAndStatus
    } with { variant (var_part_ptr) "POINTERTO (rangeAndStatus)";
           };


//************************************************************************
// CGBA - Circuit Group Blocking Acknowledgement
// Ericsson Specification Reference: Chapter 2.2.2.8
// Standard Reference ISUP         : Chapter 4, Table 40
//************************************************************************
  type record CGBA_parameters
    {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType,
     Circuit_group_supervision_message_type_indicator  circuitGroupSupervMsgInd,
     Pointer                        var_part_ptr,
     Range_and_status               rangeAndStatus
    } with { variant (var_part_ptr) "POINTERTO (rangeAndStatus)";
           };


//************************************************************************
// CQM - Circuit Group Query
// Ericsson Specification Reference: Chapter 2.2.2.9
// Standard Reference ISUP         : Chapter 4, Table 41
//************************************************************************
  type record CQM_parameters
    {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType,
     Pointer                        var_part_ptr,
     Range_and_status               rangeAndStatus
     } with { variant (var_part_ptr) "POINTERTO (rangeAndStatus)";
            };


//************************************************************************
// CQR - Circuit Group Query Response
// Ericsson Specification Reference: Chapter 2.2.2.10
// Standard Reference ISUP         : Chapter 4, Table 24
//************************************************************************
  type record CQR_parameters
    {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType,
     Pointer                        var1_part_ptr,
     Pointer                        var2_part_ptr,
     Range_and_status               rangeAndStatus,
     Circuit_state_indicator        circuitStateInd
     } with { variant (var1_part_ptr) "POINTERTO (rangeAndStatus)";
              variant (var2_part_ptr) "POINTERTO (circuitStateInd)";
            };


//************************************************************************
// GRS - Circuit Group Reset
// Ericsson Specification Reference: Chapter 2.2.2.11
// Standard Reference ISUP         : Chapter 4, Table 41
//************************************************************************
  type record GRS_parameters
     {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType,
     Pointer                        var_part_ptr,
     Range_and_status               rangeAndStatus
     } with { variant (var_part_ptr) "POINTERTO (rangeAndStatus)";
            };


//************************************************************************
// GRA - Circuit Group Reset Acknowledgement
// Ericsson Specification Reference: Chapter 2.2.2.12
// Standard Reference ISUP         : Chapter 4, Table 25
//************************************************************************
  type record GRA_parameters
    {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType,
     Pointer                        var_part_ptr,
     Range_and_status               rangeAndStatus
     } with { variant (var_part_ptr) "POINTERTO (rangeAndStatus)";
            };

//************************************************************************
// GGU - Circuit Group Unblocking
// Ericsson Specification Reference: Chapter 2.2.2.13
// Standard Reference ISUP         : Chapter 4, Table 40
//************************************************************************
  type record CGU_parameters
    {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType,
     Circuit_group_supervision_message_type_indicator  circuitGroupSupervMsgInd,
     Pointer                        var_part_ptr,
     Range_and_status               rangeAndStatus
    } with { variant (var_part_ptr) "POINTERTO (rangeAndStatus)";
           };


//************************************************************************
// CGUA - Circuit Group Unblocking Acknowledgement
// Ericsson Specification Reference: Chapter 2.2.2.14
// Standard Reference ISUP         : Chapter 4, Table 40
//************************************************************************
  type record CGUA_parameters
    {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType,
     Circuit_group_supervision_message_type_indicator  circuitGroupSupervMsgInd,
     Pointer                        var_part_ptr,
     Range_and_status               rangeAndStatus
    } with { variant (var_part_ptr)"POINTERTO (rangeAndStatus)";
           };


//************************************************************************
// CFN - Confusion
// Ericsson Specification Reference: Chapter 2.2.2.15
// Standard Reference ISUP         : Chapter 4, Table 26
//************************************************************************
  type record CFN_parameters
    {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType,
     Pointer                        var_part_ptr,
     Pointer                        opt_part_ptr,
     Cause_indicators               causeInd,
     End_of_optional_parameters_indicator endOfOp
    } with { variant (var_part_ptr)"POINTERTO (causeInd)";
             variant (opt_part_ptr)"POINTERTO (endOfOp)";
           };


//************************************************************************
// CON - Connect
// Ericsson Specification Reference: Chapter 2.2.2.16
// Standard Reference ISUP         : Chapter 4, Table 27
//************************************************************************
  type set CON_optional_part
    {
     Optional_backward_call_indicators      optBackwardCallInd optional,
     Backward_GVNS                          backwardGVNS optional,
     Connected_number                       connectedNum optional,
     User_to_user_indicators                userToUserInd optional,
     User_to_user_information_OPT           userToUserInfo optional,
     Access_transport                       accessTransport optional,
     Network_specific_facility              networkFacility optional,
     Transmission_medium_used               transMediumUsed optional,
     Access_delivery_information            accessDeliveryInfo optional,
     Call_history_information               callHistoryInfo optional,
     Parameter_compatibility_information    paramCompatibilityInfo optional,
     Generic_number_set                     genericNum optional,
     Route_identity                         routeIdentity optional,
     Redirection_number_restriction         redirectionNumRest optional,
     Call_transfer_treatment_indicators     callTransferTreatmentInd optional,
     Conference_treatment_indicators        conferenceTreatmentInd optional,

     Call_reference                         callReference optional,
     Generic_notification_indicator_set     genericNotificationInd optional,
     Remote_operations                      remoteOperations optional,
     Echo_control_information               echoControlInfo optional,
     Service_activation                     serviceActivation optional,
     Application_transport_parameter_set    ATPP optional,
     HTR_information                        HTRInfo optional,
     Pivot_routing_backward_information     PRBI optional,
     Redirect_status                        RedirSt optional
    } with { variant (ATPP,genericNotificationInd,genericNum) "REPEATABLE(yes)";};


  type record CON_parameters
    {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType,
     Backward_call_indicators       backwardCallInd,
     Pointer                        opt_part_ptr,
     CON_optional_part              conOptionals optional,
     End_of_optional_parameters_indicator endOfOp  optional
    } with { variant (opt_part_ptr) "POINTERTO (conOptionals)";
           };


//************************************************************************
// COT - Continuity
// Ericsson Specification Reference: Chapter 2.2.2.17
// Standard Reference ISUP         : Chapter 4, Table 28
//************************************************************************
  type record COT_parameters
    {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType,
     Continuity_indicators          continuityInd
    } with { variant "" };


//************************************************************************
// CCR - Continuity Check Request
// Ericsson Specification Reference: Chapter 2.2.2.18
// Standard Reference ISUP         : Chapter 4, Table 39
//************************************************************************
  type record CCR_parameters
    {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType
    } with { variant "" };


//************************************************************************
// FAC - Facility
// Ericsson Specification Reference: Chapter 2.2.2.19
// Standard Reference ISUP         : Chapter 4, Table 45
//************************************************************************
  type set FAC_optional_part
    {
     Message_compatibility_information      messageCompatibilityInfo optional,
     Parameter_compatibility_information    paramCompatibilityInfo optional,
     Service_activation                     serviceActivation optional,
     Call_transfer_number                   callTransferNumber optional,
     Access_transport                       accessTransport optional,
     Generic_notification_indicator_set     genericNotificationInd optional,

     Remote_operations                      remoteOperations optional,
     Redirection_number                     redirectionNum optional,
     Pivot_routing_indicators               PRInd optional,
     Pivot_status                           PSts optional,
     Pivot_counter                          PCount optional,
     Pivot_routing_backward_information     PRBI optional,
     Redirect_status                        RedirSt optional
    } with { variant (genericNotificationInd) "REPEATABLE(yes)";};


  type record FAC_parameters
    {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType,
     Pointer                        opt_part_ptr,
     FAC_optional_part              facOptionals optional,
     End_of_optional_parameters_indicator endOfOp   optional
    } with { variant (opt_part_ptr)"POINTERTO (facOptionals)";
           };


//************************************************************************
// FAA - Facility Accepted
// Ericsson Specification Reference: Chapter 2.2.2.20
// Standard Reference ISUP         : Chapter 4, Table 42
//************************************************************************
  type set FAA_optional_part
    {
     User_to_user_indicators                userToUserInd optional,
     Parameter_compatibility_information    paramCompatibilityInfo optional,

     Call_reference                         callReference optional,
     Connection_request                     connectionRequest optional
    } with { variant "" };


  type record FAA_parameters
    {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType,
     Facility_indicator             facilityInd,
     Pointer                        opt_part_ptr,
     FAA_optional_part              faaOptionals optional,
     End_of_optional_parameters_indicator endOfOp  optional
    } with { variant (opt_part_ptr) "POINTERTO (faaOptionals)";
           };


//************************************************************************
// FRJ - Facility Reject
// Ericsson Specification Reference: Chapter 2.2.2.21
// Standard Reference ISUP         : Chapter 4, Table 29
//************************************************************************
  type set FRJ_optional_part
    {
     User_to_user_indicators                userToUserInd optional
    }  with { variant "" };


  type record FRJ_parameters
    {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType,
     Facility_indicator             facilityInd,
     Pointer                        var_part_ptr,
     Pointer                        opt_part_ptr,
     Cause_indicators               causeInd,
     FRJ_optional_part              frjOptionals optional,
     End_of_optional_parameters_indicator endOfOp optional
    } with { variant (var_part_ptr) "POINTERTO (causeInd)";
             variant (opt_part_ptr) "POINTERTO (frjOptionals)";
           };


//************************************************************************
// FAR - Facility Request
// Ericsson Specification Reference: Chapter 2.2.2.22
// Standard Reference ISUP         : Chapter 4, Table 42
//************************************************************************
  type set FAR_optional_part
    {
     User_to_user_indicators                userToUserInd optional,
     Parameter_compatibility_information    paramCompatibilityInfo optional,

     Call_reference                         callReference optional,
     Connection_request                     connectionRequest optional
    } with { variant "" };


  type record FAR_parameters
    {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType,
     Facility_indicator             facilityInd,
     Pointer                        opt_part_ptr,
     FAR_optional_part              farOptionals optional,
     End_of_optional_parameters_indicator endOfOp  optional
    } with { variant (opt_part_ptr) "POINTERTO (farOptionals)";
           };


//************************************************************************
// FOT - Forward Transfer
// Ericsson Specification Reference: Chapter 2.2.2.23
// Standard Reference ISUP         : Chapter 4, Table 37
//************************************************************************
  type set FOT_optional_part
    {
     Parameter_compatibility_information    paramCompatibilityInfo optional,

     Call_reference                         callReference optional
    } with { variant "" };


  type record FOT_parameters
    {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType,
     Pointer                        opt_part_ptr,
     FOT_optional_part              fotOptionals optional,
     End_of_optional_parameters_indicator endOfOp optional
    } with { variant (opt_part_ptr) "POINTERTO (fotOptionals)";
           };


//************************************************************************
// IDR - Identification Request
// Ericsson Specification Reference: Chapter 2.2.2.24
// Standard Reference ISUP         : Chapter 4, Table 47
//************************************************************************
  type set IDR_optional_part
    {
     MCID_request_indicators                MCIDReqInd optional,
     Message_compatibility_information      messageCompatibilityInfo optional,
     Parameter_compatibility_information    paramCompatibilityInfo optional
    } with { variant "" };


  type record IDR_parameters
    {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType,
     Pointer                        opt_part_ptr,
     IDR_optional_part              idrOptionals optional,
     End_of_optional_parameters_indicator endOfOp optional
    } with { variant (opt_part_ptr) "POINTERTO (idrOptionals)";
           };


//************************************************************************
// IRS - Identification Response
// Ericsson Specification Reference: Chapter 2.2.2.25
// Standard Reference ISUP         : Chapter 4, Table 48
//************************************************************************
  type set IRS_optional_part
    {
     MCID_response_indicators               MCIDRpInd optional,
     Message_compatibility_information      messageCompatibilityInfo optional,
     Parameter_compatibility_information    paramCompatibilityInfo optional,
     Calling_party_number                   callingPartyNum optional,
     Access_transport                       accessTransport optional,
     Generic_number_set                     genericNum optional,
     Charged_party_identification           ChPId optional
    } with { variant (genericNum) "REPEATABLE(yes)";};


  type record IRS_parameters
    {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType,
     Pointer                        opt_part_ptr,
     IRS_optional_part              irsOptionals optional,
     End_of_optional_parameters_indicator endOfOp optional
    } with { variant (opt_part_ptr) "POINTERTO (irsOptionals)";
           };


//************************************************************************
// INF - Information
// Ericsson Specification Reference: Chapter 2.2.2.26
// Standard Reference ISUP         : Chapter 4, Table 30
//************************************************************************
  type set INF_optional_part
    {
     Calling_partys_category_OPT            callingPartyCat optional,
     Calling_party_number                   callingPartyNum optional,
     Access_transport                       accessTransport optional,
     Parameter_compatibility_information    paramCompatibilityInfo optional,
     Network_specific_facility              networkFacility optional,
     Display_information                    displayInfo optional,

     Call_reference                         callReference optional,
     Connection_request                     connectionRequest optional
    } with { variant "" };


  type record  INF_parameters
    {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType,
     Information_indicators         informationInd,
     Pointer                        opt_part_ptr,
     INF_optional_part              infOptionals optional,
     End_of_optional_parameters_indicator endOfOp  optional
    } with { variant (opt_part_ptr) "POINTERTO (infOptionals)";
           };


//************************************************************************
// INR - Information Request
// Ericsson Specification Reference: Chapter 2.2.2.27
// Standard Reference ISUP         : Chapter 4, Table 31
//************************************************************************
  type set INR_optional_part
    {
     Network_specific_facility              networkFacility optional,
     Parameter_compatibility_information    paramCompatibilityInfo optional,

     Call_reference                         callReference optional
    } with { variant "" };


  type record  INR_parameters
    {
     Circuit_identification_code        cic optional,
     ISUP_Message_type                  messageType,
     Information_request_indicators     InfRqInd,
     Pointer                            opt_part_ptr,
     INR_optional_part                  inrOptionals optional,
     End_of_optional_parameters_indicator endOfOp   optional
    } with { variant (opt_part_ptr) "POINTERTO (inrOptionals)";
           };


//************************************************************************
// IAM - Initial Address Message
// Ericsson Specification Reference: Chapter 2.2.2.28
// Standard Reference ISUP         : Chapter 4, Table 32
//************************************************************************
  type set IAM_optional_part
    {
     Transit_network_selection              transitNetworkSel optional,
     Calling_party_number                   callingPartyNum optional,
     Optional_forward_call_indicators       optForwardCallInd optional,
     Redirecting_number                     redirectingNum optional,
     Redirection_information                redirectionInfo optional,
     Closed_user_group_interlock_code       cUGInterlockCode optional,
     Original_called_number                 originalCalledNum optional,
     User_to_user_information_OPT           userToUserInfo optional,
     Access_transport                       accessTransport optional,
     User_service_information               userServiceInfo optional,
     User_to_user_indicators                userToUserInd optional,
     Generic_number_set                     genericNum optional,
     Propagation_delay_counter              propDelayCounter optional,
     User_service_information_prime         userServiceInfoPrime optional,
     Network_specific_facility              networkFacility optional,
     Generic_digits_set                     genericDigits optional,
     Origination_ISC_point_code             origISCPointCode optional,
     User_teleservice_information           userTeleServiceInfo optional,
     Parameter_compatibility_information    paramCompatibilityInfo optional,
     MLPP_precedence                        mLPPprecedence optional,
     Route_identity                         routeIdentity optional,
     Transmission_medium_requirement_prime  transMediumReqPrime optional,
     Location_number                        locationNum optional,
     Forward_GVNS                           forwardGVNS optional,
     Freephone_indicators                   freePhoneInd optional,
     CCSS_parameter                         ccssPar optional,
     Distributed_dynamic_routing_indicators distrDynRoutInd optional,
     Additional_charging_information        addChargeInfo optional,
     Additional_routing_information         addRoutInfo optional,
     Correlation_id                         correlationId optional,
     SCF_id                                 SCFId optional,
     Call_transfer_treatment_indicators     callTransferTreatmentInd optional,
     Conference_treatment_indicators        conferenceTreatmentInd optional,
     Call_offering_treatment_indicators     callOfferingTreatmentInd optional,
     Call_diversion_treatment_indicators    callDiversionTreatmentInd optional,
     Network_call_reference                 netwCallRef optional,
     Calling_name_identity                  cgNameId optional,
     Hop_counter                            HopCnt optional,

     Call_reference                         callReference optional,
     Connection_request                     connectionRequest optional,
     Remote_operations                      remoteOperations optional,
     Generic_notification_indicator_set     genericNotificationInd optional,
     Service_activation                     serviceActivation optional,
     Network_management_controls            NetManCon optional,
     Circuit_assignment_map                 CctAssMap optional,
     Called_IN_number                       CdINnum optional,
     UID_capability_indicators              UIDcapInd optional,
     Echo_control_information               echoControlInfo optional,
     Collect_call_request                   ColCReq optional,
     Application_transport_parameter_set    ATPP optional,
     Pivot_capability                       PivCap optional,
     Called_directory_number                CDirNb optional,
     Original_called_IN_number              OCINNb optional,
     Calling_geodetic_location              CGeoLoc optional,
     Network_routing_number                 NRNb optional,
     Query_on_release_capability            QoRCap optional,
     Pivot_counter                          PCount optional,
     Pivot_routing_forward_information      PRFI optional,
     Redirect_capability                    RedirCap optional,
     Redirect_counter                       RedirCount optional,
     Redirect_status                        RedirSt optional,
     Redirect_forward_information           RedirFI optional,
     Number_portability_forward_information NPFI optional,
     Global_call_reference                  GCRef optional
    } with { variant (ATPP,genericNotificationInd,genericNum,genericDigits) 
                      "REPEATABLE(yes)";};


  type record IAM_parameters
    {
     Circuit_identification_code          cic optional,
     ISUP_Message_type                    messageType,
     Nature_of_connection_indicators      natureOfConnInd,
     Forward_call_indicators              forwardCallInd,
     Calling_partys_category              callingPartyCat,
     Transmission_medium_requirement      transmissionMediumReq,
     Pointer                              var_part_ptr,
     Pointer                              opt_part_ptr,
     Called_party_number                  calledPartyNum,
     IAM_optional_part                    iamOptionals optional,
     End_of_optional_parameters_indicator endOfOp optional
    } with { variant (var_part_ptr) "POINTERTO (calledPartyNum)";
             variant (opt_part_ptr) "POINTERTO (iamOptionals)";
           };


//************************************************************************
// IAM_PTSO - Initial Address Message
// Ericsson Specification Reference: Chapter 2.2.2.28
// Standard Reference ISUP         : Chapter 4, Table 32
//************************************************************************
/*
  type record PAR_GD
    {
     OCT1 parameter_type,
     OCT1 lengthf,
     Generic_digits parameter_contents
    } with { variant "" };


  type record PAR_OISCP
    {
     OCT1 parameter_type,
     OCT1 lengthf,
     Origination_ISC_point_code parameter_contents
    } with { variant "" };


  type record PAR_AT
    {
     OCT1 parameter_type,
     OCT1 lengthf,
     Access_transport parameter_contents
    } with { variant "" };


  type record PAR_CPN
    {
     OCT1 parameter_type,
     OCT1 lengthf,
     Called_party_number parameter_contents
    } with { variant "" };


  type record PAR_CGPN
    {
     OCT1 parameter_type,
     OCT1 lengthf,
     Called_party_number parameter_contents
    } with { variant "" };



  type set IAM_PTSO_optional_part
    {
     PAR_CGPN  callingPartyNum,
     PAR_AT    accessTransport,
     PAR_GD    genericDigits,
     PAR_OISCP origISCPointCode
    } with { variant "" };


type record IAM_PTSO_parameters
    {
     Circuit_identification_code     cic optional,
     ISUP_Message_type               messageType,
     Nature_of_connection_indicators natureOfConnInd,
     Forward_call_indicators             forwardCallInd,
     Calling_partys_category             callingPartyCat,
     Transmission_medium_requirement     transmissionMediumReq,
     Pointer                         var_part_ptr,
     Pointer                         opt_part_ptr,
     INT1                            calledPartyNum_length,
     PAR_CPN                         calledPartyNum,
     IAM_PTSO_optional_part          iamOptionals optional,
     End_of_optional_parameters_indicator endOfOp optional
    } with { variant (var_part_ptr) "POINTERTO (calledPartyNum_length)";
             variant (opt_part_ptr) "POINTERTO (iamOptionals)";
             variant (calledPartyNum_length) "LENGTHTO (calledPartyNum)";
           };

*/


//************************************************************************
// LPA - Loop Back Acknowledgement
// Standard Reference ISUP         : Chapter 4, Table 39
//************************************************************************
  type record LPA_parameters
    {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType
    } with { variant "" };


//************************************************************************
// LOP - Loop Prevention
// Ericsson Specification Reference: Chapter 2.2.2.29
// Standard Reference ISUP         : Chapter 4, Table 50
//************************************************************************
  type set LOP_optional_part
    {
     Message_compatibility_information      messageCompatibilityInfo optional,
     Parameter_compatibility_information    paramCompatibilityInfo optional,
     Call_transfer_reference                callTransferReference optional,
     Loop_prevention_indicators             loopPreventionInd optional
    } with { variant "" };


  type record LOP_parameters
    {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType,
     Pointer                        opt_part_ptr,
     LOP_optional_part              lopOptionals optional,
     End_of_optional_parameters_indicator endOfOp optional
    } with { variant (opt_part_ptr) "POINTERTO (lopOptionals)";
           };


//************************************************************************
// NRM - Network Resource Management
// Standard Reference ISUP         : Chapter 4, Table 46
//************************************************************************
  type set NRM_optional_part
    {
     Message_compatibility_information      messageCompatibilityInfo optional,
     Parameter_compatibility_information    paramCompatibilityInfo optional,
     Echo_control_information               echoControlInfo optional
    } with { variant "" };


  type record NRM_parameters
    {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType,
     Pointer                        opt_part_ptr,
     NRM_optional_part              nrmOptionals optional,
     End_of_optional_parameters_indicator endOfOp  optional
    } with { variant (opt_part_ptr) "POINTERTO (nrmOptionals)";
           };


//************************************************************************
// OLM - Overload
// Standard Reference ISUP         : Chapter 4, Table 39
//************************************************************************
  type record OLM_parameters
    {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType
    } with { variant "" };



//************************************************************************
// OPQ - Operator Queue   FS: 2.2.2.32 / 61/15517-CRT 212 31 Uen Rev. A
//************************************************************************
/*
  type set OPQ_optional_part
    {
     Message_compatibility_information messageCompatibilityInfo optional
    } with { variant "" };

  type record OPQ_parameters
    {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType,
     Pointer                        opt_part_ptr,
     OPQ_optional_part           opqOptionals optional,
     End_of_optional_parameters_indicator endOfOp   optional
    } with { variant (opt_part_ptr) "POINTERTO (opqOptionals)" };

*/


//************************************************************************
// OPR - Operator
// Ericsson Specification Reference: Chapter 2.2.2.30
//************************************************************************
  type set OPR_optional_part
    {
     Message_compatibility_information      messageCompatibilityInfo optional
    } with { variant "" };


  type record OPR_parameters
    {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType,
     Pointer                        opt_part_ptr,
     OPR_optional_part              oprOptionals optional,
     End_of_optional_parameters_indicator endOfOp   optional
    } with { variant (opt_part_ptr) "POINTERTO (oprOptionals)";
           };


//************************************************************************
// PAM - Pass-along
// Standard Reference ISUP         : Chapter 4, Table 43
//************************************************************************
  type record PAM_parameters
    {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType,
     Pointer                        opt_part_ptr,
     OCTN                           contents optional
    } with { variant (opt_part_ptr) "POINTERTO (contents)";
           };


//************************************************************************
// PRI - Pre-release Information
// Standard Reference ISUP         : Chapter 4, Table 52
//************************************************************************
  type set PRI_optional_part
    {
     Message_compatibility_information      messageCompatibilityInfo optional,
     Parameter_compatibility_information    paramCompatibilityInfo optional,
     Optional_forward_call_indicators       optForwardCallInd optional,
     Optional_backward_call_indicators      optBackwardCallInd optional,
     Application_transport_parameter_set    ATPP optional
    } with { variant (ATPP)"REPEATABLE(yes)";};


  type record PRI_parameters
    {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType,
     Pointer                        opt_part_ptr,
     PRI_optional_part              priOptionals optional,
     End_of_optional_parameters_indicator endOfOp  optional
    } with { variant (opt_part_ptr) "POINTERTO (priOptionals)";
           };


//************************************************************************
// REL - Release
// Ericsson Specification Reference: Chapter 2.2.2.31
// Standard Reference ISUP         : Chapter 4, Table 33
//************************************************************************
  type set REL_optional_part
    {
     Access_transport                       accessTransport optional,
     User_to_user_indicators                userToUserInd optional,
     User_to_user_information_OPT           userToUserInfo optional,
     Automatic_congestion_level             autCongLevel optional,
     Network_specific_facility              networkFacility optional,
     Access_delivery_information            accessDeliveryInfo optional,
     Redirection_number                     redirectionNum optional,
     Redirection_information                redirectionInfo optional,
     Parameter_compatibility_information    paramCompatibilityInfo optional,

     Signalling_point_code                  sigPointCode optional,
     Display_information                    displayInfo optional,
     Remote_operations                      remoteOperations optional,
     HTR_information                        HTRInfo optional,
     Redirect_counter                       RedirCount optional,
     Redirection_number_restriction         redirectionNumRest optional,
     Redirect_backward_information          RedirBI optional
    } with { variant "" };

  type record REL_parameters
    {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType,
     Pointer                        var_part_ptr,
     Pointer                        opt_part_ptr,
     Cause_indicators               causeInd,
     REL_optional_part              relOptionals optional,
     End_of_optional_parameters_indicator endOfOp optional
    } with { variant (var_part_ptr) "POINTERTO (causeInd)";
             variant (opt_part_ptr) "POINTERTO (relOptionals)";
           };


//************************************************************************
// RLC - Release Complete
// Ericsson Specification Reference: Chapter 2.2.2.32
// Standard Reference ISUP         : Chapter 4, Table 34
//************************************************************************
  type set RLC_optional_part
    {
     Cause_indicators_OPT                   causeInd optional
    } with { variant "" };


  type record RLC_parameters
     {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType,
     Pointer                        opt_part_ptr,
     RLC_optional_part              rlcOptionals optional,
     End_of_optional_parameters_indicator endOfOp optional
    } with { variant (opt_part_ptr) "POINTERTO (rlcOptionals)";
           };


//************************************************************************
// RSC - Reset Circuit
// Ericsson Specification Reference: Chapter 2.2.2.33
// Standard Reference ISUP         : Chapter 4, Table 39
//************************************************************************
  type record RSC_parameters
    {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType
    } with { variant "" };


//************************************************************************
// RES - Resume
// Ericsson Specification Reference: Chapter 2.2.2.34
// Standard Reference ISUP         : Chapter 4, Table 38
//************************************************************************
  type set RES_optional_part
    {
     Parameter_compatibility_information    paramCompatibilityInfo optional,

     Call_reference                         callReference optional
    } with { variant "" };


  type record RES_parameters
    {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType,
     Suspend_resume_indicators      SUSRESInd,
     Pointer                        opt_part_ptr,
     RES_optional_part              resOptionals optional,
     End_of_optional_parameters_indicator endOfOp optional
    } with { variant (opt_part_ptr) "POINTERTO (resOptionals)";
           };


//************************************************************************
// SGM - Segmentation
// Ericsson Specification Reference: Chapter 2.2.2.35
// Standard Reference ISUP         : Chapter 4, Table 49
//************************************************************************
  type set SGM_optional_part
    {
     Access_transport                       accessTransport optional,
     User_to_user_information_OPT           userToUserInfo optional,
     Message_compatibility_information      messageCompatibilityInfo optional,
     Generic_digits_set                     genericDigits optional,
     Generic_notification_indicator_set     genericNotificationInd optional,
     Generic_number_set                     genericNum optional,
     Calling_name_identity                  cgNameId optional
    } with { variant (genericNotificationInd,genericNum,genericDigits) 
                      "REPEATABLE(yes)";};


  type record SGM_parameters
    {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType,
     Pointer                        opt_part_ptr,
     SGM_optional_part              sgmOptionals optional,
     End_of_optional_parameters_indicator endOfOp   optional
    } with { variant (opt_part_ptr) "POINTERTO (sgmOptionals)";
           };


//************************************************************************
// SCB - Special Clear Back
// Ericsson Specification Reference: Chapter 2.2.2.36
//************************************************************************
  type set SCB_optional_part
    {
     Message_compatibility_information      messageCompatibilityInfo optional
    } with { variant "" };


  type record SCB_parameters
    {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType,
     Pointer                        opt_part_ptr,
     SCB_optional_part              scbOptionals optional,
     End_of_optional_parameters_indicator endOfOp  optional
    } with { variant (opt_part_ptr) "POINTERTO (scbOptionals)";
           };


//************************************************************************
// SAM - Subsequent Address
// Ericsson Specification Reference: Chapter 2.2.2.37
// Standard Reference ISUP         : Chapter 4, Table 35
//************************************************************************
  type record SAM_parameters
    {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType,
     Pointer                        var_part_ptr,
     Pointer                        opt_part_ptr,
     Subsequent_number              subsequentNum,
     End_of_optional_parameters_indicator endOfOp
    } with { variant (var_part_ptr) "POINTERTO (subsequentNum)";
             variant (opt_part_ptr) "POINTERTO (endOfOp)";
           };


//************************************************************************
// SDM - Subsequent Directory Number
// Standard Reference ISUP         : Chapter 4, Table 53
//************************************************************************
  type set SDM_optional_part
    {
     Subsequent_number_OPT                  subsequentNum optional,
     Message_compatibility_information      messageCompatibilityInfo optional
    } with { variant "" };


  type record SDM_parameters
    {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType,
     Pointer                        opt_part_ptr,
     SDM_optional_part              sdmOptionals optional,
     End_of_optional_parameters_indicator endOfOp  optional
    } with { variant (opt_part_ptr) "POINTERTO (sdmOptionals)";
           };


//************************************************************************
// SUS - Suspend
// Ericsson Specification Reference: Chapter 2.2.2.38
// Standard Reference ISUP         : Chapter 4, Table 38
//************************************************************************
  type set SUS_optional_part
    {
     Parameter_compatibility_information    paramCompatibilityInfo optional,

     Call_reference                         callReference optional
    } with { variant "" };


  type record SUS_parameters
    {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType,
     Suspend_resume_indicators      SUSRESInd,
     Pointer                        opt_part_ptr,
     SUS_optional_part              susOptionals optional,
     End_of_optional_parameters_indicator endOfOp optional
    } with { variant (opt_part_ptr) "POINTERTO (susOptionals)";
           };


//************************************************************************
// UBL - Unblocking
// Ericsson Specification Reference: Chapter 2.2.2.39
// Standard Reference ISUP         : Chapter 4, Table 39
//************************************************************************
  type record UBL_parameters
    {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType
    } with { variant "" };


//************************************************************************
// UBA - Unblocking Acknowledgement
// Ericsson Specification Reference: Chapter 2.2.2.40
// Standard Reference ISUP         : Chapter 4, Table 39
//************************************************************************
  type record UBA_parameters
    {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType
    } with { variant "" };


//***************************************************************************
// UCIC - Unequipped Circuit Identification Code
// Ericsson Specification Reference: Chapter 2.2.2.41
// Standard Reference ISUP         : Chapter 4, Table 39
//***************************************************************************
  type record UCIC_parameters
    {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType
    } with { variant "" };


//************************************************************************
// UPA - User Part Available
// Ericsson Specification Reference: Chapter 2.2.2.42
// Standard Reference ISUP         : Chapter 4, Table 44
//************************************************************************
  type set UPA_optional_part
    {
     Parameter_compatibility_information    paramCompatibilityInfo optional
    } with { variant ""};


  type record UPA_parameters
    {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType,
     Pointer                        opt_part_ptr,
     UPA_optional_part              upaOptionals optional,
     End_of_optional_parameters_indicator endOfOp optional
    } with { variant (opt_part_ptr) "POINTERTO (upaOptionals)";
           };


//************************************************************************
// UPT - User Part Test
// Ericsson Specification Reference: Chapter 2.2.2.43
// Standard Reference ISUP         : Chapter 4, Table 44
//************************************************************************
  type set UPT_optional_part
    {
     Parameter_compatibility_information    paramCompatibilityInfo optional
    } with { variant "" };


  type record UPT_parameters
    {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType,
     Pointer                        opt_part_ptr,
     UPT_optional_part              uptOptionals optional,
     End_of_optional_parameters_indicator endOfOp optional
    } with { variant (opt_part_ptr) "POINTERTO (uptOptionals)";
           };


//************************************************************************
// USR - User-to-user Information
// Ericsson Specification Reference: Chapter 2.2.2.44
// Standard Reference ISUP         : Chapter 4, Table 36
//************************************************************************
  type set USR_optional_part
    {
     Access_transport                       accessTransport optional,
     Parameter_compatibility_information    paramCompatibilityInfo optional
    } with { variant "" };


  type record USR_parameters
    {
     Circuit_identification_code    cic optional,
     ISUP_Message_type              messageType,
     Pointer                        var_part_ptr,
     Pointer                        opt_part_ptr,
     User_to_user_information       userToUserInfo,
     USR_optional_part              usrOptionals optional,
     End_of_optional_parameters_indicator endOfOp optional
    } with { variant (var_part_ptr) "POINTERTO (userToUserInfo)";
             variant (opt_part_ptr) "POINTERTO (usrOptionals)";
           };


//************************************************************************
//************************************************************************
//************************************************************************
//************************************************************************
//************************************************************************

//************************************************************************
// Top level PDU
//************************************************************************
  type union PDU_ISUP
    {
     ACM_parameters  ISUP_ACM,   //Address complete
     ANM_parameters  ISUP_ANM,   //Answer
     APM_parameters  ISUP_APM,   //Application transport
     BLO_parameters  ISUP_BLO,   //Blocking
     BLA_parameters  ISUP_BLA,   //Blocking acknowledgement
     CPG_parameters  ISUP_CPG,   //Call progress
     CGB_parameters  ISUP_CGB,   //Circuit group BLOcking
     CGBA_parameters ISUP_CGBA,  //Circuit group BLOcking acknowledgement
     CQM_parameters  ISUP_CQM,   //Circuit group query
     CQR_parameters  ISUP_CQR,   //Circuit group query RESponse
     GRS_parameters  ISUP_GRS,   //Circuit group RESet
     GRA_parameters  ISUP_GRA,   //Circuit group RESet acknowledge
     CGU_parameters  ISUP_CGU,   //Circuit group unblocking
     CGUA_parameters ISUP_CGUA,  //Circuit group unblocking acknowledgement
     CRG_parameters  ISUP_CRG,   //Charge INFormation
     CFN_parameters  ISUP_CFN,   //Confusion
     CON_parameters  ISUP_CON,   //Connect
     COT_parameters  ISUP_COT,   //Continuity
     CCR_parameters  ISUP_CCR,   //Continuity check request
     FAC_parameters  ISUP_FAC,   //Facility
     FAA_parameters  ISUP_FAA,   //Facility accepted
     FRJ_parameters  ISUP_FRJ,   //Facility reject
     FAR_parameters  ISUP_FAR,   //Facility request
     FOT_parameters  ISUP_FOT,   //Forward transfer
     IDR_parameters  ISUP_IDR,   //Identification request
     IRS_parameters  ISUP_IRS,   //Identification RESponse
     INF_parameters  ISUP_INF,   //Information
     INR_parameters  ISUP_INR,   //Information request
     IAM_parameters  ISUP_IAM,   //Initial address
//     IAM_PTSO_parameters  ISUP_IAM_PTSO,   //Modified Initial address
     LPA_parameters  ISUP_LPA,   //Loop back acknowlwdgement
     LOP_parameters  ISUP_LOP,   //Loop prevention
     NRM_parameters  ISUP_NRM,   //Network RESource management
     OLM_parameters  ISUP_OLM,   //Overload
//     OPQ_parameters  ISUP_OPQ,   //Operator Queue
     OPR_parameters  ISUP_OPR,   //Operator
     PAM_parameters  ISUP_PAM,   //Pass-along
     PRI_parameters  ISUP_PRI,   //Pre-release INFormation
     REL_parameters  ISUP_REL,   //Release
     RLC_parameters  ISUP_RLC,   //Release complete
     RSC_parameters  ISUP_RSC,   //Reset circuit
     RES_parameters  ISUP_RES,   //Resume
     SGM_parameters  ISUP_SGM,   //Segmentation
     SAM_parameters  ISUP_SAM,   //Subsequent
     SCB_parameters  ISUP_SCB,   //Special Clear Back
     SDM_parameters  ISUP_SDM,   //Subsequent Directory Number
     SUS_parameters  ISUP_SUS,   //Suspend
     UBL_parameters  ISUP_UBL,   //Unblocking
     UBA_parameters  ISUP_UBA,   //Unblocking acknowledge
     UCIC_parameters ISUP_UCIC,  //Unequipped cic
     UPA_parameters  ISUP_UPA,   //User part available
     UPT_parameters  ISUP_UPT,   //User part test
     USR_parameters  ISUP_USR    //User-to-user INFormation
    } with { variant "TAG(
                       ISUP_ACM,   messageType = '00000110'B;
                       ISUP_ANM,   messageType = '00001001'B;
                       ISUP_APM,   messageType = '01000001'B;
                       ISUP_BLO,   messageType = '00010011'B;
                       ISUP_BLA,   messageType = '00010101'B;
                       ISUP_CPG,   messageType = '00101100'B;
                       ISUP_CGB,   messageType = '00011000'B;
                       ISUP_CGBA,  messageType = '00011010'B;
                       ISUP_CQM,   messageType = '00101010'B;
                       ISUP_CQR,   messageType = '00101011'B;
                       ISUP_GRS,   messageType = '00010111'B;
                       ISUP_GRA,   messageType = '00101001'B;
                       ISUP_CGU,   messageType = '00011001'B;
                       ISUP_CGUA,  messageType = '00011011'B;
                       ISUP_CRG,   messageType = '00110001'B;
                       ISUP_CFN,   messageType = '00101111'B;
                       ISUP_CON,   messageType = '00000111'B;
                       ISUP_COT,   messageType = '00000101'B;
                       ISUP_CCR,   messageType = '00010001'B;
                       ISUP_FAC,   messageType = '00110011'B;
                       ISUP_FAA,   messageType = '00100000'B;
                       ISUP_FRJ,   messageType = '00100001'B;
                       ISUP_FAR,   messageType = '00011111'B;
                       ISUP_FOT,   messageType = '00001000'B;
                       ISUP_IDR,   messageType = '00110110'B;
                       ISUP_IRS,   messageType = '00110111'B;
                       ISUP_INF,   messageType = '00000100'B;
                       ISUP_INR,   messageType = '00000011'B;
                       ISUP_IAM,   messageType = '00000001'B;
//                       ISUP_IAM_PTSO,   messageType = '00000001'B;
                       ISUP_LPA,   messageType = '00100100'B;
                       ISUP_LOP,   messageType = '01000000'B;
                       ISUP_NRM,   messageType = '00110010'B;
                       ISUP_OLM,   messageType = '00110000'B;
//                       ISUP_OPQ,   messageType = '11111110'B;
                       ISUP_OPR,   messageType = '11111111'B;
                       ISUP_PAM,   messageType = '00101000'B;
                       ISUP_PRI,   messageType = '01000010'B;
                       ISUP_REL,   messageType = '00001100'B;
                       ISUP_RLC,   messageType = '00010000'B;
                       ISUP_RSC,   messageType = '00010010'B;
                       ISUP_RES,   messageType = '00001110'B;
                       ISUP_SGM,   messageType = '00111000'B;
                       ISUP_SAM,   messageType = '00000010'B;
                       ISUP_SCB,   messageType = '11111001'B;
                       ISUP_SDM,   messageType = '01000011'B;
                       ISUP_SUS,   messageType = '00001101'B;
                       ISUP_UBL,   messageType = '00010100'B;
                       ISUP_UBA,   messageType = '00010110'B;
                       ISUP_UCIC,  messageType = '00101110'B;
                       ISUP_UPA,   messageType = '00110101'B;
                       ISUP_UPT,   messageType = '00110100'B;
                       ISUP_USR,   messageType = '00101101'B)"
           };


//************************************************************************
//************************************************************************
//************************************************************************
//************************************************************************
//************************************************************************
}with{ encode "RAW"}//end module

Back to the top