aboutsummaryrefslogtreecommitdiff
path: root/csta/kxtda.asn1
blob: ddc5f13311352c06f72699daeca348ae26eb3444 (plain)
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
CSTA-event-report-definitions
	{ iso( 1) identified-organization( 3) icd-ecma( 12)
		standard( 0) csta3( 285) event-report-definitions( 21) }
DEFINITIONS ::=
BEGIN

OPERATION ::= CLASS
{
	&ArgumentType								OPTIONAL,
	&argumentTypeOptional	BOOLEAN 		OPTIONAL,
	&returnResult				BOOLEAN 		DEFAULT TRUE,
	&ResultType									OPTIONAL,
	&resultTypeOptional		BOOLEAN 		OPTIONAL,
	&Errors						ERROR 		OPTIONAL,
	&Linked						OPERATION 	OPTIONAL,
	&synchronous				BOOLEAN 		DEFAULT FALSE,
	&alwaysReturns				BOOLEAN 		DEFAULT TRUE,
	&InvokePriority			Priority 	OPTIONAL,
	&ResultPriority			Priority 	OPTIONAL,
	&operationCode				Code 			UNIQUE OPTIONAL
}
WITH SYNTAX
{
	[ARGUMENT			&ArgumentType  [OPTIONAL	&argumentTypeOptional]]
	[RESULT			&ResultType    [OPTIONAL	&resultTypeOptional]]
	[RETURN RESULT		&returnResult]
	[ERRORS			&Errors]
	[LINKED			&Linked]
	[SYNCHRONOUS		&synchronous]
	[ALWAYS RESPONDS	&alwaysReturns]
	[INVOKE PRIORITY	&InvokePriority]
	[RESULT-PRIORITY	&ResultPriority]
	[CODE			&operationCode]
}

ERROR ::= CLASS
{
	&ParameterType		OPTIONAL,
	&parameterTypeOptional	BOOLEAN OPTIONAL,
	&ErrorPriority		Priority OPTIONAL,
	&errorCode		Code UNIQUE OPTIONAL
}
WITH SYNTAX
{
	[PARAMETER		&ParameterType  [OPTIONAL	&parameterTypeOptional]]
	[PRIORITY			&ErrorPriority]
	[CODE			&errorCode]
}

Code ::= CHOICE
{
        local   INTEGER,
        global  OBJECT IDENTIFIER
}
Priority ::= INTEGER (0..MAX)

ChargingEvent ::= SEQUENCE
{       connection              ConnectionID,
        chargedDevice           DeviceID,
        chargingInfo            ChargingInfo,
        cause           EventCause              OPTIONAL,
        extensions              CSTACommonArguments             OPTIONAL}

DigitsGeneratedEvent ::= SEQUENCE
{       connection              ConnectionID,
        digitGeneratedList              IA5String,
        digitDurationList               [0] IMPLICIT SEQUENCE OF INTEGER                        OPTIONAL,
        pauseDurationList               [1] IMPLICIT SEQUENCE OF INTEGER                        OPTIONAL,
        connectionInfo          ConnectionInformation                   OPTIONAL,
        extensions              CSTACommonArguments                     OPTIONAL}

TelephonyTonesGeneratedEvent ::= SEQUENCE
{       connection              ConnectionID,
        toneGenerated           TelephonyTone           OPTIONAL,
        toneFrequency           [0] IMPLICIT INTEGER            OPTIONAL,
        toneDuration            [1] IMPLICIT INTEGER            OPTIONAL,
        pauseDuration           [2] IMPLICIT INTEGER            OPTIONAL,
        connectionInfo          ConnectionInformation           OPTIONAL,
        extensions              CSTACommonArguments             OPTIONAL}

ServiceCompletionFailureEvent ::= SEQUENCE
{       primaryCall                     PrimaryOrSecondaryCall,
        secondaryCall                   [0] IMPLICIT PrimaryOrSecondaryCall                     OPTIONAL,
        otherDevsPrimaryCallList                        [1] IMPLICIT SEQUENCE OF OtherCall                      OPTIONAL,
        otherDevsSecondaryCallList                      [2] IMPLICIT SEQUENCE OF OtherCall                      OPTIONAL,
        mediaCallCharacteristics                        [3] IMPLICIT MediaCallCharacteristics                   OPTIONAL,
        cause                   EventCause,
        extensions                      CSTACommonArguments                     OPTIONAL}

PrimaryOrSecondaryCall ::= SEQUENCE
{       deviceID                DeviceID,
        connectionID            ConnectionID,
        localConnectionState            LocalConnectionState,
        connectionInfo          ConnectionInformation           OPTIONAL}

OtherCall ::= SEQUENCE
{       deviceID                DeviceID,
        connectionID            ConnectionID,
        localConnectionState            LocalConnectionState            OPTIONAL,
        connectionInfo          ConnectionInformation           OPTIONAL}

TransferredEvent ::=
        SEQUENCE
        {       primaryOldCall          ConnectionID,
                secondaryOldCall        [0] IMPLICIT ConnectionID               OPTIONAL,
                transferringDevice      SubjectDeviceID,
                transferredToDevice     SubjectDeviceID,
                transferredConnections  [1] IMPLICIT ConnectionList,
                localConnectionInfo     LocalConnectionState                    OPTIONAL,
                correlatorData          [2] IMPLICIT CorrelatorData             OPTIONAL,
                userData                UserData                                OPTIONAL,
                chargingInfo            [3] IMPLICIT ChargingInfo               OPTIONAL,
                cause                   EventCause,
                servicesPermitted       [4] IMPLICIT ServicesPermitted          OPTIONAL,
                mediaCallCharacteristics [5] IMPLICIT MediaCallCharacteristics  OPTIONAL,
                callCharacteristics     [6] IMPLICIT CallCharacteristics        OPTIONAL,
                callLinkageDataList     [7] IMPLICIT CallLinkageDataList        OPTIONAL,
                extensions              CSTACommonArguments                     OPTIONAL}

QueuedEvent ::=
        SEQUENCE
        {       queuedConnection        ConnectionID,
                queue                   SubjectDeviceID,
                callingDevice           CallingDeviceID,
                calledDevice            CalledDeviceID,
                lastRedirectionDevice   RedirectionDeviceID,
                numberQueued            [0] IMPLICIT INTEGER            OPTIONAL,
                callsInFront            [1] IMPLICIT INTEGER            OPTIONAL,
                localConnectionInfo     LocalConnectionState            OPTIONAL,
                correlatorData          [2] IMPLICIT CorrelatorData     OPTIONAL,
                userData                UserData                        OPTIONAL,
                cause                   EventCause,
                servicesPermitted       [3] IMPLICIT ServicesPermitted  OPTIONAL,
                networkCallingDevice    NetworkCallingDeviceID          OPTIONAL,
                networkCalledDevice     NetworkCalledDeviceID           OPTIONAL,
                associatedCallingDevice AssociatedCallingDeviceID       OPTIONAL,
                associatedCalledDevice  AssociatedCalledDeviceID        OPTIONAL,
                mediaCallCharacteristics [4] IMPLICIT MediaCallCharacteristics  OPTIONAL,
                callCharacteristics     [5] IMPLICIT CallCharacteristics        OPTIONAL,
                queuedConnectionInfo    [6] IMPLICIT ConnectionInformation      OPTIONAL,
                callLinkageData         [7] IMPLICIT CallLinkageData    OPTIONAL,
                extensions              CSTACommonArguments             OPTIONAL}

HookswitchEvent ::= SEQUENCE
{       device          SubjectDeviceID,
        hookswitch              HookswitchID,
        hookswitchOnHook                BOOLEAN,
        extensions              CSTACommonArguments             OPTIONAL}

OfferedEvent ::= SEQUENCE
        {       offeredConnection       ConnectionID,
                offeredDevice           SubjectDeviceID,
                callingDevice           CallingDeviceID,
                calledDevice            CalledDeviceID,
                lastRedirectionDevice   RedirectionDeviceID,
                originatingNIDConnection ConnectionID                   OPTIONAL,
                localConnectionInfo     LocalConnectionState            OPTIONAL,
                correlatorData          CorrelatorData                  OPTIONAL,
                userData                UserData                        OPTIONAL,
                cause                   EventCause,
                servicesPermitted       [0] IMPLICIT ServicesPermitted  OPTIONAL,
                networkCallingDevice    NetworkCallingDeviceID          OPTIONAL,
                networkCalledDevice     NetworkCalledDeviceID           OPTIONAL,
                associatedCallingDevice AssociatedCallingDeviceID       OPTIONAL,
                associatedCalledDevice  AssociatedCalledDeviceID        OPTIONAL,
                mediaCallCharacteristics [1] IMPLICIT MediaCallCharacteristics  OPTIONAL,
                callCharacteristics     [2] IMPLICIT CallCharacteristics        OPTIONAL,
                offeredConnectionInfo   [3] IMPLICIT ConnectionInformation      OPTIONAL,
                callLinkageData         [4] IMPLICIT CallLinkageData    OPTIONAL,
                extensions              CSTACommonArguments             OPTIONAL}

FailedEvent ::= SEQUENCE
       {        failedConnection        ConnectionID,
                failingDevice           SubjectDeviceID,
                callingDevice           CallingDeviceID,
                calledDevice            CalledDeviceID,
                lastRedirectionDevice   RedirectionDeviceID,
                originatingNIDConnection ConnectionID                   OPTIONAL,
                localConnectionInfo     LocalConnectionState            OPTIONAL,
                correlatorData          [0] IMPLICIT CorrelatorData     OPTIONAL,
                userData                UserData                        OPTIONAL,
                cause                   EventCause,
                servicesPermitted       [1] IMPLICIT ServicesPermitted          OPTIONAL,
                networkCallingDevice    NetworkCallingDeviceID          OPTIONAL,
                networkCalledDevice     NetworkCalledDeviceID           OPTIONAL,
                associatedCallingDevice AssociatedCallingDeviceID       OPTIONAL,
                associatedCalledDevice  AssociatedCalledDeviceID        OPTIONAL,
                mediaCallCharacteristics [2] IMPLICIT MediaCallCharacteristics  OPTIONAL,
                callCharacteristics     [3] IMPLICIT CallCharacteristics        OPTIONAL,
                failedConnectionInfo    [4] IMPLICIT ConnectionInformation    OPTIONAL,      --corrected 06/2001
                callLinkageData         [5] IMPLICIT CallLinkageData    OPTIONAL,
                extensions              CSTACommonArguments             OPTIONAL}

HeldEvent ::=
        SEQUENCE
        {       heldConnection          ConnectionID,
                holdingDevice           SubjectDeviceID,
                localConnectionInfo     LocalConnectionState                    OPTIONAL,
                correlatorData          [0] IMPLICIT CorrelatorData             OPTIONAL,
                cause                   EventCause,
                servicesPermitted       [1] IMPLICIT ServicesPermitted          OPTIONAL,
                mediaCallCharacteristics [2] IMPLICIT MediaCallCharacteristics  OPTIONAL,
                callCharacteristics     [3] IMPLICIT CallCharacteristics        OPTIONAL,
                heldConnectionInfo      [4] IMPLICIT ConnectionInformation      OPTIONAL,
                callLinkageData         [5] IMPLICIT CallLinkageData            OPTIONAL,
                extensions              CSTACommonArguments                     OPTIONAL}

NetworkCapabilitiesChangedEvent ::= SEQUENCE
        {       outboundConnection      ConnectionID,
                networkInterfaceUsed    SubjectDeviceID,
                calledDevice            CalledDeviceID,
                progressIndicator       ProgressIndicator,
                localConnectionInfo     LocalConnectionState            OPTIONAL,
                correlatorData          CorrelatorData                  OPTIONAL,
                userData                UserData                        OPTIONAL,
                networkCapability       [0] IMPLICIT NetworkCapability  OPTIONAL,
                cause                   EventCause,
                servicesPermitted       [1] IMPLICIT ServicesPermitted          OPTIONAL,
                mediaCallCharacteristics [2] IMPLICIT MediaCallCharacteristics  OPTIONAL,
                callCharacteristics     [3] IMPLICIT CallCharacteristics        OPTIONAL,
                outboundConnectionInfo  [4] IMPLICIT ConnectionInformation      OPTIONAL,
                callLinkageData         [5] IMPLICIT CallLinkageData    OPTIONAL,
                extensions              CSTACommonArguments             OPTIONAL}

NetworkReachedEvent ::=
        SEQUENCE
        {       outboundConnection      ConnectionID,
                networkInterfaceUsed    SubjectDeviceID,
                callingDevice           CallingDeviceID,
                calledDevice            CalledDeviceID,
                lastRedirectionDevice   RedirectionDeviceID,
                originatingNIDConneciton ConnectionID                   OPTIONAL,
                localConnectionInfo     LocalConnectionState            OPTIONAL,
                correlatorData          [0] IMPLICIT CorrelatorData             OPTIONAL,
                userData                UserData                        OPTIONAL,
                networkCapability       [1] IMPLICIT NetworkCapability          OPTIONAL,
                cause                   EventCause,
                servicesPermitted       [2] IMPLICIT ServicesPermitted          OPTIONAL,
                mediaCallCharacteristics [3] IMPLICIT MediaCallCharacteristics  OPTIONAL,
                callCharacteristics     [4] IMPLICIT CallCharacteristics        OPTIONAL,
                outboundConnectionInfo  [5] IMPLICIT ConnectionInformation      OPTIONAL,
                networkCallingDevice    NetworkCallingDeviceID          OPTIONAL,
                networkCalledDevice     NetworkCalledDeviceID           OPTIONAL,
                associatedCallingDevice AssociatedCallingDeviceID       OPTIONAL,
                callLinkageData         [6] IMPLICIT CallLinkageData    OPTIONAL,
                extensions              CSTACommonArguments             OPTIONAL}

OriginatedEvent ::= SEQUENCE
{       originatedConnection                    ConnectionID,
        callingDevice                   SubjectDeviceID,
        calledDevice                    CalledDeviceID,
        originatingDevice                       DeviceID                        OPTIONAL,
        localConnectionInfo                     LocalConnectionState                    OPTIONAL,
        correlatorData                  [2] IMPLICIT CorrelatorData                     OPTIONAL,
        cause                   EventCause,
        servicesPermitted                       [3] IMPLICIT ServicesPermitted                  OPTIONAL,
        networkCallingDevice                    NetworkCallingDeviceID                  OPTIONAL,
        networkCalledDevice                     NetworkCalledDeviceID                   OPTIONAL,
        associatedCallingDevice                         AssociatedCallingDeviceID                       OPTIONAL,
        associatedCalledDevice                  AssociatedCalledDeviceID                        OPTIONAL,
        mediaCallCharacteristics                        [4] IMPLICIT MediaCallCharacteristics                   OPTIONAL,
        callCharacteristics                     [5] IMPLICIT CallCharacteristics                        OPTIONAL,
        originatedConnectionInfo                        [6] IMPLICIT ConnectionInformation                      OPTIONAL,
        callLinkageData               [7] IMPLICIT CallLinkageData                              OPTIONAL,
        extensions                      CSTACommonArguments                     OPTIONAL}

RetrievedEvent ::=
        SEQUENCE
        {       retrievedConnection     ConnectionID,
                retrievingDevice        SubjectDeviceID,
                localConnectionInfo     LocalConnectionState            OPTIONAL,
                correlatorData          [0] IMPLICIT CorrelatorData             OPTIONAL,
                cause                   EventCause,
                servicesPermitted       [1] IMPLICIT ServicesPermitted          OPTIONAL,
                mediaCallCharacteristics [2] IMPLICIT MediaCallCharacteristics  OPTIONAL,
                callCharacteristics     [3] IMPLICIT CallCharacteristics        OPTIONAL,
                retrievedConnectionInfo [4] IMPLICIT ConnectionInformation      OPTIONAL,
                callLinkageData         [5] IMPLICIT CallLinkageData    OPTIONAL,
                extensions              CSTACommonArguments             OPTIONAL}

ServiceInitiatedEvent ::=
        SEQUENCE
        {       initiatedConnection     ConnectionID,
                initiatingDevice        SubjectDeviceID,
                localConnectionInfo     LocalConnectionState            OPTIONAL,
                correlatorData          [0] IMPLICIT CorrelatorData     OPTIONAL,
                cause                   EventCause,
                servicesPermitted       [1] IMPLICIT ServicesPermitted          OPTIONAL,
                mediaCallCharacteristics [2] IMPLICIT MediaCallCharacteristics  OPTIONAL,
                callCharacteristics     [3] IMPLICIT CallCharacteristics        OPTIONAL,
                initiatedConnectionInfo [4] IMPLICIT ConnectionInformation      OPTIONAL,
                networkCallingDevice    NetworkCallingDeviceID          OPTIONAL,
                networkCalledDevice     NetworkCalledDeviceID           OPTIONAL,
                associatedCallingDevice AssociatedCallingDeviceID       OPTIONAL,
                callLinkageData         [5] IMPLICIT CallLinkageData    OPTIONAL,
                extensions              CSTACommonArguments             OPTIONAL}

CallInformationEvent ::= SEQUENCE
{       connection              ConnectionID,
        device          SubjectDeviceID,
        callingDevice           CallingDeviceID                 OPTIONAL,
        accountInfo             [0] IMPLICIT AccountInfo                        OPTIONAL,
        authCode                [1] IMPLICIT AuthCode                   OPTIONAL,
        correlatorData          [2] IMPLICIT CorrelatorData                     OPTIONAL,
        servicesPermitted               [3] IMPLICIT ServicesPermitted                  OPTIONAL,
        userData                UserData                        OPTIONAL,
        callQualifyingData              [4] IMPLICIT CallQualifyingData                 OPTIONAL,
        connectionInfo          ConnectionInformation                   OPTIONAL,
        callLinkageDataList             [5] IMPLICIT CallLinkageDataList                        OPTIONAL,
        extensions              CSTACommonArguments                     OPTIONAL}

BridgedEvent ::= SEQUENCE
{       bridgedConnection               ConnectionID,
        bridgedAppearance               SubjectDeviceID,
        localConnectionInfo             LocalConnectionState                    OPTIONAL,
        correlatorData                  [0] IMPLICIT CorrelatorData             OPTIONAL,
        userData                        UserData                                OPTIONAL,
        cause                           EventCause,
        servicesPermitted               [1] IMPLICIT ServicesPermitted          OPTIONAL,
        mediaCallCharacteristics        [2] IMPLICIT MediaCallCharacteristics   OPTIONAL,
        callCharacteristics             [3] IMPLICIT CallCharacteristics        OPTIONAL,
        bridgedConnectionInfo           [4] IMPLICIT ConnectionInformation      OPTIONAL,
        callLinkageData                 [5] IMPLICIT CallLinkageData            OPTIONAL,
        extensions                      CSTACommonArguments                     OPTIONAL}

CallClearedEvent ::=
        SEQUENCE
        {       clearedCall                     ConnectionID,
                correlatorData                  [1] IMPLICIT CorrelatorData             OPTIONAL,
                userData                        UserData                                OPTIONAL,
                cause                           EventCause,
                 mediaCallCharacteristics        [2] IMPLICIT MediaCallCharacteristics OPTIONAL,
                callCharacteristics             [3] IMPLICIT CallCharacteristics        OPTIONAL,
                callLinkageData                 [4] IMPLICIT CallLinkageData            OPTIONAL,
                extensions                      CSTACommonArguments                     OPTIONAL}

ConferencedEvent ::=    SEQUENCE
{       primaryOldCall                  ConnectionID,
        secondaryOldCall                        ConnectionID                            OPTIONAL,
        conferencingDevice                      SubjectDeviceID,
        addedParty                      SubjectDeviceID,
        conferenceConnections                   ConnectionList,
        localConnectionInfo                     LocalConnectionState                            OPTIONAL,
        correlatorData                  [1] IMPLICIT CorrelatorData                             OPTIONAL,
        userData                        UserData                                OPTIONAL,
        cause                   EventCause,
        servicesPermitted                       [2] IMPLICIT ServicesPermitted                          OPTIONAL,
        mediaCallCharacteristics                        [3] IMPLICIT MediaCallCharacteristics                           OPTIONAL,
        callCharacteristics                     [4] IMPLICIT CallCharacteristics                                OPTIONAL,
        callLinkageDataList                     [6] IMPLICIT CallLinkageDataList                                OPTIONAL,
        extensions                      [5] IMPLICIT CSTACommonArguments                                OPTIONAL}

ConnectionClearedEvent ::=
SEQUENCE
{       droppedConnection       ConnectionID,
        releasingDevice         SubjectDeviceID,
        localConnectionInfo     LocalConnectionState                    OPTIONAL,
        correlatorData          [0] IMPLICIT CorrelatorData             OPTIONAL,
        userData                UserData                                OPTIONAL,
        chargingInfo            [1] IMPLICIT ChargingInfo               OPTIONAL,
        cause                   EventCause,
        servicesPermitted       [2] IMPLICIT ServicesPermitted          OPTIONAL,
        mediaCallCharacteristics [3] IMPLICIT MediaCallCharacteristics  OPTIONAL,
        callCharacteristics     [4] IMPLICIT CallCharacteristics        OPTIONAL,
        droppedConnectionInfo   [5] IMPLICIT ConnectionInformation      OPTIONAL,
        callLinkageData         [6] IMPLICIT CallLinkageData            OPTIONAL,
        extensions              CSTACommonArguments                     OPTIONAL}

DeliveredEvent ::=
        SEQUENCE
        {       connection                                              ConnectionID,
                alertingDevice                                          SubjectDeviceID,
                callingDevice                                           CallingDeviceID,
                calledDevice                                            CalledDeviceID,
                lastRedirectionDevice                                   RedirectionDeviceID,
                originatingNIDConnection                                ConnectionID                            OPTIONAL,
                localConnectionInfo                                     LocalConnectionState                    OPTIONAL,
                correlatorData                                          [0] IMPLICIT CorrelatorData             OPTIONAL,
                userData                                                UserData                                OPTIONAL,
                cause                                                   EventCause,
                servicesPermitted                                       [1] IMPLICIT ServicesPermitted          OPTIONAL,
                networkCallingDevice                                    NetworkCallingDeviceID                  OPTIONAL,
                networkCalledDevice                                     NetworkCalledDeviceID                   OPTIONAL,
                associatedCallingDevice                                 AssociatedCallingDeviceID               OPTIONAL,
                associatedCalledDevice                                  AssociatedCalledDeviceID                OPTIONAL,
                mediaCallCharacteristics                                [2] IMPLICIT MediaCallCharacteristics   OPTIONAL,
                callCharacteristics                                     [3] IMPLICIT CallCharacteristics        OPTIONAL,
                connectionInfo                                          [4] IMPLICIT ConnectionInformation      OPTIONAL,
                callLinkageData                    [5] IMPLICIT CallLinkageData            OPTIONAL,
                extensions                                              CSTACommonArguments                     OPTIONAL}

DigitsDialedEvent ::= SEQUENCE
        {       dialingConnection       ConnectionID,
                dialingDevice           SubjectDeviceID,
                dialingSequence         DeviceID,
                localConnectionInfo     LocalConnectionState            OPTIONAL,
                correlatorData          [0] IMPLICIT CorrelatorData     OPTIONAL,
                cause                   EventCause,
                servicesPermitted       [1] IMPLICIT ServicesPermitted  OPTIONAL,
                networkCallingDevice    NetworkCallingDeviceID          OPTIONAL,
                networkCalledDevice     NetworkCalledDeviceID           OPTIONAL,
                associatedCallingDevice AssociatedCallingDeviceID       OPTIONAL,
                associatedCalledDevice  AssociatedCalledDeviceID        OPTIONAL,
                dialingConnectionInfo   [2] IMPLICIT ConnectionInformation      OPTIONAL,
                callCharacteristics     [3] IMPLICIT CallCharacteristics        OPTIONAL,
                callLinkageData         [4] IMPLICIT CallLinkageData    OPTIONAL,
                extensions              CSTACommonArguments             OPTIONAL}

DivertedEvent ::= SEQUENCE
{       connection                      ConnectionID,
        divertingDevice                 SubjectDeviceID,
        newDestination                  SubjectDeviceID,
        callingDevice                   CallingDeviceID                                                         OPTIONAL,
        calledDevice                    CalledDeviceID                                                          OPTIONAL,
        lastRedirectionDevice           RedirectionDeviceID,
        localConnectionInfo             LocalConnectionState                                                    OPTIONAL,
        correlatorData                  [0] IMPLICIT CorrelatorData                                             OPTIONAL,
        userData                        UserData                                                                OPTIONAL,
        cause                           EventCause,
        servicesPermitted               [1] IMPLICIT ServicesPermitted                                          OPTIONAL,
        mediaCallCharacteristics        [2] IMPLICIT MediaCallCharacteristics                                   OPTIONAL,
        callCharacteristics             [3] IMPLICIT CallCharacteristics                                                OPTIONAL,
        connectionInfo                  [4] IMPLICIT ConnectionInformation                                              OPTIONAL,
        networkCallingDevice            NetworkCallingDeviceID                                                  OPTIONAL,
        networkCalledDevice             NetworkCalledDeviceID                                                   OPTIONAL,
        associatedCallingDevice         AssociatedCallingDeviceID                                               OPTIONAL,
        associatedCalledDevice          AssociatedCalledDeviceID                                                OPTIONAL,
        callLinkageData                 [5] IMPLICIT CallLinkageData                                    OPTIONAL,
        extensions                      CSTACommonArguments                                                     OPTIONAL}

EstablishedEvent ::=
        SEQUENCE
        {       establishedConnection   ConnectionID,
                answeringDevice         SubjectDeviceID,
                callingDevice           CallingDeviceID,
                calledDevice            CalledDeviceID,
                lastRedirectionDevice   RedirectionDeviceID,
                originatingNIDConnection ConnectionID                   OPTIONAL,
                localConnectionInfo     LocalConnectionState            OPTIONAL,
                correlatorData          [1] IMPLICIT CorrelatorData     OPTIONAL,
                userData                UserData                        OPTIONAL,
                cause                   EventCause,
                servicesPermitted       [2] IMPLICIT ServicesPermitted  OPTIONAL,
                networkCallingDevice    NetworkCallingDeviceID          OPTIONAL,
                networkCalledDevice     NetworkCalledDeviceID           OPTIONAL,
                associatedCallingDevice AssociatedCallingDeviceID       OPTIONAL,
                associatedCalledDevice  AssociatedCalledDeviceID        OPTIONAL,
                mediaCallCharacteristics [3] IMPLICIT MediaCallCharacteristics  OPTIONAL,
                callCharacteristics     [4] IMPLICIT CallCharacteristics        OPTIONAL,
                establishedConnectionInfo [5] IMPLICIT ConnectionInformation    OPTIONAL,
                callLinkageData         [6] IMPLICIT CallLinkageData    OPTIONAL,
                extensions              CSTACommonArguments             OPTIONAL}

EventCause ::= ENUMERATED
-- a general list of cause codes
--                              Present in      Added in        Added in
--                              Version 1       Version 2       Version 3
{       aCDBusy                                 (57),
        aCDForward                                      (58),
        aCDSaturated                                    (59),
        activeParticipation                     (1),
        alertTimeExpired                                        (60),
        alternate                       (2),
        autoWork                                        (61),
        blocked                         (35),
        busy                    (3),
        callBack                        (4),
        callCancelled                   (5),
        callForward                     (9),
        callForwardImmediate                    (6),
        callForwardBusy                 (7),
        callForwardNoAnswer                     (8),
        callNotAnswered                 (10),
        callPickup                      (11),
        campOn                  (12),
        campOnTrunks                                    (62),
        characterCountReached                           (36),
        conference                                      (63),
        consultation                            (37),
        destDetected                                    (64),
        destNotObtainable                       (13),
        destOutOfOrder                                  (65),
        distributed                             (38),
        distributionDelay                                       (66),
        doNotDisturb                    (14),
        dTMFDigitDetected                               (39),
        durationExceeded                                (40),
        endOfMessageDetected                            (41),
        enteringDistribution                            (42),
        forcedPause                             (43),
        forcedTransition                                        (67),
        incompatibleDestination                 (15),
        intrude                                 (68),
        invalidAccountCode                      (16),
        invalidNumberFormat                                     (69),
        joinCall                                        (70),
        keyOperation                    (17),
        keyOperationInUse                                       (71),
        lockout                 (18),
        maintenance                     (19),
        makeCall                                (44),
        makePredictiveCall                                      (72),
        messageDurationExceeded                                 (73),
        messageSizeExceeded                             (45),
        multipleAlerting                                        (74),
        multipleQueuing                                 (75),
        networkCongestion                       (20),
        networkDialling                                 (76),
        networkNotObtainable                    (21),
        networkOutOfOrder                                       (77),
        networkSignal                           (46),
        newCall                 (22),
        nextMessage                             (47),
        noAvailableAgents                       (23),
        normal                                  (78),
        normalClearing                          (48),
        noSpeechDetected                                (49),
        notAvaliableBearerService                                       (79),
        notSupportedBearerService                                       (80),
        numberChanged                           (50),
        numberUnallocated                                       (81),
        overflow                        (26),
        override                        (24),
        park                    (25),
        queueCleared                                    (82),
        recall                  (27),
        redirected                      (28),
        remainsInQueue                                  (83),
        reorderTone                     (29),
        reserved                                        (84),
        resourcesNotAvailable                   (30),
        selectedTrunkBusy                                       (85),
        silentParticipation                     (31),
        singleStepConference                            (51),
        singleStepTransfer                              (52),
        speechDetected                          (53),
        suspend                                 (86),
        switchingFunctionTerminated                             (54),
        terminationCharacterReceived                            (55),
        timeout                         (56),
        transfer                        (32),
        trunksBusy                      (33),
        unauthorisedBearerService                                       (87)}
--      voiceUnitInitiator                      (34) }

ConnectionID ::= [APPLICATION 11] CHOICE
{       callID  [0] IMPLICIT            CallID,
        deviceID        [1]             LocalDeviceID,
        both    SEQUENCE
        {       callID  [0] IMPLICIT            CallID,
                deviceID        [1]             LocalDeviceID
        }
}

CallID ::= IA5String (SIZE(0..8))
--OCTET STRING (SIZE(0..8))

LocalDeviceID ::= CHOICE
        {       staticID        DeviceID,
                dynamicID       [3] IMPLICIT    OCTET STRING (SIZE(0..32)) }

AgentID ::= OCTET STRING (SIZE(0..32))

AgentPassword ::= OCTET STRING (SIZE(0..32))

MessageID ::=  OCTET STRING

ServicesPermitted ::= SEQUENCE
{       callControlServices             CallControlServices,
        callAssociatedServices          CallAssociatedServices,
        mediaAttachmentServices         MediaAttachmentServices,
        routeingServices                RouteingServices,
        voiceUnitServices               VoiceUnitServices}

CallControlServices ::= BIT STRING
{		acceptCall              (0),
		alternateCall           (1),
		answerCall              (2),
		callBack                (3),
		callBackMessage         (4),
		campOnCall              (5),
		clearCall               (6),
		clearConnection         (7),
		conferenceCall          (8),
		consultationCall        (9),
		deflectCall             (10),
		dialDigits              (11),
		directedPickupCall      (12),
		groupPickupCall         (13),
		holdCall                (14),
		intrudeCall             (15),
		joinCall                (16),
		makeCall                (17),
		makePredictiveCall      (18),
		parkCall                (19),
		reconnectCall           (20),
		retrieveCall            (21),
		singleStepConference    (22),
		singleStepTransfer      (23),
		transferCall            (24)}


CallAssociatedServices ::= BIT STRING
{ 		associateData 		(0),
		cancelTelephonyTones 		(1),
		generateDigits 		(2),
		generateTelephonyTones 		(3),
		sendUserInformation 		(4)}

MediaAttachmentServices ::= BIT STRING
{	attachMediaService		(0),
	detachMediaService		(1)}

RouteingServices ::= BIT STRING
{		routeRegister           ( 0),
		routeRegisterCancel     ( 1),
		routeRegisterAbort      ( 2),
		reRoute                 ( 3),
		routeEnd                ( 4),
		routeReject             ( 5),
		routeRequest            ( 6),
		routeSelect             ( 7),
		routeUsed               ( 8)}

VoiceUnitServices ::= BIT STRING
{		concatenateMessage		(0),
		deleteMessage		(1),
		playMessage		(2),
	 	queryVoiceAttribute		(3),
	 	recordMessage		(4),
	 	reposition		(5),
	 	resume		(6),
	 	review		(7),
	 	setVoiceAttribute		(8),
	 	stop		(9),
	 	suspend		(10),
	 	synthesizeMessage		(11)}

cSTAEventReport		OPERATION ::=
{	ARGUMENT	CSTAEventReportArgument
	ALWAYS RESPONDS		FALSE
	CODE		local:21
}

CSTAEventReportArgument ::= SEQUENCE
{	crossRefIdentifier		MonitorCrossRefID,
	eventSpecificInfo		EventSpecificInfo}
	
EventSpecificInfo ::= CHOICE
{	callControlEvents			[0] CallControlEvents,
	callAssociatedEvents			[1] CallAssociatedEvents,
	mediaAttachmentEvents			[2] MediaAttachmentEvents,
	physicalDeviceFeatureEvents			[3] PhysicalDeviceFeatureEvents,
	logicalDeviceFeatureEvents			[4] LogicalDeviceFeatureEvents,
	deviceMaintenanceEvents			[5] DeviceMaintenanceEvents,
	voiceUnitEvents			[6] VoiceUnitEvents,
	vendorSpecEvents			[7] VendorSpecEvents}


CallControlEvents ::= CHOICE
{	bridged 			[ 0] IMPLICIT BridgedEvent,
	callCleared 			[ 1] IMPLICIT CallClearedEvent,
	conferenced 			[ 2] IMPLICIT ConferencedEvent,
	connectionCleared 			[ 3] IMPLICIT ConnectionClearedEvent,
	delivered 			[ 4] IMPLICIT DeliveredEvent,
	digitsDialed 			[ 5] IMPLICIT DigitsDialedEvent,
	diverted 			[ 6] IMPLICIT DivertedEvent,
	established                 			[ 7] IMPLICIT EstablishedEvent,
	failed                      			[ 8] IMPLICIT FailedEvent,
	held                 			[ 9] IMPLICIT HeldEvent,
	networkCapabilitiesChanged	 		[10] IMPLICIT NetworkCapabilitiesChangedEvent,
	networkReached 			[11] IMPLICIT NetworkReachedEvent,
	offered 			[12] IMPLICIT OfferedEvent,
	originated 			[13] IMPLICIT OriginatedEvent,
	queued 			[14] IMPLICIT QueuedEvent,
	retrieved 			[15] IMPLICIT RetrievedEvent,
	serviceInitiated 			[16] IMPLICIT ServiceInitiatedEvent,
	transferred 			[17] IMPLICIT TransferredEvent}

CallAssociatedEvents ::= CHOICE
{	callInformation			[ 0] IMPLICIT CallInformationEvent,
	charging			[ 1] IMPLICIT ChargingEvent,
	digitsGeneratedEvent			[ 2] IMPLICIT DigitsGeneratedEvent,
	telephonyTonesGeneratedEvent			[ 3] IMPLICIT TelephonyTonesGeneratedEvent,
	serviceCompletionFailure		 	[ 4] IMPLICIT ServiceCompletionFailureEvent}

MediaAttachmentEvents ::= CHOICE
{	mediaAttached 			[ 0] IMPLICIT MediaAttachedEvent,
	mediaDetached 			[ 1] IMPLICIT MediaDetachedEvent}

PhysicalDeviceFeatureEvents ::= CHOICE
{	buttonInformation 		[ 0] IMPLICIT ButtonInformationEvent,
	buttonPress		[ 1] IMPLICIT ButtonPressEvent,
	displayUpdated		[ 2] IMPLICIT DisplayUpdatedEvent,
	hookswitch		[ 3] IMPLICIT HookswitchEvent,
	lampMode		[ 4] IMPLICIT LampModeEvent,
	messageWaiting		[ 5] IMPLICIT MessageWaitingEvent,
	microphoneGain		[ 6] IMPLICIT MicrophoneGainEvent,
	microphoneMute		[ 7] IMPLICIT MicrophoneMuteEvent,
	ringerStatus		[ 8] IMPLICIT RingerStatusEvent,
	speakerMute		[ 9] IMPLICIT SpeakerMuteEvent,
	speakerVolume		[10] IMPLICIT SpeakerVolumeEvent}

LogicalDeviceFeatureEvents ::= CHOICE
{	agentBusy		[ 0] IMPLICIT AgentBusyEvent,
	agentLoggedOn		[ 1] IMPLICIT AgentLoggedOnEvent,
	agentLoggedOff		[ 2] IMPLICIT AgentLoggedOffEvent,
	agentNotReady		[ 3] IMPLICIT AgentNotReadyEvent,
	agentReady		[ 4] IMPLICIT AgentReadyEvent,
	agentWorkingAfterCall		[ 5] IMPLICIT AgentWorkingAfterCallEvent,
	autoAnswer		[ 6] IMPLICIT AutoAnswerEvent,
	autoWorkMode		[ 7] IMPLICIT AutoWorkModeEvent,
	callBack		[ 8] IMPLICIT CallBackEvent,
	callBackMessage		[ 9] IMPLICIT CallBackMessageEvent,
	callerIDStatus		[10] IMPLICIT CallerIDStatusEvent,
	doNotDisturb		[11] IMPLICIT DoNotDisturbEvent,
	forwarding		[12] IMPLICIT ForwardingEvent,
	routeingMode		[13] IMPLICIT RouteingModeEvent}

DeviceMaintenanceEvents ::= CHOICE
{	backInService		[ 0] IMPLICIT BackInServiceEvent,
	deviceCapabilityChanged		[ 1] IMPLICIT DeviceCapsChangedEvent,
	outOfService		[ 2] IMPLICIT OutOfServiceEvent}

VoiceUnitEvents ::= CHOICE
{	play		[ 0] IMPLICIT PlayEvent,
	record     	 	[ 1] IMPLICIT RecordEvent,
	review     	 	[ 2] IMPLICIT ReviewEvent,
	stop       	 	[ 3] IMPLICIT StopEvent,
	suspendPlay 	 	[ 4] IMPLICIT SuspendPlayEvent,
	suspendRecord	 	[ 5] IMPLICIT SuspendRecordEvent,
	voiceAttributesChange		[ 6] IMPLICIT VoiceAttributesChangeEvent}

VendorSpecEvents::= CHOICE
{	privateEvent		[ 0] IMPLICIT PrivateEvent}		


ButtonInformationEvent ::= SEQUENCE
{       device          SubjectDeviceID,
        button          ButtonID,
        buttonLabel             IA5String (SIZE(0..64))         OPTIONAL,
        buttonAssociatedNumber          DeviceID                OPTIONAL,
        buttonPressIndicator            BOOLEAN         OPTIONAL,
        extensions              CSTACommonArguments             OPTIONAL}

DisplayUpdatedEvent ::= SEQUENCE
{       device                  SubjectDeviceID,
        displayID                       DisplayID               OPTIONAL,
        logicalRows                     INTEGER,
        logicalColumns                  INTEGER,
        physicalRows                    [0] IMPLICIT INTEGER            OPTIONAL,
        physicalColumns                 [1] IMPLICIT INTEGER            OPTIONAL,
        physicalBaseRowNumber                   [2] IMPLICIT INTEGER            OPTIONAL,
        physicalBaseColumnNumber                        [3] IMPLICIT INTEGER            OPTIONAL,
        characterSet                    CharacterSet            OPTIONAL,
        contentsOfDisplay                       IA5String,
        extensions                      CSTACommonArguments             OPTIONAL}

MessageWaitingEvent ::= SEQUENCE
{       targetDevice            SubjectDeviceID,
        deviceForMessage                DeviceID                OPTIONAL,
        messageWaitingOn                BOOLEAN,
        extensions              CSTACommonArguments             OPTIONAL}

DeviceCapsChangedEvent ::= SEQUENCE
{       device                  SubjectDeviceID,
        cause                   EventCause              OPTIONAL,
        extensions              CSTACommonArguments     OPTIONAL}

OutOfServiceEvent ::= SEQUENCE
{       device                  SubjectDeviceID,
        cause                   EventCause              OPTIONAL,
        extensions              CSTACommonArguments     OPTIONAL}

BackInServiceEvent ::= SEQUENCE
{       device                  SubjectDeviceID,
        cause                   EventCause              OPTIONAL,
        extensions              CSTACommonArguments     OPTIONAL}

RouteingModeEvent ::= SEQUENCE
{       device          SubjectDeviceID,
        routeingMode            BOOLEAN,
        extensions              CSTACommonArguments             OPTIONAL}

ForwardingEvent ::= SEQUENCE
{       device          SubjectDeviceID,
        forwardingType          ForwardingType          OPTIONAL,
        forwardStatus           BOOLEAN,
        forwardTo               DeviceID                OPTIONAL,
        forwardDefault          ForwardDefault          OPTIONAL,
        ringCount               INTEGER (1..100)                OPTIONAL,
        extensions              CSTACommonArguments             OPTIONAL}

DoNotDisturbEvent ::= SEQUENCE
{       device          SubjectDeviceID,
        doNotDisturbOn          BOOLEAN,
        callOrigination         CallOrigination         OPTIONAL,
        callingDeviceList               SEQUENCE OF DeviceID            OPTIONAL,
        extensions              CSTACommonArguments             OPTIONAL}

CallerIDStatusEvent ::= SEQUENCE
{       device          DeviceID,
        callerIDProvided                BOOLEAN,
        extensions              CSTACommonArguments             OPTIONAL}

CallBackMessageEvent ::= SEQUENCE
{       originatingDevice               SubjectDeviceID,
        targetDevice            SubjectDeviceID,
        callBackMsgSetCanceled          BOOLEAN,
        extensions              CSTACommonArguments             OPTIONAL}

CallBackEvent ::= SEQUENCE
{       originatingDevice       SubjectDeviceID,
        targetDevice            SubjectDeviceID,
        callBackSetCanceled     BOOLEAN,
        extensions              CSTACommonArguments     OPTIONAL}

AutoWorkModeEvent ::= SEQUENCE
{       invokingDevice          SubjectDeviceID,
        autoWorkOn              BOOLEAN,
        autoWorkInterval                INTEGER,
        extensions              CSTACommonArguments             OPTIONAL}

AutoAnswerEvent ::= SEQUENCE
{       invokingDevice          SubjectDeviceID,
        autoAnswerOn            BOOLEAN,
        numberOfRings           INTEGER         OPTIONAL,
        extensions              CSTACommonArguments             OPTIONAL}

AgentWorkingAfterCallEvent ::= SEQUENCE
{       agentDevice             SubjectDeviceID,
        agentID         AgentID                 OPTIONAL,
        acdGroup                DeviceID                        OPTIONAL,
        pendingAgentState               [2] IMPLICIT ENUMERATED
                {notReady       (0),
                ready   (1),
                null    (2)}                    OPTIONAL,
        cause           [3] IMPLICIT EventCause                 OPTIONAL,
        extensions              CSTACommonArguments                     OPTIONAL}

AgentReadyEvent ::= SEQUENCE
{       agentDevice             SubjectDeviceID,
        agentID         AgentID         OPTIONAL,
        acdGroup                DeviceID                OPTIONAL,
        cause           EventCause              OPTIONAL,
        extensions              CSTACommonArguments             OPTIONAL}

AgentNotReadyEvent ::= SEQUENCE
{       agentDevice             SubjectDeviceID,
        agentID         AgentID         OPTIONAL,
        acdGroup                DeviceID                OPTIONAL,
        cause           EventCause              OPTIONAL,
        extensions              CSTACommonArguments             OPTIONAL}

AgentLoggedOnEvent ::= SEQUENCE
{       agentDevice             SubjectDeviceID,
        agentID         [2] IMPLICIT AgentID                    OPTIONAL,
        acdGroup                DeviceID                        OPTIONAL,
        agentPassword           [3] IMPLICIT AgentPassword                      OPTIONAL,
        cause           EventCause                      OPTIONAL,
        extensions              CSTACommonArguments                     OPTIONAL}

AgentLoggedOffEvent ::= SEQUENCE
{       agentDevice             SubjectDeviceID,
        agentID         [2] IMPLICIT AgentID                    OPTIONAL,
        acdGroup                DeviceID                        OPTIONAL,
        agentPassword           [3] IMPLICIT AgentPassword                      OPTIONAL,
        cause           EventCause                      OPTIONAL,
        extensions              CSTACommonArguments                     OPTIONAL}

AgentBusyEvent ::= SEQUENCE
{       agentDevice             SubjectDeviceID,
        agentID         AgentID                 OPTIONAL,
        acdGroup                DeviceID                        OPTIONAL,
        pendingAgentState               [2] IMPLICIT PendingAgentState                  OPTIONAL,
        cause           [3] IMPLICIT EventCause                 OPTIONAL,
        extensions              CSTACommonArguments                     OPTIONAL}

PrivateEvent  ::= BIT STRING

CSTAObject ::= CHOICE
        {deviceObject   DeviceID,
         callObject     ConnectionID}

CallingDeviceID ::= [APPLICATION 1] CHOICE
        {deviceIdentifier               DeviceID,
         notKnown               [7] IMPLICIT            NULL}

CalledDeviceID ::= [APPLICATION 2] CHOICE
        {deviceIdentifier               DeviceID,
         notKnown               [7] IMPLICIT            NULL}

SubjectDeviceID ::= [APPLICATION 3] CHOICE
        {deviceIdentifier               DeviceID,
         notKnown               [7] IMPLICIT            NULL}


RedirectionDeviceID ::= [APPLICATION 4] CHOICE
        {numberdialed           DeviceID,
         notKnown               [7] IMPLICIT            NULL,
         notRequired            [8] IMPLICIT            NULL,
         notSpecified           [9] IMPLICIT            NULL}

AssociatedCallingDeviceID       ::= [APPLICATION 5] CHOICE
        {deviceIdentifier               DeviceID,
         notKnown               [7] IMPLICIT            NULL}

AssociatedCalledDeviceID ::= [APPLICATION 6] CHOICE
        {deviceIdentifier               DeviceID,
         notKnown               [7] IMPLICIT            NULL}

NetworkCallingDeviceID  ::= [APPLICATION 7] CHOICE
        {deviceIdentifier               DeviceID,
         notKnown               [7] IMPLICIT            NULL}

NetworkCalledDeviceID ::= [APPLICATION 8] CHOICE
        {deviceIdentifier               DeviceID,
         notKnown               [7] IMPLICIT            NULL}

DeviceID ::= SEQUENCE
{       deviceIdentifier                CHOICE
        {       dialingNumber           [0] IMPLICIT            NumberDigits,
                deviceNumber            [1] IMPLICIT            DeviceNumber,
                implicitPublic          [2] IMPLICIT            NumberDigits,
                explicitPublic          [3]             PublicTON,
                implicitPrivate         [4] IMPLICIT            NumberDigits,
                explicitPrivate         [5]             PrivateTON,
                other           [6] IMPLICIT            OtherPlan},
        mediaCallCharacteristics                        MediaCallCharacteristics                        OPTIONAL}

PublicTON ::= CHOICE
        {       unknown         [0] IMPLICIT            IA5String,
                international           [1] IMPLICIT            IA5String,
                national                [2] IMPLICIT            IA5String,
                networkspecific         [3] IMPLICIT            IA5String,
                subscriber              [4] IMPLICIT            IA5String,
                abbreviated             [5] IMPLICIT            IA5String       }

PrivateTON ::= CHOICE
        {       unknown         [0] IMPLICIT            IA5String,
                level3RegionalNumber            [1] IMPLICIT            IA5String,
                level2RegionalNumber            [2] IMPLICIT            IA5String,
                level1RegionalNumber            [3] IMPLICIT            IA5String,
                pTNSpecificNumber               [4] IMPLICIT            IA5String,
                localNumber             [5] IMPLICIT            IA5String,
                abbreviated             [6] IMPLICIT            IA5String       }

OtherPlan ::= OCTET STRING                      -- Allows future expansion to cover other numbering
                        -- plans

NumberDigits    ::= IA5String

DeviceNumber    ::= INTEGER

SuspendPlayEvent ::= SEQUENCE
{       connection              ConnectionID,
        message         MessageID,
        length          [0] IMPLICIT INTEGER            OPTIONAL,
        currentPosition         [1] IMPLICIT INTEGER            OPTIONAL,
        cause           EventCause              OPTIONAL,
        servicesPermitted               ServicesPermitted               OPTIONAL,
        extensions              CSTACommonArguments             OPTIONAL}

SuspendRecordEvent ::= SEQUENCE
{       connection              ConnectionID,
        message         MessageID,
        length          [0] IMPLICIT INTEGER            OPTIONAL,
        currentPosition         [1] IMPLICIT INTEGER            OPTIONAL,
        cause           EventCause              OPTIONAL,
        servicesPermitted               ServicesPermitted               OPTIONAL,
        extensions              CSTACommonArguments             OPTIONAL}

VoiceAttributesChangeEvent ::= SEQUENCE
{       connection              ConnectionID,
        message         MessageID,
        playVolume              [0] Volume                      OPTIONAL,
        recordingGain           [1] IMPLICIT INTEGER (0 .. 100)                 OPTIONAL,
        speed           [2] IMPLICIT INTEGER                    OPTIONAL,
        currentPosition         [3] IMPLICIT INTEGER                    OPTIONAL,
        cause           EventCause                      OPTIONAL,
        servicesPermitted               ServicesPermitted                       OPTIONAL,
        extensions              CSTACommonArguments                     OPTIONAL}

ReviewEvent ::= BIT STRING
{       length                  ( 0),   -- optional parameters
        currentPosition         ( 1),   -- optional parameters
        cause                   ( 2),   -- optional parameters
        servicesPermitted       ( 3),   -- optional parameters
        privateData             ( 4)}   -- optional parameters

StopEvent ::= BIT STRING
{       length                  ( 0),   -- optional parameters
        currentPosition         ( 1),   -- optional parameters
        speed                   ( 2),   -- optional parameters
        cause                   ( 3),   -- optional parameters
        servicesPermitted       ( 4),   -- optional parameters
        privateData             ( 5)}   -- optional parameters

PlayEvent ::=SEQUENCE
{       connection              ConnectionID,
        message         MessageID,
        length          [0] IMPLICIT INTEGER                    OPTIONAL,
        currentPosition         [1] IMPLICIT INTEGER                    OPTIONAL,
        speed           [2] IMPLICIT INTEGER                    OPTIONAL,
        cause           EventCause                      OPTIONAL,
        servicesPermitted               ServicesPermitted                       OPTIONAL,
        extensions              CSTACommonArguments                     OPTIONAL}

RecordEvent ::= SEQUENCE
{       connection              ConnectionID,
        message         MessageID,
        length          [0] IMPLICIT INTEGER            OPTIONAL,
        currentPosition         [1] IMPLICIT INTEGER            OPTIONAL,
        cause           EventCause              OPTIONAL,
        servicesPermitted               ServicesPermitted               OPTIONAL,
        extensions              CSTACommonArguments             OPTIONAL}

SpeakerMuteEvent ::= SEQUENCE
{       invokingDevice          SubjectDeviceID,
        auditoryApparatus               AuditoryApparatusID,
        speakerMuteOn           BOOLEAN,
        extensions              CSTACommonArguments             OPTIONAL}

SpeakerVolumeEvent ::= SEQUENCE
{       invokingDevice          SubjectDeviceID,
        auditoryApparatus               AuditoryApparatusID,
        speakerVolume           Volume,
        extensions              CSTACommonArguments             OPTIONAL}

RingerStatusEvent ::= SEQUENCE
{       device          SubjectDeviceID,
        ringer          RingerID,
        ringMode                RingMode                        OPTIONAL,
        ringCount               [0] IMPLICIT INTEGER (0..1000)                  OPTIONAL,
        ringPattern             [1] IMPLICIT INTEGER                    OPTIONAL,
        ringVolume              [2] Volume                      OPTIONAL,
        extensions              CSTACommonArguments                     OPTIONAL}

MicrophoneMuteEvent ::= SEQUENCE
{       invokingDevice          SubjectDeviceID,
        auditoryApparatus               AuditoryApparatusID,
        microphoneMuteOn                BOOLEAN,
        extensions              CSTACommonArguments             OPTIONAL}

MicrophoneGainEvent ::= SEQUENCE
{       invokingDevice          SubjectDeviceID,
        auditoryApparatus               AuditoryApparatusID,
        microphoneGain          MicrophoneGain,
        extensions              CSTACommonArguments             OPTIONAL}

AuditoryApparatusList ::= SEQUENCE OF
        SEQUENCE {
                auditoryApparatus AuditoryApparatusID,
                auditoryApparatusType ENUMERATED {
                        speakerphone (0),
                        handset (1),
                        headset (2),
                        speakerOnlyPhone (3),
                        other (4)
                        },
                speaker BIT STRING {
                        present (0),
                        volumeSettable (1),
                        volumeReadable (2),
                        muteSettable (3),
                        muteReadable (4)
                        },
                microphone BIT STRING {
                        present (0),
                        gainSettable (1),
                        gainReadable (2),
                        muteSettable (3),
                        muteReadable (4)
                        },
                hookswitch BIT STRING {
                        hookswitchSettable (0),
                        hookswitchOnHook (1)
                        },
                hookswitchID HookswitchID
                }

AuditoryApparatusID ::= OCTET STRING (SIZE(0..4))

ButtonID ::= OCTET STRING (SIZE(0..4))

CharacterSet ::= ENUMERATED
{       ascii           (0),
        unicode         (1),
        proprietary     (2)}

DisplayID ::= OCTET STRING (SIZE(0..4))

HookswitchID ::= OCTET STRING (SIZE(0..4))

LampBrightness ::= ENUMERATED
{       unspecified     (0),
        dim             (1),
        bright          (2)}

LampColor ::= INTEGER
{       noColor (0),
        red     (1),
        yellow  (2),
        green   (3),
        blue    (4),
        unknown (5)} (0..100)

LampID ::= OCTET STRING (SIZE(0..4))

LampMode ::= INTEGER
{       brokenFlutter   (0),
        flutter         (1),
        off             (2),
        steady          (3),
        wink            (4),
        unknown         (5)} (0..100)

MicrophoneGain ::= CHOICE
{       micGainAbs      MicGainAbs,
        micGainInc      MicGainInc}

MicGainInc ::= ENUMERATED
{       increment       (0),
        decrement       (1)}

MicGainAbs ::= INTEGER (0..100)

RingerID ::= OCTET STRING (SIZE(0..4))

RingMode ::= ENUMERATED
{       ringing         (0),
        notRinging      (1)}

Volume ::= CHOICE
{       volAbs   VolAbs,
        volInc   VolInc}

VolInc ::= ENUMERATED
{       increment       (0),
        decrement       (1)}

VolAbs ::= INTEGER (0..100)

CSTACommonArguments ::= [APPLICATION 30] IMPLICIT SEQUENCE
        {security       [0] IMPLICIT    CSTASecurityData                OPTIONAL,
         privateData    [1] IMPLICIT    SEQUENCE OF CSTAPrivateData     OPTIONAL }

CSTAPrivateData ::= CHOICE
{       string  OCTET STRING,
        private NULL}   -- The actual encoding is added here,
                        -- replacing NULL with another valid ASN.1 type.

CSTASecurityData ::= SEQUENCE
{       messageSequenceNumber   [0] IMPLICIT INTEGER                    OPTIONAL,
        timestamp               TimeInfo                OPTIONAL,
        securityInfo            SecurityInfo            OPTIONAL}

SecurityInfo ::= CHOICE
{       string  OCTET STRING,
        private NULL}   -- The actual encoding is added here,
                        -- replacing NULL with another valid ASN.1 type.

TimeInfo ::= GeneralizedTime

LampModeEvent ::= SEQUENCE
{       device          SubjectDeviceID,
        lamp            LampID,
        lampLabel               OCTET STRING (SIZE(0..64))                      OPTIONAL,
        lampMode                LampMode,
        lampBrightness          LampBrightness                  OPTIONAL,
        lampColor               LampColor                       OPTIONAL,
        extensions              CSTACommonArguments                     OPTIONAL}

MediaAttachedEvent ::= SEQUENCE
{       mediaConnection                 ConnectionID,
        mediaDevice                     SubjectDeviceID,
        mediaServiceType                        MediaServiceType,
        mediaServiceVersion                     INTEGER                                 OPTIONAL,
        mediaServiceInstanceID                  [0] IMPLICIT MediaServiceInstanceID                             OPTIONAL,
        mediaStreamID                   [1] IMPLICIT MediaStreamID                              OPTIONAL,
        mediaCallCharacteristics                        [2] IMPLICIT MediaCallCharacteristics                           OPTIONAL,
        callCharacteristics                     CallCharacteristics                             OPTIONAL,
        localConnectionInfo                     LocalConnectionState                            OPTIONAL,
        mediaConnectionInfo                     [3] IMPLICIT ConnectionInformation                              OPTIONAL,
        extension                       CSTACommonArguments                             OPTIONAL}

MediaDetachedEvent ::= SEQUENCE
{       mediaConnection                         ConnectionID,
        mediaDevice                     SubjectDeviceID,
        mediaServiceType                        MediaServiceType,
        mediaServiceVersion                     INTEGER                                         OPTIONAL,
        mediaServiceInstanceID                  [0] IMPLICIT MediaServiceInstanceID                             OPTIONAL,
        mediaStreamID                   [1] IMPLICIT MediaStreamID                              OPTIONAL,
        mediaCallCharacteristics                        [2] IMPLICIT MediaCallCharacteristics                           OPTIONAL,
        callCharacteristics                     CallCharacteristics                             OPTIONAL,
        localConnectionInfo                     LocalConnectionState                            OPTIONAL,
        mediaConnectionInfo                     [3] IMPLICIT ConnectionInformation                              OPTIONAL,
        extension                       CSTACommonArguments                             OPTIONAL}

ButtonPressEvent ::= SEQUENCE
{       device                  SubjectDeviceID,
        button                  ButtonID,
        buttonLabel             IA5String (SIZE(0..64))                 OPTIONAL,
        buttonAssociatedNumber          DeviceID                        OPTIONAL,
        extensions              CSTACommonArguments                     OPTIONAL}

UserData ::= [APPLICATION 29] OCTET STRING (SIZE(0..256))

AuthCode ::= OCTET STRING (SIZE(0..32))

CorrelatorData ::= OCTET STRING (SIZE(0..32))

CallCharacteristics ::= BIT STRING
{       acdCall         (0),
        priorityCall            (1),
        maintainanceCall                (2),
        directAgent             (3),
        assistCall              (4),
        voiceUnitCall           (5)}

CallQualifyingData ::= OCTET STRING (SIZE(0..32))

MediaServiceType ::= ENUMERATED
{	cstaVoiceUnit				( 0),
	dataModem				( 1),
	digitalDataIsochronousIeee1394				( 2),
	digitalDataIsochronousGeoport				( 3),
	digitalDataIsochronousIeeeAtm				( 4),
	digitalDataIsochronousIeeeIsdn				( 5),
	digitalDataApi				( 6),
	ectfS100MediaServicesDefault				( 7),
	ectfS100MediaServicesAppServices				( 8),
	cstaIVRScript1				( 9),
	cstaIVRScript2				(10),
	cstaIVRScript3				(11),
	cstaIVRScript4				(12),
	cstaIVRScript5				(13),
	cstaIVRScript6				(14),
	cstaIVRScript7				(15),
	cstaIVRScript8				(16),
	cstaIVRScript9				(17),
	cstaIVRScript10				(18),
	liveSoundCaptureAnalog				(19),
	liveSoundTransmitAnalog				(20),
	liveSoundCaptureIeee1394				(21),
	liveSoundTransmitIeee1394				(22),
	liveSoundCaptureTransmitGeoport				(23),
	liveSoundCaptureTransmitAtm				(24),
	liveSoundCaptureTransmitISDN				(25),
	soundCaptureTransmitADPCM				(26),
	soundCaptureTransmitApi				(27),
	usb				(28),
	sfSpecific1				(29),
	sfSpecific2				(30),
	sfSpecific3				(31),
	sfSpecific4				(32),
	sfSpecific5				(33),
	sfSpecific6				(34),
	sfSpecific7				(35),
	sfSpecific8				(36),
	sfSpecific9				(37),
	sfSpecific10				(38)}

MediaStreamID ::= OCTET STRING 
MediaServiceInstanceID ::= OCTET STRING (SIZE(0..64)) 

ConnectionInformation ::= SEQUENCE
{	flowDirection		ENUMERATED
			{	transmit 		(0),
				receive  		(1),
				transmitAndReceive 	(2)	
			} OPTIONAL,
	numberOfChannels		INTEGER	DEFAULT 1	}

ConnectionMode ::= ENUMERATED
{	consultationConference	 		(0),
	consultationConferenceHold		 	(1),
	deflect			(2),
	directedPickup			(3),
	join			(4),
	singleStepConference			(5),
	singleStepConferenceHold			(6),
	singleStepTransfer			(7),
	transfer 			(8),
	direct 			(9)}

ConnectionModeBMap ::= BIT STRING
{	consultationConference 			(0),
	consultationConferenceHold 			(1),
	deflect			(2),
	directedPickup			(3),
	join			(4),
	singleStepConference			(5),
	singleStepConferenceHold			(6),
	singleStepTransfer			(7),
	transfer 			(8),
	direct 			(9)}

MediaCallCharacteristics ::= SEQUENCE 
{	mediaClass 		MediaClass,
	connectionRate		[0] IMPLICIT INTEGER OPTIONAL,
					-- value 0 indicates that 
					-- the connection rate is 
					-- unknown
	bitRate		[1] IMPLICIT ENUMERATED 
				{	constant (0),
					variable (1)} DEFAULT constant,
	delayTolerance 			[2] IMPLICIT INTEGER OPTIONAL,
	switchingSubDomainCCIEType		 	[3] IMPLICIT ENUMERATED {
						isdn 	(0),
						atm 	(1),
						isoEthernet 	(2),
						rsvp	(3),
						other	(4)
						} OPTIONAL,
	switchingSubDomainInformationElements OCTET STRING OPTIONAL
	-- is mandatory, if the switchingSubDomainCCIEType is present,
	-- should be ignored otherwise
	}

MediaClass ::= BIT STRING 
{	voice		(0),
	data		(1),
	image		(2),
	audio		(4),
	other		(3),
	notKnown	 	(5)}

CallLinkageDataList ::= SEQUENCE
{       newCallLinkageData              CallLinkageData,
        oldCallLinkageData              CallLinkageData }

CallLinkageData ::= SEQUENCE
{      globalCallData                           GlobalCallData,
       threadData                               ThreadData           OPTIONAL      }

ForwardingType ::= ENUMERATED
{	forwardImmediate	 	(0),
	forwardBusy   		(1),
	forwardNoAns  	 	(2),
	forwardDND  	 	(9),
	forwardBusyInt 	 	(3),
	forwardBusyExt  		(4),
	forwardNoAnsInt 	 	(5),
	forwardNoAnsExt 	 	(6),
	forwardImmInt  		(7),
	forwardImmExt  	 	(8),
	forwardDNDInt  	 	(10),
	forwardDNDExt  	 	(11)}

ForwardDefault ::= ENUMERATED
{	forwardingTypeAndForwardDN 			(0),
	forwardingType 			(1),
	forwardDN 			(2)}

PendingAgentState ::= ENUMERATED
{	agentNotReady		(0),
	agentNull		(1),
	agentReady		(2),
	agentWorkingAfterCall		(3)}

ChargingInfo ::= SEQUENCE
        {       numberUnits             NumberUnits,
                typeOfChargingInfo      ENUMERATED
                {       subTotal        (0),
                        total           (1)
                }
        }


NumberUnits ::= CHOICE
{       numberOfChargeUnits             [0] IMPLICIT NumberOfChargingUnits,
        numberOfCurrencyUnits           [1] IMPLICIT NumberOfCurrencyUnits}


NumberOfChargingUnits ::= SEQUENCE OF SEQUENCE
        {       chargingUnits   INTEGER,
                typeOfUnits     OCTET STRING OPTIONAL }

NumberOfCurrencyUnits ::= SEQUENCE
{       currencyType            OCTET STRING,           -- size 0 indicates default currency
        currencyAmount          INTEGER,
        currencyMultiplier              ENUMERATED
        {       oneThousandth           (0),
                oneHundredth            (1),
                oneTenth                (2),
                one             (3),
                ten             (4),
                hundred                 (5),
                thousand                (6)
        }
}

CallOrigination ::= BIT STRING
{       internal        (0),
        external        (1)}

MonitorObject ::= CSTAObject  --corrected 12/2000

MonitorCrossRefID ::= [APPLICATION 21] IMPLICIT OCTET STRING (SIZE(0..4))

MonitorType ::= ENUMERATED
        {       call                    (0),
                device                  (1)     }

MonitorMediaClass ::= BIT STRING
{       voice           (0),
        data            (1),
        image           (2),
        audio           (4),
        other           (3)}

NetworkCapability ::= SEQUENCE
        {       networkType ENUMERATED
                {       iSDNPublic      (0),
                        nonISDNPublic   (1),
                        iSDNPrivate     (2),
                        nonISDNPrivate  (3),
                        other           (4)             },
                eventsProvided BIT STRING
                {       bridged                         (0),
                        callCleared                     (1),
                        conferenced                     (2),
                        connectionCleared               (3),
                        delivered                       (4),
                        digitsDialed                    (5),
                        diverted                        (6),
                        established                     (7),
                        failed                          (8),
                        held                            (9),
                        networkCapabilitiesChange       (10),
                        networkReached                  (11),
                        offered                         (12),
                        originated                      (13),
                        queued                          (14),
                        retrieved                       (15),
                        serviceInitiated                (16),
                        transferred                     (17)    } OPTIONAL}

ProgressIndicator ::= SEQUENCE
        {       progressLocation ENUMERATED
                {       user (0),
                        privateNetServingLocal (1),
                        publicNetServingLocal (2),
                        transitNetwork (3),
                        publicNetServingRemote (4),
                        privateNetServingRemote (5),
                        localInterface (6),
                        internationalNetwork (7),
                        networkBeyondInterwk (8),
                        other (9)                       },
                progressDescription ENUMERATED
                {       iSDNProgressDesc (0),
                        qSIGProgressDesc (1),
                        other            (2)    }}

ThreadData ::= SEQUENCE
{      threadSwitchingSubDomainName                                     IA5String (SIZE(1..64))     OPTIONAL,
       threadLinkageID                                                  ThreadLinkageID,
       threadIDTimeStamp                                                TimeInfo                    OPTIONAL      }

ThreadLinkageID ::= CHOICE
{      subDomainThreadID                                [0] IMPLICIT OCTET STRING (SIZE(1..8)),
       globallyUniqueThreadID                           [1] IMPLICIT OCTET STRING (SIZE(1..16))  }

GlobalCallData ::= SEQUENCE
{      globalCallSwitchingSubDomainName                                 IA5String (SIZE(1..64))     OPTIONAL,
       globalCallLinkageID                                              GlobalCallLinkageID,
       callLinkageIDTimestamp                                           TimeInfo                    OPTIONAL      }

GlobalCallLinkageID ::= CHOICE
{      subDomainCallLinkageID                           [0] IMPLICIT OCTET STRING (SIZE(1..8)),
       globallyUniqueCallLinkageID                              [1] IMPLICIT OCTET STRING (SIZE(1..16))  }

ConnectionList ::= SEQUENCE OF SEQUENCE
        {       newConnection [0] ConnectionID                  OPTIONAL,
                oldConnection [1] ConnectionID                  OPTIONAL,
                endpoint [2] CHOICE
                {       deviceID        DeviceID,
                        notKnown        NULL}    OPTIONAL,
                associatedNID [3] CHOICE
                {       deviceID        DeviceID,
                        notKnown        NULL}    OPTIONAL,
                resultingConnectionInfo ConnectionInformation OPTIONAL}

LocalConnectionState ::= [APPLICATION 14] IMPLICIT ENUMERATED
        {       null    (0),
                initiated       (1),
                alerting        (2),
                connected       (3),
                hold    (4),
                queued  (5),
                fail    (6)}

AccountInfo ::= OCTET STRING (SIZE(0..32))

TelephonyTone ::= ENUMERATED
{	beep		( 0),
	billing		( 1),
	busy		( 2),
	carrier		( 3),
	confirmation		( 4),
	dial		( 5),
	faxCNG		( 6),
	hold		( 7),
	howler		( 8),
	intrusion		( 9),
	modemCNG		(10),
	park		(11),
	recordWarning		(12),
	reorder		(13),
	ringback		(14),
	silence		(15),
	sitVC		(16),
	sitIC		(17),
	sitRO		(18),
	sitNC		(19),
	switchSpec0		(20),
	switchSpec1		(21),
	switchSpec2		(22),
	switchSpec3		(23),
	switchSpec4		(24),
	switchSpec5		(25),
	switchSpec6		(26),
	switchSpec7		(27),
	switchSpec8		(28),
	switchSpec9		(29),
	switchSpec10		(30),
	switchSpec11		(31),
	switchSpec12		(32),
	switchSpec13		(33),
	switchSpec14		(34),
	switchSpec15		(35),
	switchSpec16		(36),
	switchSpec17		(37),
	switchSpec18		(38),
	switchSpec19		(39),
	switchSpec20		(40),
	switchSpec21		(41),
	switchSpec22		(42),
	switchSpec23		(43),
	switchSpec24		(44),
	switchSpec25		(45),
	switchSpec26		(46),
	switchSpec27		(47),
	switchSpec28		(48),
	switchSpec29		(49),
	switchSpec30		(50),
	switchSpec31		(51),
	switchSpec32		(52),
	switchSpec33		(53),
	switchSpec34		(54),
	switchSpec35		(55),
	switchSpec36		(56),
	switchSpec37		(57),
	switchSpec38		(58),
	switchSpec39		(59),
	switchSpec40		(60),
	switchSpec41		(61),
	switchSpec42		(62),
	switchSpec43		(63),
	switchSpec44		(64),
	switchSpec45		(65),
	switchSpec46		(66),
	switchSpec47		(67),
	switchSpec48		(68),
	switchSpec49		(69),
	switchSpec50		(70),
	switchSpec51		(71),
	switchSpec52		(72),
	switchSpec53		(73),
	switchSpec54		(74),
	switchSpec55		(75),
	switchSpec56		(76),
	switchSpec57		(77),
	switchSpec58		(78),
	switchSpec59		(79),
	switchSpec60		(80),
	switchSpec61		(81),
	switchSpec62		(82),
	switchSpec63		(83),
	switchSpec64		(84),
	switchSpec65		(85),
	switchSpec66		(86),
	switchSpec67		(87),
	switchSpec68		(88),
	switchSpec69		(89),
	switchSpec70		(90),
	switchSpec71		(91),
	switchSpec72		(92),
	switchSpec73		(93),
	switchSpec74		(94),
	switchSpec75		(95),
	switchSpec76		(96),
	switchSpec77		(97),
	switchSpec78		(98),
	switchSpec79		(99),
	switchSpec80		(100),
	switchSpec81		(101),
	switchSpec82		(102),
	switchSpec83		(103),
	switchSpec84		(104),
	switchSpec85		(105),
	switchSpec86		(106),
	switchSpec87		(107),
	switchSpec88		(108),
	switchSpec89		(109),
	switchSpec90		(110),
	switchSpec91		(111),
	switchSpec92		(112),
	switchSpec93		(113),
	switchSpec94		(114),
	switchSpec95		(115),
	switchSpec96		(116),
	switchSpec97		(117),
	switchSpec98		(118),
	switchSpec99		(119),
	switchSpec100		(120)}

CSTAapdu ::= CHOICE
{svcRequest	ROIVapdu,
 svcResult	RORSapdu,
 svcError	ROERapdu,
 svcReject	RORJapdu }

ROIVapdu ::= [1] IMPLICIT SEQUENCE
{invokeID	  INTEGER,
 serviceID	  INTEGER,
 serviceArgs	  ANY DEFINED BY serviceID }

RORSapdu ::= [2] IMPLICIT SEQUENCE
{invokeID	  INTEGER,     -- no. de sequencia
 result            SEQUENCE
   {serviceID	  	INTEGER,
    serviceResult	ANY DEFINED BY serviceID OPTIONAL } }

ROERapdu ::= [3] IMPLICIT SEQUENCE
{invokeID	 INTEGER,
 unknown	 INTEGER,
 typeOfError     UniversalFailure }

RORJapdu ::= [4] IMPLICIT SEQUENCE
{invokeID	CHOICE
   {invokeID	INTEGER,
    null	NULL },
 typeOfProblem	CHOICE
   {general	[0] IMPLICIT GeneralProblem,
    invoke	[1] IMPLICIT InvokeProblem,
    result	[2] IMPLICIT ReturnResultProblem,
    error	[3] IMPLICIT ReturnErrorProblem } }

GeneralProblem ::= ENUMERATED
{unrecognizedAPDU	(0),
 mistypedAPDU		(1),
 badlyStructuredAPDU	(2) }

InvokeProblem ::= ENUMERATED
{duplicateInvocation	   (0),
 unrecognizedOperation	   (1),
 mistypedArgument	   (2),
 resourceLimitation	   (3),
 initiatorReleasing	   (4),
 unrecognizedLinkedID	   (5),	-- Not used in CSTA
 linkedResponseUnexpected  (6), -- "    "    "    "
 unexepectedChildOperation (7)  -- "    "    "    " -- }

ReturnResultProblem ::= ENUMERATED
{unrecognizedInvocation		(0),
 resultResponseUnexpected	(1),
 mistypedResult			(2) }

ReturnErrorProblem ::= ENUMERATED
{unrecognizedInvocation		(0),
 errorResponseUnexpected	(1),
 unrecognizedError		(2),
 unexpectedError		(3),
 mistypedParameter		(4) }

-- CSTA codes. Generate a C enum in order to be used as ServiceID values
-- in ROIVapdu
CSTAServices ::= ENUMERATED {
	alternateCallSID	(1),
	answerCallSID		(2),
	callCompletionSID	(3),
	clearCallSID		(4),
	clearConnectionSID	(5),
	conferenceCallSID	(6),
	consultationCallSID	(7),
	divertCallSID		(8),
	holdCallSID		(9),
	makeCallSID		(10),
	makePredictiveCallSID	(11),
	queryDeviceSID		(12),
	reconnectCallSID	(13),
	retrieveCallSID		(14),
	setFeatureSID		(15),
	transferCallSID		(16),
	associateDataSID	(17),
	parkCallSID		(18),
	sendDTMFTonesSID	(19),
	singleStepConfSID	(20),
	cSTAeventReportSID	(21),
	routeRequestSID		(31),
	reRouteRequestSID	(32),
	routeSelectRequestSID	(33),
	routeUsedRequestSID	(34),
	routeEndRequestSID	(35),
	singleStepTransSID	(50),
	escapeServiceSID	(51),
	systemStatusSID		(52),
	monitorStartSID		(71),
	changeMonitorFilterSID	(72),
	monitorStopSID		(73),
	snapshotDeviceSID	(74),
	snapshotCallSID		(75),
	startDataPathSID	(110),
	stopDataPathSID		(111),
	sendDataSID		(112),
	sendMulticastDataSID	(113),
	sendBroadcastDataSID	(114),
	suspendDataPathSID	(115),
	dataPathSuspendedSID	(116),
	resumeDataPathSID	(117),
	dataPathResumedSID	(118),
	fastDataSID		(119),
	concatenateMessageSID	(500),
	deleteMessageSID	(501),
	playMessageSID		(502),
	queryVoiceAttributeSID	(503),
	repositionSID		(504),
	resumeSID		(505),
	reviewSID		(506),
	setVoiceAttributeSID	(507),
	stopSID			(508),
	suspendSID		(509),
	synthesizeMessageSID	(510),
	recordMessageSID	(511)	}

--
-- Usefull types
--

UniversalFailure ::= CHOICE
{operationalErrors                          [1] IMPLICIT        Operations,
 stateErrors                                [2] IMPLICIT        StateIncompatibility,
 systemResourceErrors                       [3] IMPLICIT        SystemResourceAvailability,
 subscribedResourceAvailabilityErrors       [4] IMPLICIT        SubscribedResourceAvailability,
 performanceErrors                          [5] IMPLICIT        PerformanceManagement,
 securityErrors                             [6] IMPLICIT        SecurityError,
 unspecifiedErrors                          [7] IMPLICIT        NULL,
 nonStandardErrors         --Matracom specs [8] IMPLICIT --     CSTAPrivateData}

Operations ::= ENUMERATED
{generic                                   (1),
requestIncompatibleWithObject              (2),
valueOutOfRange                            (3),
objectNotKnown                             (4),
invalidCallingDevice                       (5),
invalidCalledDevice                        (6),
invalidForwardingDestination               (7),
privilegeViolationOnSpecifiedDevice        (8),
privilegeViolationOnCalledDevice           (9),
privilegeViolationOnCallingDevice         (10),
invalidCSTACallIdentifier                 (11),
invalidCSTADeviceIdentifier               (12),
invalidCSTAConnectionIdentifier           (13),
invalidDestination                        (14),
invalidFeature                            (15),
invalidAllocationState                    (16),
invalidCrossRefID                         (17),
invalidObjectType                         (18),
securityViolation                         (19),
invalidCSTAApplicationCorrelator          (20),
invalidAccountCode                        (21),
invalidAuthorisationCode                  (22),
requestIncompatibleWithCallingDevice      (23),
requestIncompatibleWithCalledDevice       (24),
invalidMessageIdentifier                  (25),
messageIdentifierRequired                 (26),
mediaIncompatible                         (27)     }

StateIncompatibility ::= ENUMERATED
{generic                                  (1),
invalidObjectState                        (2),
invalidConnectionID                       (3),
noActiveCall                              (4),
noHeldCall                                (5),
noCallToClear                             (6),
noConnectionToClear                       (7),
noCallToAnswer                            (8),
noCallToComplete                          (9),
notAbleToPlay                             (10),
notAbleToResume                           (11),
endOfMessage                              (12),
beginingOfMessage                         (13),
messageSuspended                          (14)     }

SystemResourceAvailability ::= ENUMERATED
{generic                                  (1),
serviceBusy                               (2),
resourceBusy                              (3),
resourceOutOfService                      (4),
networkBusy                               (5),
networkOutOfService                       (6),
overallMonitorLimitExceeded               (7),
conferenceMemberLimitExceeded             (8)      }

SubscribedResourceAvailability ::= ENUMERATED
{generic                                  (1),
objectMonitorLimitExceeded                (2),
trunkLimitExceeded                        (3),
outstandingRequestLimitExceeded           (4)      }

PerformanceManagement ::= ENUMERATED
{generic                                  (1),
performanceLimitExceeded                  (2)      }

SecurityError ::= ENUMERATED
{unspecified                         (0),
sequenceNumberViolated               (1),
timeStampViolated                    (2),
pACViolated                          (3),
sealViolated                         (4)     }

CallControlEventIDs ::= BIT STRING
       {
	callCleared		(0),
	conferenced		(1),
	connectionCleared	(2),
	delivered		(3),
	diverted		(4),
	established		(5),
	failed			(6),
	held			(7),
	networkReached		(8),
	originated		(9),
	queued			(10),
	retrieved		(11),
	serviceInitiated	(12),
	transferred		(13),	
	digitsDialed		(14),
	bridged			(15),
	networkCapabilitiesChanged		(16),
	offered			(17)
}

CallAssociatedEventIDs ::= BIT STRING
{	callInformation			(0),
	charging			(1),
	dTMFDigitsDetected			(2),
	telephonyTonesDetected			(3),
	serviceCompletionFailure 			(4)}

MediaAttachmentEventIDs ::= BIT STRING
{	mediaAttached (0),
	mediaDetached (1)}

PhysicalDeviceFeatureEventIDs ::= BIT STRING
       {buttonInformation 			(0),
	buttonPress		(1),
	displayUpdated		(2),
	hookswitch		(3),
	lampMode		(4),
	messageWaiting		(5),
	microphoneGain		(6),
	microphoneMute		(7),
	ringerStatus		(8),
	speakerMute		(9),
	speakerVolume		(10)}

LogicalDeviceFeatureEventIDs ::= BIT STRING
{	agentBusy		( 0),
	agentLoggedOn		( 1),
	agentLoggedOff		( 2),
	agentNotReady		( 3),
	agentReady		( 4),
	agentWorkingAfterCall		( 5),
	autoAnswer		( 6),
	autoWorkMode		( 7),
	callBack		( 8),
	callBackMessage		( 9),
	callerIDStatus		(10),
	doNotDisturb		(11),
	forwarding		(12),
	routeingMode		(13)}

DeviceMaintenanceEventIDs ::= BIT STRING
{	backInService			(0),
	deviceCapabilityChanged			(2),
	outOfService			(1)	}

VoiceUnitEventIDs ::= BIT STRING
	{	play		(1),
		record		(3),
		review		(5),
		stop		(0),
		suspendPlay		(2),
		suspendRecord		(4),
		voiceAttributesChange		(6)	}

VendorSpecEventIDs::= BIT STRING
{	privateEvent			(0)}

MonitorFilter ::= SEQUENCE	-- default is no filter (i.e. all events)
	{callControl		[0] IMPLICIT CallControlEventIDs			DEFAULT {},
	 callAssociated		[6] IMPLICIT CallAssociatedEventIDs			DEFAULT {},
	 mediaAttachment		[7] IMPLICIT MediaAttachmentEventIDs			DEFAULT {},
	 physicalDeviceFeature		[8] IMPLICIT PhysicalDeviceFeatureEventIDs		 	DEFAULT {},
	 logicalDeviceFeature		[9] IMPLICIT LogicalDeviceFeatureEventIDs			DEFAULT {},
	 maintenance		[3] IMPLICIT DeviceMaintenanceEventIDs			DEFAULT {},
	 voiceUnit		[5] IMPLICIT VoiceUnitEventIDs			DEFAULT {},
	 private		[4] IMPLICIT VendorSpecEventIDs			DEFAULT {}}

MonitorStartArgument ::= SEQUENCE
{       monitorObject                                   MonitorObject,
        requestedMonitorFilter                  [0] IMPLICIT MonitorFilter                      OPTIONAL,
        monitorType                     MonitorType                     OPTIONAL,
        requestedMonitorMediaClass                      [1] IMPLICIT MonitorMediaClass                  OPTIONAL,
        extensions                                      CSTACommonArguments                             OPTIONAL}

MonitorStartResult ::= SEQUENCE
{       crossRefIdentifier                      MonitorCrossRefID,
        actualmonitorFilter                     [0] IMPLICIT MonitorFilter                      OPTIONAL,
        actualMonitorMediaClass                         [1] IMPLICIT MonitorMediaClass                  OPTIONAL,
        monitorExistingCalls                            BOOLEAN                                         OPTIONAL,
        extensions                                      CSTACommonArguments                             OPTIONAL}

END  -- of CSTA-event-report-definitions