3 * Defines for RFC 2833 RTP Events dissection
4 * Copyright 2003, Kevin A. Noll <knoll[AT]poss.com>
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.
38 #define RTP_DTMF_STAR 10
39 #define RTP_DTMF_POUND 11
44 #define RTP_DTMF_FLASH 16
49 #define RTP_ANSAMREV 35
51 #define RTP_V21C1B0 37
52 #define RTP_V21C1B1 38
53 #define RTP_V21C2B0 39
54 #define RTP_V21C2B1 40
65 #define RTP_OFFHOOK 64
67 #define RTP_DIALTONE 66
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
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
89 #define RTP_OFFHKWARN 88
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
128 #define RTP_WINKOFF 161
129 #define RTP_INCSEIZ 162
130 #define RTP_SEIZURE 163
131 #define RTP_UNSEIZE 164
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"},
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"},
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)"},
243 { RTP_K0
, "MF K0 or KP (start-of-pulsing)"},
246 { RTP_S0
, "MF S0 to ST (end-of-pulsing)"},
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"},
273 struct _rtp_event_info
{
275 guint32 info_setup_frame_num
; /* the frame num of the packet that set this RTP connection */
276 guint16 info_duration
;