Expand PMF_FN_* macros.
[netbsd-mini2440.git] / sys / netisdn / i4b_isdnq931.h
blob66ef21e0daec060245e46bd205bcdc4afc0f9e42
1 /*
2 * Copyright (c) 1997, 1999 Hellmuth Michaelis. All rights reserved.
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.
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.
25 *---------------------------------------------------------------------------
27 * i4b_isdnq931.h - DSS1 layer 3 message types
28 * -------------------------------------------
30 * $Id: i4b_isdnq931.h,v 1.2 2005/12/10 23:51:50 elad Exp $
32 * $FreeBSD$
34 * last edit-date: [Thu Apr 27 09:46:13 2000]
36 *---------------------------------------------------------------------------*/
38 #ifndef _NETISDN_I4B_ISDBQ931_H_
39 #define _NETISDN_I4B_ISDBQ931_H_
41 /* protocol discriminators */
43 #define PD_Q931 0x08 /* Q.931/I.451 */
45 /* Q.931 single octett information element identifiers */
47 #define IEI_SENDCOMPL 0xa1 /* sending complete */
49 /* Q.931 variable length information element identifiers */
51 #define IEI_SEGMMSG 0x00 /* segmented message */
52 #define IEI_BEARERCAP 0x04 /* bearer capabilities */
53 #define IEI_CAUSE 0x08 /* cause */
54 #define IEI_CALLID 0x10 /* call identity */
55 #define IEI_CALLSTATE 0x14 /* call state */
56 #define IEI_CHANNELID 0x18 /* channel identification */
57 #define IEI_PROGRESSI 0x1e /* progress indicator */
58 #define IEI_NETSPCFAC 0x20 /* network specific facilities */
59 #define IEI_NOTIFIND 0x27 /* notification indicator */
60 #define IEI_DISPLAY 0x28 /* display */
61 #define IEI_DATETIME 0x29 /* date/time */
62 #define IEI_KEYPAD 0x2c /* keypad facility */
63 #define IEI_SIGNAL 0x34 /* signal */
64 #define IEI_INFRATE 0x40 /* information rate */
65 #define IEI_ETETDEL 0x42 /* end to end transit delay */
66 #define IEI_TDELSELIND 0x43 /* transit delay selection and indication */
67 #define IEI_PLBPARMS 0x44 /* packet layer binary parameters */
68 #define IEI_PLWSIZE 0x45 /* packet layer window size */
69 #define IEI_PSIZE 0x46 /* packet size */
70 #define IEI_CUG 0x47 /* closed user group */
71 #define IEI_REVCHRGI 0x4a /* reverse charge indication */
72 #define IEI_CALLINGPN 0x6c /* calling party number */
73 #define IEI_CALLINGPS 0x6d /* calling party subaddress */
74 #define IEI_CALLEDPN 0x70 /* called party number */
75 #define IEI_CALLEDPS 0x71 /* called party subaddress */
76 #define IEI_REDIRNO 0x74 /* redirecting number */
77 #define IEI_TRNSEL 0x78 /* transit network selection */
78 #define IEI_RESTARTI 0x79 /* restart indicator */
79 #define IEI_LLCOMPAT 0x7c /* low layer compatibility */
80 #define IEI_HLCOMPAT 0x7d /* high layer compatibility */
81 #define IEI_USERUSER 0x7e /* user-user */
82 #define IEI_ESCAPE 0x7f /* escape for extension */
84 /* Q.932 variable length information element identifiers */
86 #define IEI_EXTFAC 0x0d /* extended facility */
87 #define IEI_FACILITY 0x1c /* facility */
88 #define IEI_INFOREQ 0x32 /* information request */
89 #define IEI_FEATACT 0x38 /* feature activation */
90 #define IEI_FEATIND 0x39 /* feature indication */
91 #define IEI_SERVPID 0x3a /* service profile identification */
92 #define IEI_ENDPTID 0x3b /* endpoint identifier */
94 /* Q.933 variable length information element identifiers */
96 #define IEI_DATALCID 0x19 /* data link connection identifier */
97 #define IEI_LLCOREP 0x48 /* link layer core parameters */
98 #define IEI_LLPROTP 0x49 /* link layer protocol parameters */
99 #define IEI_X213PRI 0x50 /* X.213 priority */
100 #define IEI_REPORTT 0x51 /* report type */
101 #define IEI_LNKITYVERF 0x53 /* link integrity verification */
102 #define IEI_PVCSTAT 0x57 /* PVC status */
104 /* Q.95x variable length information element identifiers */
106 #define IEI_PRECLEV 0x41 /* precedence level */
107 #define IEI_CONCTDNO 0x4c /* connected number */
108 #define IEI_CONCTDSA 0x4d /* connected subaddress */
109 #define IEI_REDICNNO 0x76 /* redirection number */
111 /* single octett information elements */
113 #define SOIE_SHIFT 0x90 /* shift codeset */
114 #define SHIFT_LOCK 0x08 /* shift codeset, locking shift bit */
115 #define SOIE_MDSC 0xa0 /* more data AND/OR sending complete */
116 #define SOIE_SENDC 0xa1 /* sending complete */
117 #define SOIE_CONGL 0xb0 /* congestion level */
118 #define SOIE_REPTI 0xd0 /* repeat indicator */
120 /* codesets */
122 #define CODESET_0 0 /* codeset 0, normal DSS1 codeset */
124 /* Q.931/Q.932 message types (see Q.931 03/93 p10 and p311) */
126 /* call establishment messages */
128 #define ALERT 0x01
129 #define CALL_PROCEEDING 0x02
130 #define PROGRESS 0x03
131 #define SETUP 0x05
132 #define CONNECT 0x07
133 #define SETUP_ACKNOWLEDGE 0x0d
134 #define CONNECT_ACKNOWLEDGE 0x0f
136 /* call information phase messages */
138 #define USER_INFORMATION 0x20
139 #define SUSPEND_REJECT 0x21
140 #define RESUME_REJECT 0x22
141 #define HOLD 0x24
142 #define SUSPEND 0x25
143 #define RESUME 0x26
144 #define HOLD_ACKNOWLEDGE 0x28
145 #define SUSPEND_ACKNOWLEDGE 0x2d
146 #define RESUME_ACKNOWLEDGE 0x2e
147 #define HOLD_REJECT 0x30
148 #define RETRIEVE 0x31
149 #define RETRIEVE_ACKNOWLEDGE 0x32
150 #define RETRIEVE_REJECT 0x37
152 /* call clearing */
154 #define DISCONNECT 0x45
155 #define RESTART 0x46
156 #define RELEASE 0x4d
157 #define RESTART_ACKNOWLEDGE 0x4e
158 #define RELEASE_COMPLETE 0x5a
160 /* misc messages */
162 #define SEGMENT 0x60
163 #define FACILITY 0x62
164 #define REGISTER 0x64
165 #define NOTIFY 0x6e
166 #define STATUS_ENQUIRY 0x75
167 #define CONGESTION_CONTROL 0x79
168 #define INFORMATION 0x7b
169 #define STATUS 0x7d
171 /* EOF */
173 #endif /* !_NETISDN_I4B_ISDBQ931_H_ */