HACK: pinfo->private_data points to smb_info again
[wireshark-wip.git] / epan / dissectors / packet-rtp-events.h
blobc7230a32148bff1a7268f63cb4f0224c9e97222f
1 /* packet-rtp-events.h
3 * Defines for RFC 2833 RTP Events dissection
4 * Copyright 2003, Kevin A. Noll <knoll[AT]poss.com>
6 * $Id$
8 * Wireshark - Network traffic analyzer
9 * By Gerald Combs <gerald@wireshark.org>
10 * Copyright 1998 Gerald Combs
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
28 #define RTP_DTMF_0 0
29 #define RTP_DTMF_1 1
30 #define RTP_DTMF_2 2
31 #define RTP_DTMF_3 3
32 #define RTP_DTMF_4 4
33 #define RTP_DTMF_5 5
34 #define RTP_DTMF_6 6
35 #define RTP_DTMF_7 7
36 #define RTP_DTMF_8 8
37 #define RTP_DTMF_9 9
38 #define RTP_DTMF_STAR 10
39 #define RTP_DTMF_POUND 11
40 #define RTP_DTMF_A 12
41 #define RTP_DTMF_B 13
42 #define RTP_DTMF_C 14
43 #define RTP_DTMF_D 15
44 #define RTP_DTMF_FLASH 16
46 #define RTP_ANS 32
47 #define RTP_ANSREV 33
48 #define RTP_ANSAM 34
49 #define RTP_ANSAMREV 35
50 #define RTP_CNG 36
51 #define RTP_V21C1B0 37
52 #define RTP_V21C1B1 38
53 #define RTP_V21C2B0 39
54 #define RTP_V21C2B1 40
55 #define RTP_CRDI 41
56 #define RTP_CRDR 42
57 #define RTP_CRE 43
58 #define RTP_ESI 44
59 #define RTP_ESR 45
60 #define RTP_MRDI 46
61 #define RTP_MRDR 47
62 #define RTP_MRE 48
63 #define RTP_CT 49
65 #define RTP_OFFHOOK 64
66 #define RTP_ONHOOK 65
67 #define RTP_DIALTONE 66
68 #define RTP_INTDT 67
69 #define RTP_SPCDT 68
70 #define RTP_2NDDT 69
71 #define RTP_RGTONE 70
72 #define RTP_SPRGTONE 71
73 #define RTP_BUSYTONE 72
74 #define RTP_CNGTONE 73
75 #define RTP_SPINFOTN 74
76 #define RTP_CMFTTONE 75
77 #define RTP_HOLDTONE 76
78 #define RTP_RECTONE 77
79 #define RTP_CLRWTTONE 78
80 #define RTP_CWTONE 79
81 #define RTP_PAYTONE 80
82 #define RTP_POSINDTONE 81
83 #define RTP_NEGINDTONE 82
84 #define RTP_WARNTONE 83
85 #define RTP_INTRTONE 84
86 #define RTP_CALLCDTONE 85
87 #define RTP_PAYPHONE 86
88 #define RTP_CAS 87
89 #define RTP_OFFHKWARN 88
90 #define RTP_RING 89
92 #define RTP_ACCPTTONE 96
93 #define RTP_CONFIRMTN 97
94 #define RTP_DLTNRECALL 98
95 #define RTP_END3WAYTN 99
96 #define RTP_FACTONE 100
97 #define RTP_LNLOCKTN 101
98 #define RTP_NUMUNOBT 102
99 #define RTP_OFFERGTONE 103
100 #define RTP_PERMSIGTN 104
101 #define RTP_PREEMPTTN 105
102 #define RTP_QUETONE 106
103 #define RTP_REFUSALTN 107
104 #define RTP_ROUTETONE 108
105 #define RTP_VALIDTONE 109
106 #define RTP_WAITGTONE 110
107 #define RTP_WARNEOPTN 111
108 #define RTP_WARNPIPTN 112
110 #define RTP_MF0 128
111 #define RTP_MF1 129
112 #define RTP_MF2 130
113 #define RTP_MF3 131
114 #define RTP_MF4 132
115 #define RTP_MF5 133
116 #define RTP_MF6 134
117 #define RTP_MF7 135
118 #define RTP_MF8 136
119 #define RTP_MF9 137
120 #define RTP_K0 138
121 #define RTP_K1 139
122 #define RTP_K2 140
123 #define RTP_S0 141
124 #define RTP_S1 142
125 #define RTP_S3 143
127 #define RTP_WINK 160
128 #define RTP_WINKOFF 161
129 #define RTP_INCSEIZ 162
130 #define RTP_SEIZURE 163
131 #define RTP_UNSEIZE 164
132 #define RTP_COT 165
133 #define RTP_DEFCOT 166
134 #define RTP_COTTONE 167
135 #define RTP_COTSEND 168
137 #define RTP_COTVERFD 170
138 #define RTP_LOOPBACK 171
139 #define RTP_MWATTTONE 172
140 #define RTP_NEWMWATTTN 173
142 #define RTP_CISCO_NSE_FAX_PASSTHROUGH_IND 192
143 #define RTP_CISCO_NSE_MODEM_PASSTHROUGH_IND 193
144 #define RTP_CISCO_NSE_VOICE_MODE_IND 194
145 #define RTP_CISCO_NSE_MODEM_RELAY_CAP_IND 199
146 #define RTP_CISCO_NSE_FAX_RELAY_IND 200
147 #define RTP_CISCO_NSE_ACK 201
148 #define RTP_CISCO_NSE_NACK 202
149 #define RTP_CISCO_NSE_MODEM_RELAY_IND 203
152 static const value_string rtp_event_type_values[] =
155 { RTP_DTMF_0, "DTMF Zero 0" },
156 { RTP_DTMF_1, "DTMF One 1" },
157 { RTP_DTMF_2, "DTMF Two 2" },
158 { RTP_DTMF_3, "DTMF Three 3" },
159 { RTP_DTMF_4, "DTMF Four 4" },
160 { RTP_DTMF_5, "DTMF Five 5" },
161 { RTP_DTMF_6, "DTMF Six 6" },
162 { RTP_DTMF_7, "DTMF Seven 7" },
163 { RTP_DTMF_8, "DTMF Eight 8" },
164 { RTP_DTMF_9, "DTMF Nine 9" },
165 { RTP_DTMF_STAR, "DTMF Star *" },
166 { RTP_DTMF_POUND, "DTMF Pound #" },
167 { RTP_DTMF_A, "DTMF A" },
168 { RTP_DTMF_B, "DTMF B" },
169 { RTP_DTMF_C, "DTMF C" },
170 { RTP_DTMF_D, "DTMF D" },
171 { RTP_DTMF_FLASH, "Flash" },
172 { RTP_ANS, "Fax ANS"},
173 { RTP_ANSREV, "Fax /ANS"},
174 { RTP_ANSAM, "Fax ANSam"},
175 { RTP_ANSAMREV, "Fax /ANSam"},
176 { RTP_CNG, "Fax CNG"},
177 { RTP_V21C1B0, "V.21 channel 1, 0 bit"},
178 { RTP_V21C1B1, "V.21 channel 1, 1 bit"},
179 { RTP_V21C2B0, "V.21 channel 2, 0 bit"},
180 { RTP_V21C2B1, "V.21 channel 2, 1 bit"},
181 { RTP_CRDI, "Fax CRdi"},
182 { RTP_CRDR, "Fax CRdr"},
183 { RTP_CRE, "Fax CRe"},
184 { RTP_ESI, "Fax ESi"},
185 { RTP_ESR, "Fax ESr"},
186 { RTP_MRDI, "Fax MRdi"},
187 { RTP_MRDR, "Fax MRdr"},
188 { RTP_MRE, "Fax MRe"},
189 { RTP_CT, "Fax CT"},
190 { RTP_OFFHOOK, "Off Hook"},
191 { RTP_ONHOOK, "On Hook"},
192 { RTP_DIALTONE, "Dial tone"},
193 { RTP_INTDT, "PABX internal dial tone"},
194 { RTP_SPCDT, "Special dial tone"},
195 { RTP_2NDDT, "Second dial tone"},
196 { RTP_RGTONE, "Ringing tone"},
197 { RTP_SPRGTONE, "Special ringing tone"},
198 { RTP_BUSYTONE, "Busy tone"},
199 { RTP_CNGTONE, "Congestion tone"},
200 { RTP_SPINFOTN, "Special information tone"},
201 { RTP_CMFTTONE, "Comfort tone"},
202 { RTP_HOLDTONE, "Hold tone"},
203 { RTP_RECTONE, "Record tone"},
204 { RTP_CLRWTTONE, "Caller waiting tone"},
205 { RTP_CWTONE, "Call waiting tone"},
206 { RTP_PAYTONE, "Pay tone"},
207 { RTP_POSINDTONE, "Positive indication tone"},
208 { RTP_NEGINDTONE, "Negative indication tone"},
209 { RTP_WARNTONE, "Warning tone"},
210 { RTP_INTRTONE, "Intrusion tone"},
211 { RTP_CALLCDTONE, "Calling card service tone"},
212 { RTP_PAYPHONE, "Payphone recognition tone"},
213 { RTP_CAS, "CPE alerting signal (CAS)"},
214 { RTP_OFFHKWARN, "Off-hook warning tone"},
215 { RTP_RING, "Ring"},
216 { RTP_ACCPTTONE, "Acceptance tone"},
217 { RTP_CONFIRMTN, "Confirmation tone"},
218 { RTP_DLTNRECALL, "Dial tone, recall"},
219 { RTP_END3WAYTN, "End of three party service tone"},
220 { RTP_FACTONE, "Facilities tone"},
221 { RTP_LNLOCKTN, "Line lockout tone"},
222 { RTP_NUMUNOBT, "Number unobtainable tone"},
223 { RTP_OFFERGTONE, "Offering tone"},
224 { RTP_PERMSIGTN, "Permanent signal tone"},
225 { RTP_PREEMPTTN, "Preemption tone"},
226 { RTP_QUETONE, "Queue tone"},
227 { RTP_REFUSALTN, "Refusal tone"},
228 { RTP_ROUTETONE, "Route tone"},
229 { RTP_VALIDTONE, "Valid tone"},
230 { RTP_WAITGTONE, "Waiting tone"},
231 { RTP_WARNEOPTN, "Warning tone (end of period)"},
232 { RTP_WARNPIPTN, "Warning Tone (PIP tone)"},
233 { RTP_MF0, "MF 0"},
234 { RTP_MF1, "MF 1"},
235 { RTP_MF2, "MF 2"},
236 { RTP_MF3, "MF 3"},
237 { RTP_MF4, "MF 4"},
238 { RTP_MF5, "MF 5"},
239 { RTP_MF6, "MF 6"},
240 { RTP_MF7, "MF 7"},
241 { RTP_MF8, "MF 8"},
242 { RTP_MF9, "MF 9"},
243 { RTP_K0, "MF K0 or KP (start-of-pulsing)"},
244 { RTP_K1, "MF K1"},
245 { RTP_K2, "MF K2"},
246 { RTP_S0, "MF S0 to ST (end-of-pulsing)"},
247 { RTP_S1, "MF S1"},
248 { RTP_S3, "MF S3"},
249 { RTP_WINK, "Wink"},
250 { RTP_WINKOFF, "Wink off"},
251 { RTP_INCSEIZ, "Incoming seizure"},
252 { RTP_SEIZURE, "Seizure"},
253 { RTP_UNSEIZE, "Unseize circuit"},
254 { RTP_COT, "Continuity test"},
255 { RTP_DEFCOT, "Default continuity tone"},
256 { RTP_COTTONE, "Continuity tone (single tone)"},
257 { RTP_COTSEND, "Continuity test send"},
258 { RTP_COTVERFD, "Continuity verified"},
259 { RTP_LOOPBACK, "Loopback"},
260 { RTP_MWATTTONE, "Old milliwatt tone (1000 Hz)"},
261 { RTP_NEWMWATTTN, "New milliwatt tone (1004 Hz)"},
262 { RTP_CISCO_NSE_FAX_PASSTHROUGH_IND, "Cisco NSE: Shift to voiceband data mode"},
263 { RTP_CISCO_NSE_MODEM_PASSTHROUGH_IND, "Cisco NSE: Disable echo cancellation"},
264 { RTP_CISCO_NSE_VOICE_MODE_IND, "Cisco NSE: Shift to voice mode"},
265 { RTP_CISCO_NSE_MODEM_RELAY_CAP_IND, "Cisco NSE: Advertise Modem relay capability"},
266 { RTP_CISCO_NSE_FAX_RELAY_IND, "Cisco NSE: Shift to fax relay mode"},
267 { RTP_CISCO_NSE_ACK, "Positive acknowledgement of Cisco NSE"},
268 { RTP_CISCO_NSE_NACK, "Negative acknowledgement of Cisco NSE"},
269 { RTP_CISCO_NSE_MODEM_RELAY_IND , "Cisco NSE: Shift to modem relay mode"},
270 { 0, NULL },
273 struct _rtp_event_info {
274 guint8 info_rtp_evt;
275 guint32 info_setup_frame_num; /* the frame num of the packet that set this RTP connection */
276 guint16 info_duration;
277 gboolean info_end;