From Kevin A. Noll: RFC 2833 RTP Events support.
[obnox/wireshark/wip.git] / packet-rtp-events.h
1 /* packet-rtp-events.h
2  *
3  * Defines for RFC 2833 RTP Events dissection
4  * Copyright 2003, Kevin A. Noll <knoll[AT]poss.com>
5  *
6  * $Id: packet-rtp-events.h,v 1.1 2003/09/19 04:16:23 guy Exp $
7  *
8  * Ethereal - Network traffic analyzer
9  * By Gerald Combs <gerald@ethereal.com>
10  * Copyright 1998 Gerald Combs
11  *
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.
16  *
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.
21  *
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., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
25  */
26
27
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
45
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
64
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
91
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
109
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
126
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
136
137 #define RTP_COTVERFD    170
138 #define RTP_LOOPBACK    171
139 #define RTP_MWATTTONE   172
140 #define RTP_NEWMWATTTN  173
141
142 static const value_string rtp_event_type_values[] =
143 {
144
145         { RTP_DTMF_0,           "DTMF Zero 0" },
146         { RTP_DTMF_1,           "DTMF One 1" },
147         { RTP_DTMF_2,           "DTMF Two 2" },
148         { RTP_DTMF_3,           "DTMF Three 3" },
149         { RTP_DTMF_4,           "DTMF Four 4" },
150         { RTP_DTMF_5,           "DTMF Five 5" },
151         { RTP_DTMF_6,           "DTMF Six 6" },
152         { RTP_DTMF_7,           "DTMF Seven 7" },
153         { RTP_DTMF_8,           "DTMF Eight 8" },
154         { RTP_DTMF_9,           "DTMF Nine 9" },
155         { RTP_DTMF_STAR,        "DTMF Star *" },
156         { RTP_DTMF_POUND,       "DTMF Pound #" },
157         { RTP_DTMF_A,           "DTMF A" },
158         { RTP_DTMF_B,           "DTMF B" },
159         { RTP_DTMF_C,           "DTMF C" },
160         { RTP_DTMF_D,           "DTMF D" },
161         { RTP_DTMF_FLASH,       "Flash" },
162         { RTP_ANS,              "Fax ANS"},
163         { RTP_ANSREV,           "Fax /ANS"},
164         { RTP_ANSAM,            "Fax ANSam"},
165         { RTP_ANSAMREV,         "Fax /ANSam"},
166         { RTP_CNG,              "Fax CNG"},
167         { RTP_V21C1B0,          "V.21 channel 1, 0 bit"},
168         { RTP_V21C1B1,          "V.21 channel 1, 1 bit"},
169         { RTP_V21C2B0,          "V.21 channel 2, 0 bit"},
170         { RTP_V21C2B1,          "V.21 channel 2, 1 bit"},
171         { RTP_CRDI,             "Fax CRdi"},
172         { RTP_CRDR,             "Fax CRdr"},
173         { RTP_CRE,              "Fax CRe"},
174         { RTP_ESI,              "Fax ESi"},
175         { RTP_ESR,              "Fax ESr"},
176         { RTP_MRDI,             "Fax MRdi"},
177         { RTP_MRDR,             "Fax MRdr"},
178         { RTP_MRE,              "Fax MRe"},
179         { RTP_CT,               "Fax CT"},
180         { RTP_OFFHOOK,          "Off Hook"},
181         { RTP_ONHOOK,           "On Hook"},
182         { RTP_DIALTONE,         "Dial tone"},
183         { RTP_INTDT,            "PABX internal dial tone"},
184         { RTP_SPCDT,            "Special dial tone"},
185         { RTP_2NDDT,            "Second dial tone"},
186         { RTP_RGTONE,           "Ringing tone"},
187         { RTP_SPRGTONE,         "Special ringing tone"},
188         { RTP_BUSYTONE,         "Busy tone"},
189         { RTP_CNGTONE,          "Congestion tone"},
190         { RTP_SPINFOTN,         "Special information tone"},
191         { RTP_CMFTTONE,         "Comfort tone"},
192         { RTP_HOLDTONE,         "Hold tone"},
193         { RTP_RECTONE,          "Record tone"},
194         { RTP_CLRWTTONE,        "Caller waiting tone"},
195         { RTP_CWTONE,           "Call waiting tone"},
196         { RTP_PAYTONE,          "Pay tone"},
197         { RTP_POSINDTONE,       "Positive indication tone"},
198         { RTP_NEGINDTONE,       "Negative indication tone"},
199         { RTP_WARNTONE,         "Warning tone"},
200         { RTP_INTRTONE,         "Intrusion tone"},
201         { RTP_CALLCDTONE,       "Calling card service tone"},
202         { RTP_PAYPHONE,         "Payphone recognition tone"},
203         { RTP_CAS,              "CPE alerting signal (CAS)"},
204         { RTP_OFFHKWARN,        "Off-hook warning tone"},
205         { RTP_RING,             "Ring"},
206         { RTP_ACCPTTONE,        "Acceptance tone"},
207         { RTP_CONFIRMTN,        "Confirmation tone"},
208         { RTP_DLTNRECALL,       "Dial tone, recall"},
209         { RTP_END3WAYTN,        "End of three party service tone"},
210         { RTP_FACTONE,          "Facilities tone"},
211         { RTP_LNLOCKTN,         "Line lockout tone"},
212         { RTP_NUMUNOBT,         "Number unobtainable tone"},
213         { RTP_OFFERGTONE,       "Offering tone"},
214         { RTP_PERMSIGTN,        "Permanent signal tone"},
215         { RTP_PREEMPTTN,        "Preemption tone"},
216         { RTP_QUETONE,          "Queue tone"},
217         { RTP_REFUSALTN,        "Refusal tone"},
218         { RTP_ROUTETONE,        "Route tone"},
219         { RTP_VALIDTONE,        "Valid tone"},
220         { RTP_WAITGTONE,        "Waiting tone"},
221         { RTP_WARNEOPTN,        "Warning tone (end of period)"},
222         { RTP_WARNPIPTN,        "Warning Tone (PIP tone)"},
223         { RTP_MF0,              "MF 0"},
224         { RTP_MF1,              "MF 1"},
225         { RTP_MF2,              "MF 2"},
226         { RTP_MF3,              "MF 3"},
227         { RTP_MF4,              "MF 4"},
228         { RTP_MF5,              "MF 5"},
229         { RTP_MF6,              "MF 6"},
230         { RTP_MF7,              "MF 7"},
231         { RTP_MF8,              "MF 8"},
232         { RTP_MF9,              "MF 9"},
233         { RTP_K0,               "MF K0 or KP (start-of-pulsing)"},
234         { RTP_K1,               "MF K1"},
235         { RTP_K2,               "MF K2"},
236         { RTP_S0,               "MF S0 to ST (end-of-pulsing)"},
237         { RTP_S1,               "MF S1"},
238         { RTP_S3,               "MF S3"},
239         { RTP_WINK,             "Wink"},
240         { RTP_WINKOFF,          "Wink off"},
241         { RTP_INCSEIZ,          "Incoming seizure"},
242         { RTP_SEIZURE,          "Seizure"},
243         { RTP_UNSEIZE,          "Unseize circuit"},
244         { RTP_COT,              "Continuity test"},
245         { RTP_DEFCOT,           "Default continuity tone"},
246         { RTP_COTTONE,          "Continuity tone (single tone)"},
247         { RTP_COTSEND,          "Continuity test send"},
248         { RTP_COTVERFD,         "Continuity verified"},
249         { RTP_LOOPBACK,         "Loopback"},
250         { RTP_MWATTTONE,        "Old milliwatt tone (1000 Hz)"},
251         { RTP_NEWMWATTTN,       "New milliwatt tone (1004 Hz)"},
252         { 0,               NULL },
253 };