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
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
25 *---------------------------------------------------------------------------
27 * i4b_isdnq931.h - DSS1 layer 3 message types
28 * -------------------------------------------
30 * $Id: i4b_isdnq931.h,v 1.7 2000/04/27 07:42:43 hm Exp $
32 * $FreeBSD: src/sys/i4b/include/i4b_isdnq931.h,v 1.6.2.1 2001/08/10 14:08:36 obrien Exp $
33 * $DragonFly: src/sys/net/i4b/include/i4b_isdnq931.h,v 1.2 2003/06/17 04:28:39 dillon Exp $
35 * last edit-date: [Thu Apr 27 09:46:13 2000]
37 *---------------------------------------------------------------------------*/
39 /* protocol discriminators */
41 #define PD_Q931 0x08 /* Q.931/I.451 */
43 /* Q.931 single octett information element identifiers */
45 #define IEI_SENDCOMPL 0xa1 /* sending complete */
47 /* Q.931 variable length information element identifiers */
49 #define IEI_SEGMMSG 0x00 /* segmented message */
50 #define IEI_BEARERCAP 0x04 /* bearer capabilities */
51 #define IEI_CAUSE 0x08 /* cause */
52 #define IEI_CALLID 0x10 /* call identity */
53 #define IEI_CALLSTATE 0x14 /* call state */
54 #define IEI_CHANNELID 0x18 /* channel identification */
55 #define IEI_PROGRESSI 0x1e /* progress indicator */
56 #define IEI_NETSPCFAC 0x20 /* network specific facilities */
57 #define IEI_NOTIFIND 0x27 /* notification indicator */
58 #define IEI_DISPLAY 0x28 /* display */
59 #define IEI_DATETIME 0x29 /* date/time */
60 #define IEI_KEYPAD 0x2c /* keypad facility */
61 #define IEI_SIGNAL 0x34 /* signal */
62 #define IEI_INFRATE 0x40 /* information rate */
63 #define IEI_ETETDEL 0x42 /* end to end transit delay */
64 #define IEI_TDELSELIND 0x43 /* transit delay selection and indication */
65 #define IEI_PLBPARMS 0x44 /* packet layer binary parameters */
66 #define IEI_PLWSIZE 0x45 /* packet layer window size */
67 #define IEI_PSIZE 0x46 /* packet size */
68 #define IEI_CUG 0x47 /* closed user group */
69 #define IEI_REVCHRGI 0x4a /* reverse charge indication */
70 #define IEI_CALLINGPN 0x6c /* calling party number */
71 #define IEI_CALLINGPS 0x6d /* calling party subaddress */
72 #define IEI_CALLEDPN 0x70 /* called party number */
73 #define IEI_CALLEDPS 0x71 /* called party subaddress */
74 #define IEI_REDIRNO 0x74 /* redirecting number */
75 #define IEI_TRNSEL 0x78 /* transit network selection */
76 #define IEI_RESTARTI 0x79 /* restart indicator */
77 #define IEI_LLCOMPAT 0x7c /* low layer compatibility */
78 #define IEI_HLCOMPAT 0x7d /* high layer compatibility */
79 #define IEI_USERUSER 0x7e /* user-user */
80 #define IEI_ESCAPE 0x7f /* escape for extension */
82 /* Q.932 variable length information element identifiers */
84 #define IEI_EXTFAC 0x0d /* extended facility */
85 #define IEI_FACILITY 0x1c /* facility */
86 #define IEI_INFOREQ 0x32 /* information request */
87 #define IEI_FEATACT 0x38 /* feature activation */
88 #define IEI_FEATIND 0x39 /* feature indication */
89 #define IEI_SERVPID 0x3a /* service profile identification */
90 #define IEI_ENDPTID 0x3b /* endpoint identifier */
92 /* Q.933 variable length information element identifiers */
94 #define IEI_DATALCID 0x19 /* data link connection identifier */
95 #define IEI_LLCOREP 0x48 /* link layer core parameters */
96 #define IEI_LLPROTP 0x49 /* link layer protocol parameters */
97 #define IEI_X213PRI 0x50 /* X.213 priority */
98 #define IEI_REPORTT 0x51 /* report type */
99 #define IEI_LNKITYVERF 0x53 /* link integrity verification */
100 #define IEI_PVCSTAT 0x57 /* PVC status */
102 /* Q.95x variable length information element identifiers */
104 #define IEI_PRECLEV 0x41 /* precedence level */
105 #define IEI_CONCTDNO 0x4c /* connected number */
106 #define IEI_CONCTDSA 0x4d /* connected subaddress */
107 #define IEI_REDICNNO 0x76 /* redirection number */
109 /* single octett information elements */
111 #define SOIE_SHIFT 0x90 /* shift codeset */
112 #define SHIFT_LOCK 0x08 /* shift codeset, locking shift bit */
113 #define SOIE_MDSC 0xa0 /* more data AND/OR sending complete */
114 #define SOIE_SENDC 0xa1 /* sending complete */
115 #define SOIE_CONGL 0xb0 /* congestion level */
116 #define SOIE_REPTI 0xd0 /* repeat indicator */
120 #define CODESET_0 0 /* codeset 0, normal DSS1 codeset */
122 /* Q.931/Q.932 message types (see Q.931 03/93 p10 and p311) */
124 /* call establishment messages */
127 #define CALL_PROCEEDING 0x02
128 #define PROGRESS 0x03
131 #define SETUP_ACKNOWLEDGE 0x0d
132 #define CONNECT_ACKNOWLEDGE 0x0f
134 /* call information phase messages */
136 #define USER_INFORMATION 0x20
137 #define SUSPEND_REJECT 0x21
138 #define RESUME_REJECT 0x22
142 #define HOLD_ACKNOWLEDGE 0x28
143 #define SUSPEND_ACKNOWLEDGE 0x2d
144 #define RESUME_ACKNOWLEDGE 0x2e
145 #define HOLD_REJECT 0x30
146 #define RETRIEVE 0x31
147 #define RETRIEVE_ACKNOWLEDGE 0x32
148 #define RETRIEVE_REJECT 0x37
152 #define DISCONNECT 0x45
155 #define RESTART_ACKNOWLEDGE 0x4e
156 #define RELEASE_COMPLETE 0x5a
161 #define FACILITY 0x62
162 #define REGISTER 0x64
164 #define STATUS_ENQUIRY 0x75
165 #define CONGESTION_CONTROL 0x79
166 #define INFORMATION 0x7b