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
|
/*
* Copyright (c) 1997, 1999 Hellmuth Michaelis. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
*---------------------------------------------------------------------------
*
* facility.h - Q.932 facility header file
* ---------------------------------------
*
* $Id: facility.h,v 1.3 1999/02/14 09:44:57 hm Exp $
*
* last edit-date: [Sun Feb 14 10:16:17 1999]
*
*---------------------------------------------------------------------------*/
/* #define FAC_DEBUG */
/* #define ST_DEBUG */
/* protocols */
#define FAC_PROTO_ROP 0x11
#define FAC_PROTO_CMIP 0x12
#define FAC_PROTO_ACSE 0x13
/* tag classes */
#define FAC_TAGCLASS_UNI 0x00
#define FAC_TAGCLASS_APW 0x01
#define FAC_TAGCLASS_COS 0x02
#define FAC_TAGCLASS_PRU 0x03
/* tag forms */
#define FAC_TAGFORM_PRI 0x00
#define FAC_TAGFORM_CON 0x01
/* class UNIVERSAL values */
#define FAC_CODEUNI_BOOL 1
#define FAC_CODEUNI_INT 2
#define FAC_CODEUNI_BITS 3
#define FAC_CODEUNI_OCTS 4
#define FAC_CODEUNI_NULL 5
#define FAC_CODEUNI_OBJI 6
#define FAC_CODEUNI_OBJD 7
#define FAC_CODEUNI_EXT 8
#define FAC_CODEUNI_REAL 9
#define FAC_CODEUNI_ENUM 10
#define FAC_CODEUNI_R11 11
#define FAC_CODEUNI_R12 12
#define FAC_CODEUNI_R13 13
#define FAC_CODEUNI_R14 14
#define FAC_CODEUNI_R15 15
#define FAC_CODEUNI_SEQ 16
#define FAC_CODEUNI_SET 17
#define FAC_CODEUNI_NSTR 18
#define FAC_CODEUNI_PSTR 19
#define FAC_CODEUNI_TSTR 20
#define FAC_CODEUNI_VSTR 21
#define FAC_CODEUNI_ISTR 22
#define FAC_CODEUNI_UTIME 23
#define FAC_CODEUNI_GTIME 24
#define FAC_CODEUNI_GSTR 25
#define FAC_CODEUNI_VISTR 26
#define FAC_CODEUNI_GNSTR 27
/* operation values */
#define FAC_OPVAL_UUS 1
#define FAC_OPVAL_CUG 2
#define FAC_OPVAL_MCID 3
#define FAC_OPVAL_BTPY 4
#define FAC_OPVAL_ETPY 5
#define FAC_OPVAL_ECT 6
#define FAC_OPVAL_DIV_ACT 7
#define FAC_OPVAL_DIV_DEACT 8
#define FAC_OPVAL_DIV_ACTSN 9
#define FAC_OPVAL_DIV_DEACTSN 10
#define FAC_OPVAL_DIV_INTER 11
#define FAC_OPVAL_DIV_INFO 12
#define FAC_OPVAL_DIV_CALLDEF 13
#define FAC_OPVAL_DIV_CALLRER 14
#define FAC_OPVAL_DIV_LINF2 15
#define FAC_OPVAL_DIV_INVS 16
#define FAC_OPVAL_DIV_INTER1 17
#define FAC_OPVAL_DIV_LINF1 18
#define FAC_OPVAL_DIV_LINF3 19
#define FAC_OPVAL_ER_CRCO 20
#define FAC_OPVAL_ER_MGMT 21
#define FAC_OPVAL_ER_CANC 22
#define FAC_OPVAL_MLPP_QUERY 24
#define FAC_OPVAL_MLPP_CALLR 25
#define FAC_OPVAL_MLPP_CALLP 26
#define FAC_OPVAL_AOC_REQ 30
#define FAC_OPVAL_AOC_S_CUR 31
#define FAC_OPVAL_AOC_S_SPC 32
#define FAC_OPVAL_AOC_D_CUR 33
#define FAC_OPVAL_AOC_D_UNIT 34
#define FAC_OPVAL_AOC_E_CUR 35
#define FAC_OPVAL_AOC_E_UNIT 36
#define FAC_OPVAL_AOC_IDOFCRG 37
#define FAC_OPVAL_CONF_BEG 40
#define FAC_OPVAL_CONF_ADD 41
#define FAC_OPVAL_CONF_SPLIT 42
#define FAC_OPVAL_CONF_DROP 43
#define FAC_OPVAL_CONF_ISOLATE 44
#define FAC_OPVAL_CONF_REATT 45
#define FAC_OPVAL_CONF_PDISC 46
#define FAC_OPVAL_CONF_FCONF 47
#define FAC_OPVAL_CONF_END 48
#define FAC_OPVAL_CONF_IDCFE 49
#define FAC_OPVAL_REVC_REQ 60
enum states {
ST_EXP_COMP_TYP,
ST_EXP_INV_ID,
ST_EXP_OP_VAL,
ST_EXP_INFO,
ST_EXP_RUL,
ST_EXP_RU,
ST_EXP_RNOU,
ST_EXP_TOCI,
ST_EXP_DBID,
ST_EXP_RR_INV_ID,
ST_EXP_RR_OP_VAL,
ST_EXP_RR_RESULT,
ST_EXP_NIX
};
/* EOF */
|