1 /*
2 * Copyright (c) 1997, 1999 Hellmuth Michaelis. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 *
13 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23 * SUCH DAMAGE.
24 *
25 *---------------------------------------------------------------------------
26 *
27 * i4b_isdnq931.h - DSS1 layer 3 message types
28 * -------------------------------------------
29 *
30 * $FreeBSD$
31 *
32 * last edit-date: [Sun Feb 14 10:04:01 1999]
33 *
34 *---------------------------------------------------------------------------*/
35
36 /* protocol discriminators */
37
38 #define PD_Q931 0x08 /* Q.931/I.451 */
39
40 /* Q.931 single octett information element identifiers */
41
42 #define IEI_SENDCOMPL 0xa1 /* sending complete */
43
44 /* Q.931 variable length information element identifiers */
45
46 #define IEI_SEGMMSG 0x00 /* segmented message */
47 #define IEI_BEARERCAP 0x04 /* bearer capabilities */
48 #define IEI_CAUSE 0x08 /* cause */
49 #define IEI_CALLID 0x10 /* call identity */
50 #define IEI_CALLSTATE 0x14 /* call state */
51 #define IEI_CHANNELID 0x18 /* channel identification */
52 #define IEI_PROGRESSI 0x1e /* progress indicator */
53 #define IEI_NETSPCFAC 0x20 /* network specific facilities */
54 #define IEI_NOTIFIND 0x27 /* notification indicator */
55 #define IEI_DISPLAY 0x28 /* display */
56 #define IEI_DATETIME 0x29 /* date/time */
57 #define IEI_KEYPAD 0x2c /* keypad facility */
58 #define IEI_SIGNAL 0x34 /* signal */
59 #define IEI_INFRATE 0x40 /* information rate */
60 #define IEI_ETETDEL 0x42 /* end to end transit delay */
61 #define IEI_TDELSELIND 0x43 /* transit delay selection and indication */
62 #define IEI_PLBPARMS 0x44 /* packet layer binary parameters */
63 #define IEI_PLWSIZE 0x45 /* packet layer window size */
64 #define IEI_PSIZE 0x46 /* packet size */
65 #define IEI_CUG 0x47 /* closed user group */
66 #define IEI_REVCHRGI 0x4a /* reverse charge indication */
67 #define IEI_CALLINGPN 0x6c /* calling party number */
68 #define IEI_CALLINGPS 0x6d /* calling party subaddress */
69 #define IEI_CALLEDPN 0x70 /* called party number */
70 #define IEI_CALLEDPS 0x71 /* called party subaddress */
71 #define IEI_REDIRNO 0x74 /* redirecting number */
72 #define IEI_TRNSEL 0x78 /* transit network selection */
73 #define IEI_RESTARTI 0x79 /* restart indicator */
74 #define IEI_LLCOMPAT 0x7c /* low layer compatibility */
75 #define IEI_HLCOMPAT 0x7d /* high layer compatibility */
76 #define IEI_USERUSER 0x7e /* user-user */
77 #define IEI_ESACPE 0x7f /* escape for extension */
78
79 /* Q.932 variable length information element identifiers */
80
81 #define IEI_EXTFAC 0x0d /* extended facility */
82 #define IEI_FACILITY 0x1c /* facility */
83 #define IEI_INFOREQ 0x32 /* information request */
84 #define IEI_FEATACT 0x38 /* feature activation */
85 #define IEI_FEATIND 0x39 /* feature indication */
86 #define IEI_SERVPID 0x3a /* service profile identification */
87 #define IEI_ENDPTID 0x3b /* endpoint identifier */
88
89 /* Q.933 variable length information element identifiers */
90
91 #define IEI_DATALCID 0x19 /* data link connection identifier */
92 #define IEI_LLCOREP 0x48 /* link layer core parameters */
93 #define IEI_LLPROTP 0x49 /* link layer protocol parameters */
94 #define IEI_X213PRI 0x50 /* X.213 priority */
95 #define IEI_REPORTT 0x51 /* report type */
96 #define IEI_LNKITYVERF 0x53 /* link integrity verification */
97 #define IEI_PVCSTAT 0x57 /* PVC status */
98
99 /* Q.95x variable length information element identifiers */
100
101 #define IEI_PRECLEV 0x41 /* precedence level */
102 #define IEI_CONCTDNO 0x4c /* connected number */
103 #define IEI_CONCTDSA 0x4d /* connected subaddress */
104 #define IEI_REDICNNO 0x76 /* redirection number */
105
106 /* single octett information elements */
107
108 #define SOIE_SHIFT 0x90 /* shift codeset */
109 #define SHIFT_LOCK 0x08 /* shift codeset, locking shift bit */
110 #define SOIE_MDSC 0xa0 /* more data AND/OR sending complete */
111 #define SOIE_SENDC 0xa1 /* sending complete */
112 #define SOIE_CONGL 0xb0 /* congestion level */
113 #define SOIE_REPTI 0xd0 /* repeat indicator */
114
115 /* codesets */
116
117 #define CODESET_0 0 /* codeset 0, normal DSS1 codeset */
118
119 /* Q.931/Q.932 message types (see Q.931 03/93 p10 and p311) */
120
121 /* call establishment messages */
122
123 #define ALERT 0x01
124 #define CALL_PROCEEDING 0x02
125 #define PROGRESS 0x03
126 #define SETUP 0x05
127 #define CONNECT 0x07
128 #define SETUP_ACKNOWLEDGE 0x0d
129 #define CONNECT_ACKNOWLEDGE 0x0f
130
131 /* call information phase messages */
132
133 #define USER_INFORMATION 0x20
134 #define SUSPEND_REJECT 0x21
135 #define RESUME_REJECT 0x22
136 #define HOLD 0x24
137 #define SUSPEND 0x25
138 #define RESUME 0x26
139 #define HOLD_ACKNOWLEDGE 0x28
140 #define SUSPEND_ACKNOWLEDGE 0x2d
141 #define RESUME_ACKNOWLEDGE 0x2e
142 #define HOLD_REJECT 0x30
143 #define RETRIEVE 0x31
144 #define RETRIEVE_ACKNOWLEDGE 0x32
145 #define RETRIEVE_REJECT 0x37
146
147 /* call clearing */
148
149 #define DISCONNECT 0x45
150 #define RESTART 0x46
151 #define RELEASE 0x4d
152 #define RESTART_ACKNOWLEDGE 0x4e
153 #define RELEASE_COMPLETE 0x5a
154
155 /* misc messages */
156
157 #define SEGMENT 0x60
158 #define FACILITY 0x62
159 #define REGISTER 0x64
160 #define NOTIFY 0x6e
161 #define STATUS_ENQUIRY 0x75
162 #define CONGESTION_CONTROL 0x79
163 #define INFORMATION 0x7b
164 #define STATUS 0x7d
165
166 /* EOF */
Cache object: d6bb7bbab5b0c5222488e9c11d96234b
|