Fixup: tvb_get_string(z) -> tvb_get_string(z)_enc
[metze/wireshark/wip.git] / epan / dissectors / packet-h248_annex_c.c
1 /*
2  *  packet-h248-annex_c.c
3  *  H.248 annex C
4  *
5  *  (c) 2006, Luis E. Garcia Ontanon <luis@ontanon.org>
6  *
7  * Wireshark - Network traffic analyzer
8  * By Gerald Combs <gerald@wireshark.org>
9  * Copyright 1998 Gerald Combs
10  *
11  * This program is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License
13  * as published by the Free Software Foundation; either version 2
14  * of the License, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24  */
25
26 #include "config.h"
27
28 #include <epan/wmem/wmem.h>
29
30 #include "packet-h248.h"
31
32 void proto_register_h248_annex_c(void);
33
34 #define PNAME  "H.248 Annex C"
35 #define PSNAME "H248C"
36 #define PFNAME "h248c"
37
38 /* H.248 Annex C */
39 static int proto_h248_pkg_annexc = -1;
40
41 static int hf_h248_pkg_annexc_media = -1;
42 static int hf_h248_pkg_annexc_ACodec = -1;
43 static int hf_h248_pkg_annexc_Mediatx = -1;
44 static int hf_h248_pkg_annexc_NSAP = -1;
45 static int hf_h248_pkg_annexc_BIR = -1;
46 static int hf_h248_pkg_annexc_transmission_mode = -1;
47 static int hf_h248_pkg_annexc_num_of_channels = -1;
48 static int hf_h248_pkg_annexc_sampling_rate = -1;
49 static int hf_h248_pkg_annexc_bit_rate = -1;
50 static int hf_h248_pkg_annexc_samplepp = -1;
51 static int hf_h248_pkg_annexc_silence_supp = -1;
52 static int hf_h248_pkg_annexc_encrypt_type = -1;
53 static int hf_h248_pkg_annexc_encrypt_key = -1;
54 static int hf_h248_pkg_annexc_gain = -1;
55 static int hf_h248_pkg_annexc_jitterbuf = -1;
56 static int hf_h248_pkg_annexc_propdelay = -1;
57 static int hf_h248_pkg_annexc_rtp_payload = -1;
58
59 static int hf_h248_pkg_annexc_h222 = -1;
60 static int hf_h248_pkg_annexc_h223 = -1;
61 static int hf_h248_pkg_annexc_v76 = -1;
62 static int hf_h248_pkg_annexc_h2250 = -1;
63
64 static int hf_h248_pkg_annexc_aesa = -1;
65 static int hf_h248_pkg_annexc_vp = -1;
66 static int hf_h248_pkg_annexc_vc = -1;
67 static int hf_h248_pkg_annexc_sc = -1;
68 static int hf_h248_pkg_annexc_bcob = -1;
69 static int hf_h248_pkg_annexc_bbtc = -1;
70 static int hf_h248_pkg_annexc_atc = -1;
71 static int hf_h248_pkg_annexc_stc = -1;
72 static int hf_h248_pkg_annexc_uppc = -1;
73 static int hf_h248_pkg_annexc_pcr0 = -1;
74 static int hf_h248_pkg_annexc_scr0 = -1;
75 static int hf_h248_pkg_annexc_mbs0 = -1;
76 static int hf_h248_pkg_annexc_pcr1 = -1;
77 static int hf_h248_pkg_annexc_scr1 = -1;
78 static int hf_h248_pkg_annexc_mbs1 = -1;
79 static int hf_h248_pkg_annexc_bei = -1;
80 static int hf_h248_pkg_annexc_ti = -1;
81 static int hf_h248_pkg_annexc_fd = -1;
82 static int hf_h248_pkg_annexc_a2pcdv = -1;
83 static int hf_h248_pkg_annexc_c2pcdv = -1;
84 static int hf_h248_pkg_annexc_appcdv = -1;
85 static int hf_h248_pkg_annexc_cppcdv = -1;
86 static int hf_h248_pkg_annexc_aclr = -1;
87 static int hf_h248_pkg_annexc_meetd = -1;
88 static int hf_h248_pkg_annexc_ceetd = -1;
89 static int hf_h248_pkg_annexc_QosClass = -1;
90 static int hf_h248_pkg_annexc_AALtype = -1;
91
92 static int hf_h248_pkg_annexc_dlci = -1;
93 static int hf_h248_pkg_annexc_cid = -1;
94 static int hf_h248_pkg_annexc_sid = -1;
95 static int hf_h248_pkg_annexc_ppt = -1;
96
97 static int hf_h248_pkg_annexc_ipv4 = -1;
98 static int hf_h248_pkg_annexc_ipv6 = -1;
99 static int hf_h248_pkg_annexc_port = -1;
100 static int hf_h248_pkg_annexc_porttype = -1;
101
102 static int hf_h248_pkg_annexc_alc = -1;
103 static int hf_h248_pkg_annexc_sut = -1;
104 static int hf_h248_pkg_annexc_tci = -1;
105 static int hf_h248_pkg_annexc_timer_cu = -1;
106 static int hf_h248_pkg_annexc_maxcpssdu = -1;
107
108 static int hf_h248_pkg_annexc_aal1st = -1;
109 static int hf_h248_pkg_annexc_cbrr = -1;
110 static int hf_h248_pkg_annexc_scri = -1;
111 static int hf_h248_pkg_annexc_ecm = -1;
112 static int hf_h248_pkg_annexc_sdbt = -1;
113 static int hf_h248_pkg_annexc_pfci = -1;
114
115 static int hf_h248_pkg_annexc_tmr = -1;
116 static int hf_h248_pkg_annexc_tmrsr = -1;
117 static int hf_h248_pkg_annexc_contcheck = -1;
118 static int hf_h248_pkg_annexc_itc = -1;
119 static int hf_h248_pkg_annexc_transmode = -1;
120 static int hf_h248_pkg_annexc_transrate = -1;
121 static int hf_h248_pkg_annexc_mult = -1;
122 static int hf_h248_pkg_annexc_syncasync = -1;
123 static int hf_h248_pkg_annexc_negotiation = -1;
124 static int hf_h248_pkg_annexc_userrate = -1;
125 static int hf_h248_pkg_annexc_intrate = -1;
126 static int hf_h248_pkg_annexc_nictx = -1;
127 static int hf_h248_pkg_annexc_nicrx = -1;
128 static int hf_h248_pkg_annexc_flowconttx = -1;
129 static int hf_h248_pkg_annexc_flowcontrx = -1;
130 static int hf_h248_pkg_annexc_rateadapthdr = -1;
131 static int hf_h248_pkg_annexc_multiframe = -1;
132 static int hf_h248_pkg_annexc_opmode = -1;
133 static int hf_h248_pkg_annexc_llidnegot = -1;
134 static int hf_h248_pkg_annexc_assign = -1;
135 static int hf_h248_pkg_annexc_inbandneg = -1;
136 static int hf_h248_pkg_annexc_stopbits = -1;
137 static int hf_h248_pkg_annexc_databits = -1;
138 static int hf_h248_pkg_annexc_parity = -1;
139 static int hf_h248_pkg_annexc_duplexmode = -1;
140 static int hf_h248_pkg_annexc_modem = -1;
141 static int hf_h248_pkg_annexc_layer2prot = -1;
142 static int hf_h248_pkg_annexc_layer3prot = -1;
143 static int hf_h248_pkg_annexc_addlayer3prot = -1;
144 static int hf_h248_pkg_annexc_dialedn = -1;
145 static int hf_h248_pkg_annexc_dialingn = -1;
146 static int hf_h248_pkg_annexc_echoci = -1;
147 static int hf_h248_pkg_annexc_nci = -1;
148 static int hf_h248_pkg_annexc_USI = -1;
149
150 static int hf_h248_pkg_annexc_fmsdu = -1;
151 static int hf_h248_pkg_annexc_bmsdu = -1;
152 static int hf_h248_pkg_annexc_sscs = -1;
153
154 static int hf_h248_pkg_annexc_sdp_v = -1;
155 static int hf_h248_pkg_annexc_sdp_o = -1;
156 static int hf_h248_pkg_annexc_sdp_s = -1;
157 static int hf_h248_pkg_annexc_sdp_i = -1;
158 static int hf_h248_pkg_annexc_sdp_u = -1;
159 static int hf_h248_pkg_annexc_sdp_e = -1;
160 static int hf_h248_pkg_annexc_sdp_p = -1;
161 static int hf_h248_pkg_annexc_sdp_c = -1;
162 static int hf_h248_pkg_annexc_sdp_b = -1;
163 static int hf_h248_pkg_annexc_sdp_z = -1;
164 static int hf_h248_pkg_annexc_sdp_k = -1;
165 static int hf_h248_pkg_annexc_sdp_a = -1;
166 static int hf_h248_pkg_annexc_sdp_t = -1;
167 static int hf_h248_pkg_annexc_sdp_r = -1;
168 static int hf_h248_pkg_annexc_sdp_m = -1;
169
170 static int hf_h248_pkg_annexc_olc = -1;
171 static int hf_h248_pkg_annexc_olcack = -1;
172 static int hf_h248_pkg_annexc_olccnf = -1;
173 static int hf_h248_pkg_annexc_olcrej = -1;
174 static int hf_h248_pkg_annexc_clc = -1;
175 static int hf_h248_pkg_annexc_clcack = -1;
176
177
178
179 static gint ett_annexc = -1;
180 static gint ett_vpvc = -1;
181 static gint ett_codec = -1;
182
183 static const value_string h248_annexc_package_properties_vals[] = {
184         { 0x0000, "Media stream properties H.248.1 Annex C" },
185         { 0x1001, "media" },
186         { 0x1002, "transmission mode" },
187         { 0x1003, "num_of_channels" },
188         { 0x1004, "sampling_rate" },
189         { 0x1005, "bit_rate" },
190         { 0x1006, "ACodec" },
191         { 0x1007, "samplepp" },
192         { 0x1008, "silence_supp" },
193         { 0x1009, "encrypt_type" },
194         { 0x100A, "encrypt_key" },
195         { 0x100B, "echo canceller" },
196         { 0x100C, "gain" },
197         { 0x100D, "jitterbuf" },
198         { 0x100E, "propdelay" },
199         { 0x100F, "rtp_payload" },
200
201         { 0x2001, "h222" },
202         { 0x2002, "h223" },
203         { 0x2003, "v76" },
204         { 0x2004, "h2250" },
205
206         { 0x3001, "Mediatx" },
207         { 0x3002, "BIR" },
208         { 0x3003, "NSAP" },
209
210         { 0x4001, "aesa" },
211         { 0x4002, "vp" },
212         { 0x4003, "sc" },
213         { 0x4004, "bcob" },
214         { 0x4005, "bbtc" },
215         { 0x4006, "atc" },
216         { 0x4007, "stc" },
217         { 0x4008, "uppc" },
218         { 0x4009, "pcr0" },
219         { 0x400a, "scr0" },
220         { 0x400b, "mbs0" },
221         { 0x400c, "pcr1" },
222         { 0x400d, "scr1" },
223         { 0x400e, "mbs1" },
224         { 0x400f, "bei" },
225         { 0x4010, "ti" },
226         { 0x4011, "fd" },
227         { 0x4012, "a2pcdv" },
228         { 0x4013, "c2pcdv" },
229         { 0x4014, "appcdv" },
230         { 0x4015, "cppcdv" },
231         { 0x4016, "aclr" },
232         { 0x4017, "meetd" },
233         { 0x4018, "ceetd" },
234         { 0x4019, "QosClass" },
235         { 0x401a, "AALtype" },
236
237         { 0x5001, "DLCI" },
238         { 0x5002, "CID" },
239         { 0x5003, "SID/Noiselevel" },
240         { 0x5004, "PPT" },
241
242         { 0x6001, "IPv4" },
243         { 0x6002, "IPv6" },
244         { 0x6003, "Port" },
245         { 0x6004, "Porttype" },
246
247         { 0x7001, "AESA" },
248         { 0x7002, "ALC" },
249         { 0x7003, "SSCS" },
250         { 0x7004, "SUT" },
251         { 0x7005, "TCI" },
252         { 0x7006, "Timer_CU" },
253         { 0x7007, "MaxCPSSDU" },
254         { 0x7008, "CID" },
255
256         { 0x8001, "AAL1ST" },
257         { 0x8002, "CBRR" },
258         { 0x8003, "SCRI" },
259         { 0x8004, "ECM" },
260         { 0x8005, "SDTB" },
261         { 0x8006, "PFCI" },
262
263         { 0x9001, "TMR" },
264         { 0x9008, "USI" },
265         { 0x9009, "syncasync" },
266         { 0x900a, "negotiation" },
267         { 0x900b, "userrate" },
268         { 0x900c, "intrate" },
269         { 0x900d, "nictx" },
270         { 0x900e, "nicrx" },
271         { 0x900f, "flowconttx" },
272         { 0x9010, "flowcontrx" },
273         { 0x9011, "rateadapthdr" },
274         { 0x9012, "multiframe" },
275         { 0x9013, "opmode" },
276         { 0x9014, "llnegot" },
277         { 0x9015, "assign" },
278         { 0x9016, "inbandneg" },
279         { 0x9017, "stopbits" },
280         { 0x9018, "databits" },
281         { 0x9019, "parity" },
282         { 0x901a, "duplexmode" },
283         { 0x901b, "modem" },
284         { 0x901c, "layer2prot" },
285         { 0x901d, "layer3prot" },
286         { 0x901e, "addlayer3prot" },
287         { 0x901f, "DialledN" },
288         { 0x9020, "DiallingN" },
289         { 0x9021, "ECHOCI" },
290         { 0x9022, "NCI" },
291         { 0x9023, "USI" },
292
293         { 0xA001, "FMSDU" },
294         { 0xA002, "BMSDU" },
295
296         { 0xB001, "SDP_V (Protocol Version)" },
297         { 0xB002, "SDP_O (Owner/creator)" },
298         { 0xB003, "SDP_S (Session Name)" },
299         { 0xB004, "SDP_I (Session Identifier)" },
300         { 0xB005, "SDP_U (URI)" },
301         { 0xB006, "SDP_E (email address)" },
302         { 0xB007, "SDP_P (phone number)" },
303         { 0xB008, "SDP_C (connection)" },
304         { 0xB009, "SDP_B (bandwidth info)" },
305         { 0xB00A, "SDP_Z (TZ adjustment)" },
306         { 0xB00B, "SDP_K (encryption key)" },
307         { 0xB00C, "SDP_A (Session attributes)" },
308         { 0xB00D, "SDP_T (Active Session Time)" },
309         { 0xB00E, "SDP_R (Repeat times)" },
310         { 0xB00F, "SDP_M (Media type, portm transport and format)" },
311
312         { 0xC001, "OLC" },
313         { 0xC002, "OLCack" },
314         { 0xC003, "OLCcnf" },
315         { 0xC004, "OLCrej" },
316         { 0xC005, "CLC" },
317         { 0xC006, "CLCack" },
318
319 { 0, NULL }
320 };
321
322
323
324 static const value_string h248_annexc_media_vals[] = {
325         {   0, "Audio" },
326         {   1, "Video" },
327         {   2, "Data" },
328         {   0, NULL }
329 };
330
331 static const value_string h248_pkg_annexc_Mediatx_vals[] = {
332         {   0x0000, "TDM Circuit" },
333         {   0x0001, "ATM" },
334         {   0x0002, "FR" },
335         {   0x0003, "Ipv4" },
336         {   0x0004, "Ipv6" },
337         {0,     NULL}
338 };
339
340 static const value_string h248_annexc_transmission_mode[] = {
341     {0,"Send"},
342     {1,"Receive"},
343     {2,"Send&Receive"},
344     {0,NULL}
345 };
346
347 static const value_string h248_pkg_annexc_sc[] _U_ = {
348     {0,"CBR"},
349     {1,"nrt-VBR1"},
350     {2,"nrt-VBR2"},
351     {3,"nrt-VBR3"},
352     {4,"rt-VBR1"},
353     {5,"rt-VBR2"},
354     {6,"rt-VBR3"},
355     {7,"UBR1"},
356     {8,"UBR2"},
357     {9,"ABR"},
358     {0,NULL}
359 };
360
361 static const value_string h248_pkg_annexc_atc_values[] = {
362     {0,"DBR"},
363     {1,"SBR1"},
364     {2,"SBR2"},
365     {3,"SBR3"},
366     {4,"ABT/IT"},
367     {5,"ABT/DT"},
368     {6,"ABR"},
369     {0,NULL}
370 };
371
372 static const value_string h248_pkg_annexc_stc_values[] = {
373     {0,"Not Susceptible to clipping"},
374     {1,"Susceptible to clipping"},
375     {0,NULL}
376 };
377
378 static const value_string h248_pkg_annexc_uppc_values[] = {
379     {0,"point-to-point"},
380     {1,"point-to-multipoint"},
381     {0,NULL}
382 };
383
384 static const value_string h248_pkg_annexc_syncasync_values[] = {
385         {0, "Synchronous Data"},
386         {1, "Asynchronous Data"},
387     {0,NULL}
388 };
389
390 static const value_string h248_pkg_annexc_negotiation_values[] = {
391         {0, "In-Band negotiation possible"},
392         {1, "In-Band negotiation not possible"},
393     {0,NULL}
394 };
395
396 static const value_string h248_pkg_annexc_userrate_values[] = {
397         {0x0,"E-Bit specified I.460 or higher negotiated in-band"},
398         {0x1,"0.6 kbps (X.1)"},
399         {0x2,"1.2 kbps"},
400         {0x3,"2.4 kbps (X.1)"},
401         {0x4,"3.6 kbps"},
402         {0x5,"4.8 kbps (X.1)"},
403         {0x6,"7.2 kbps"},
404         {0x7,"8 kbps (I.460)"},
405         {0x8,"9.6 kbps (X.1)"},
406         {0x9,"14.4 kbps"},
407         {0xa,"16 kbps (I.460)"},
408         {0xb,"19.2 kbps"},
409         {0xc,"32 kbps (I.460)"},
410         {0xd,"38.4 kbps (V.110)"},
411         {0xe,"48 kbps (X.1)"},
412         {0xf,"56 kbps"},
413
414         {0x12,"57.6 kbps (V.14 extended)"},
415         {0x13,"28.8 kbps (V.110)"},
416         {0x14,"24 kbps (V.110)"},
417         {0x15,"0.1345 kbps (X.1)"},
418         {0x16,"0.100 kbps (X.1)"},
419         {0x17,"0.075/1.2 kbps (X.1)"},
420         {0x18,"1.2/0.075 kbps (X.1)"},
421         {0x19,"0.050 kbps (X.1)"},
422         {0x1a,"0.075 kbps (X.1)"},
423         {0x1b,"0.110 kbps (X.1)"},
424         {0x1c,"0.150 kbps (X.1)"},
425         {0x1d,"0.200 kbps (X.1)"},
426         {0x1e,"0.300 kbps (X.1)"},
427         {0x1f,"12 kbps (X.1)"},
428
429     {0,NULL}
430 };
431
432 static const value_string h248_pkg_annexc_intrate_values[] = {
433         {0x0,"Not Used"},
434         {0x1,"8 kbps"},
435         {0x2,"16 kbps"},
436         {0x3,"32 kbps"},
437     {0,NULL}
438 };
439
440
441 static const value_string h248_pkg_annexc_nictx_values[] = {
442         {0,"Not required to transmit with NIC"},
443         {1,"Required to transmit with NIC"},
444     {0,NULL}
445 };
446
447 static const value_string h248_pkg_annexc_nicrx_values[] = {
448         {0,"Cannot accept data with NIC"},
449         {1,"Can accept data with NIC"},
450     {0,NULL}
451 };
452
453
454 static const value_string h248_pkg_annexc_flowconttx_values[] = {
455         {0,"Not Required"},
456         {1,"Required"},
457     {0,NULL}
458 };
459
460 static const value_string h248_pkg_annexc_flowcontrx_values[] = {
461         {0,"Cannot accept data with flow control mechanism"},
462         {1,"Can accept data with flow control mechanism"},
463     {0,NULL}
464 };
465
466 static const value_string h248_pkg_annexc_rateadapthdr_values[] = {
467         {0,"not included"},
468         {1,"included"},
469     {0,NULL}
470 };
471
472 static const value_string h248_pkg_annexc_multiframe_values[] = {
473         {0,"not supported"},
474         {1,"supported"},
475     {0,NULL}
476 };
477
478 static const value_string h248_pkg_annexc_opmode_values[] = {
479         {0,"bit transparent"},
480         {1,"protocol sensitive"},
481     {0,NULL}
482 };
483
484 static const value_string h248_pkg_annexc_llidnegot_values[] = {
485         {0,"Default, LLI=256 only"},
486         {1,"Full protocol negotiation"},
487     {0,NULL}
488 };
489
490 static const value_string h248_pkg_annexc_assign_values[] = {
491         {0,"Originator is default assignee"},
492         {1,"Originator is assignor only"},
493     {0,NULL}
494 };
495
496 static const value_string h248_pkg_annexc_inbandneg_values[] = {
497         {0,"negotiation on temporary signalling connection"},
498         {1,"negotiation in-band"},
499     {0,NULL}
500 };
501
502 static const value_string h248_pkg_annexc_stopbits_values[] = {
503         {0,"none"},
504         {1,"1 bit"},
505         {2,"1.5 bits"},
506         {3,"2 bits"},
507     {0,NULL}
508 };
509
510
511 static const value_string h248_pkg_annexc_databits_values[] = {
512         {0,"Not Used"},
513         {1,"5 bits"},
514         {2,"7 bits"},
515         {3,"8 bits"},
516     {0,NULL}
517 };
518
519
520 static const value_string h248_pkg_annexc_parity_values[] = {
521         {0,"Odd"},
522         {2,"Even"},
523         {3,"None"},
524         {4,"Forced to 0"},
525         {5,"Forced to 1"},
526     {0,NULL}
527 };
528
529
530 static const value_string h248_pkg_annexc_duplexmode_values[] = {
531         {0,"Half Duplex"},
532         {1,"Full Duplex"},
533     {0,NULL}
534 };
535
536
537 static const value_string h248_pkg_annexc_modem_values[] = {
538         {0x00,"National Use"},
539         {0x01,"National Use"},
540         {0x02,"National Use"},
541         {0x03,"National Use"},
542         {0x04,"National Use"},
543         {0x05,"National Use"},
544
545         {0x11,"V.21"},
546         {0x12,"V.22"},
547         {0x13,"V.22bis"},
548         {0x14,"V.23"},
549         {0x15,"V.26"},
550         {0x16,"V.26bis"},
551         {0x17,"V.26ter"},
552         {0x18,"V.27"},
553         {0x19,"V.27bis"},
554         {0x1A,"V.27ter"},
555         {0x1B,"V.29"},
556         {0x1D,"V.32"},
557         {0x1E,"V.34"},
558
559         {0x20,"National Use"},
560         {0x21,"National Use"},
561         {0x22,"National Use"},
562         {0x23,"National Use"},
563         {0x24,"National Use"},
564         {0x25,"National Use"},
565         {0x26,"National Use"},
566         {0x27,"National Use"},
567         {0x28,"National Use"},
568         {0x29,"National Use"},
569         {0x2a,"National Use"},
570         {0x2b,"National Use"},
571         {0x2c,"National Use"},
572         {0x2d,"National Use"},
573         {0x2e,"National Use"},
574         {0x2f,"National Use"},
575
576         {0x30,"User Specified"},
577         {0x31,"User Specified"},
578         {0x32,"User Specified"},
579         {0x33,"User Specified"},
580         {0x34,"User Specified"},
581         {0x35,"User Specified"},
582         {0x36,"User Specified"},
583         {0x37,"User Specified"},
584         {0x38,"User Specified"},
585         {0x39,"User Specified"},
586         {0x3a,"User Specified"},
587         {0x3b,"User Specified"},
588         {0x3c,"User Specified"},
589         {0x3d,"User Specified"},
590         {0x3e,"User Specified"},
591         {0x3f,"User Specified"},
592
593     {0,NULL}
594 };
595
596
597 static const value_string h248_pkg_annexc_layer2prot_values[] = {
598         {0x2,"Q.921/I.441"},
599         {0x6,"X.25, link layer"},
600         {0xC,"LLC (ISO/IEC 8802-2)"},
601     {0,NULL}
602 };
603
604 static const value_string h248_pkg_annexc_layer3prot_values[] = {
605         {0x2,"Q.921/I.441"},
606         {0x6,"X.25, packet layer"},
607         {0xC,"IP, ISO/IEC TR 9577"},
608     {0,NULL}
609 };
610
611 static const value_string h248_pkg_annexc_addlayer3prot_values[] = {
612         {0xCC,"IP (RFC 791)"},
613         {0xCF,"PPP (RFC 1661)"},
614     {0,NULL}
615 };
616
617 static const value_string h248_pkg_annexc_nci_satellite_values[] _U_ = {
618         {0x0,"no satellite circuit"},
619         {0x1,"one satellite circuit"},
620         {0x2,"two satellite circuits"},
621         {0x3,"spare"},
622     {0,NULL}
623 };
624
625 static const value_string h248_pkg_annexc_nci_continuity_values[] _U_ = {
626         {0x0,"continuity check not required"},
627         {0x1,"continuity check required on this circuit"},
628         {0x2,"continuity check performed on a previous circuit"},
629         {0x3,"spare"},
630     {0,NULL}
631 };
632
633 static const value_string h248_pkg_annexc_nci_echoctl_values[] _U_ = {
634         {0x0,"outgoing echo control device not included"},
635         {0x1,"outgoing echo control device included"},
636     {0,NULL}
637 };
638
639
640 static const value_string h248_pkg_annexc_QosClass_values[] = {
641         {0x0,"Default"},
642         {0x1,"Stringent"},
643         {0x2,"Tolerant"},
644         {0x3,"Bi-Level"},
645         {0x4,"Unbounded"},
646         {0x5,"Stringent Bi-level"},
647     {0,NULL}
648 };
649
650 static const value_string h248_pkg_annexc_AALtype_values[] = {
651         {0x0,"AAL for Voice"},
652         {0x1,"AAL1"},
653         {0x2,"AAL2"},
654         {0x3,"AAL3/4"},
655         {0x5,"AAL5"},
656         {0x10,"User Defined"},
657     {0,NULL}
658 };
659
660 static const value_string h248_pkg_annexc_porttype_values[] = {
661         {0x0,"TCP"},
662         {0x1,"UDP"},
663         {0x2,"SCTP"},
664     {0,NULL}
665 };
666
667 static const value_string h248_pkg_annexc_aal1st_values[] = {
668         {0x0,"null"},
669         {0x1,"voiceband signal transport on 64kbps"},
670         {0x2,"circuit transport"},
671         {0x4,"high quality audio signal transport"},
672         {0x5,"video signal transport"},
673     {0,NULL}
674 };
675
676 static const value_string h248_pkg_annexc_cbrr_values[] = {
677         {0x01,"64 kbps"},
678         {0x04,"1544 kbps"},
679         {0x05,"6312 kbps"},
680         {0x06,"32064 kbps"},
681         {0x07,"44736 kbps"},
682         {0x08,"44736 kbps"},
683         {0x10,"2048 kbps"},
684         {0x11,"8448 kbps"},
685         {0x12,"34368 kbps"},
686         {0x13,"139264 kbps"},
687         {0x40,"n * 64 kbps"},
688         {0x41,"n * 8 kbps"},
689     {0,NULL}
690 };
691
692 static const value_string h248_pkg_annexc_scri_values[] = {
693         {0x0,"null"},
694         {0x1,"SRTS"},
695         {0x2,"ACM"},
696     {0,NULL}
697 };
698
699
700 static const value_string h248_pkg_annexc_ecm_values[] = {
701         {0x0,"null"},
702         {0x1,"FEC - Loss"},
703         {0x2,"FEC - Delay"},
704     {0,NULL}
705 };
706
707
708 static const value_string h248_pkg_annexc_tmrsr_values[] = {
709         /* TO DO */
710     {0,NULL}
711 };
712
713
714 static const value_string h248_pkg_annexc_contcheck_values[] = {
715         /* TO DO */
716     {0,NULL}
717 };
718
719 static const value_string h248_pkg_annexc_itc_values[] = {
720         /* TO DO */
721     {0,NULL}
722 };
723
724
725 static const value_string h248_pkg_annexc_transmode_values[] = {
726         /* TO DO */
727     {0,NULL}
728 };
729
730
731 static const value_string h248_pkg_annexc_transrate_values[] = {
732         /* TO DO */
733     {0,NULL}
734 };
735
736
737
738 static void dissect_h248_annexc_acodec(proto_tree* tree,
739                                                                                 tvbuff_t* tvb,
740                                                                                 packet_info* pinfo,
741                                                                                 int hfid,
742                                                                                 h248_curr_info_t* h248_info _U_,
743                                                                                 void* implicit_p ) {
744         int len;
745         tvbuff_t* new_tvb;
746         asn1_ctx_t asn1_ctx;
747
748         asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
749         dissect_ber_octet_string(implicit_p ? *((gboolean*)implicit_p) : FALSE, &asn1_ctx, tree, tvb, 0, hfid, &new_tvb);
750
751         tree = proto_item_add_subtree(asn1_ctx.created_item,ett_codec);
752         len = tvb_length(new_tvb);
753         dissect_codec_mode(tree,new_tvb,0,len);
754 }
755
756 static void dissect_h248_annexc_BIR(proto_tree* tree,
757                                                                          tvbuff_t* tvb,
758                                                                          packet_info* pinfo,
759                                                                          int hfid,
760                                                                          h248_curr_info_t* h248_info,
761                                                                          void* implicit_p ) {
762         tvbuff_t* new_tvb = NULL;
763         asn1_ctx_t asn1_ctx;
764
765         asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
766         dissect_ber_octet_string(implicit_p ? *((gboolean*)implicit_p) : FALSE, &asn1_ctx, tree, tvb, 0, hfid, &new_tvb);
767
768         if ( new_tvb && h248_info->term && ! h248_info->term->bir ) {
769                 h248_info->term->bir = wmem_strdup(wmem_file_scope(), tvb_bytes_to_ep_str(new_tvb,0,tvb_length(new_tvb)));
770         }
771 }
772
773 static void dissect_h248_annexc_NSAP(proto_tree* tree,
774                                                                           tvbuff_t* tvb,
775                                                                           packet_info* pinfo,
776                                                                           int hfid,
777                                                                           h248_curr_info_t* h248_info,
778                                                                           void* implicit_p ) {
779         tvbuff_t* new_tvb = NULL;
780         asn1_ctx_t asn1_ctx;
781
782         asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
783         dissect_ber_octet_string(implicit_p ? *((gboolean*)implicit_p) : FALSE, &asn1_ctx, tree, tvb, 0, hfid, &new_tvb);
784         if (new_tvb) {
785                 dissect_nsap(new_tvb, 0,tvb_length(new_tvb), tree);
786                 if ( h248_info->term && ! h248_info->term->nsap) {
787                         h248_info->term->nsap = wmem_strdup(wmem_file_scope(), tvb_bytes_to_ep_str(new_tvb,0,tvb_length(new_tvb)));
788                 }
789         }
790 }
791
792 static void dissect_h248_annexc_vpvc(proto_tree* tree, tvbuff_t* tvb, packet_info* pinfo _U_, int hfid, h248_curr_info_t* h248_info _U_, void* unused _U_) {
793         proto_item* pi = proto_tree_add_item(tree,hfid,tvb,0,2,ENC_BIG_ENDIAN);
794         proto_tree* pt = proto_item_add_subtree(pi,ett_vpvc);
795         proto_tree_add_item(pt,hf_h248_pkg_annexc_vp,tvb,0,2,ENC_BIG_ENDIAN);
796         proto_tree_add_item(pt,hf_h248_pkg_annexc_vc,tvb,2,2,ENC_BIG_ENDIAN);
797 }
798
799 static void dissect_h248_annexc_USI(proto_tree* tree, tvbuff_t* tvb, packet_info* pinfo, int hfid, h248_curr_info_t* h248_info _U_, void* implicit_p) {
800         tvbuff_t* new_tvb = NULL;
801         asn1_ctx_t asn1_ctx;
802
803         asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
804         dissect_ber_octet_string(implicit_p ? *((gboolean*)implicit_p) : FALSE, &asn1_ctx, tree, tvb, 0, hfid, &new_tvb);
805         if (new_tvb)
806                 dissect_q931_bearer_capability_ie(new_tvb, 0, tvb_length(new_tvb), tree);
807 }
808
809 static void dissect_h248_annexc_SDP(proto_tree* tree, tvbuff_t* tvb, packet_info* pinfo, int hfid, h248_curr_info_t* h248_info _U_, void* implicit_p _U_) {
810         asn1_ctx_t asn1_ctx;
811
812         asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
813         dissect_ber_restricted_string( FALSE, BER_UNI_TAG_IA5String,
814                                             &asn1_ctx, tree, tvb, 0, hfid,
815                                             NULL);
816 }
817
818 gboolean h248_c_implicit = TRUE;
819
820 static h248_pkg_param_t h248_annexc_package_properties[] = {
821         { 0x1001, &hf_h248_pkg_annexc_media, h248_param_ber_integer, NULL },
822         { 0x1002, &hf_h248_pkg_annexc_transmission_mode, h248_param_ber_integer, NULL },
823         { 0x1003, &hf_h248_pkg_annexc_num_of_channels, h248_param_ber_integer, NULL },
824         { 0x1004, &hf_h248_pkg_annexc_sampling_rate, h248_param_ber_integer, NULL },
825         { 0x1005, &hf_h248_pkg_annexc_bit_rate, h248_param_ber_integer, NULL },
826         { 0x1006, &hf_h248_pkg_annexc_ACodec, dissect_h248_annexc_acodec, NULL },
827         { 0x1007, &hf_h248_pkg_annexc_samplepp, h248_param_ber_integer, NULL },
828         { 0x1008, &hf_h248_pkg_annexc_silence_supp, h248_param_ber_boolean, NULL },
829         { 0x1009, &hf_h248_pkg_annexc_encrypt_type, h248_param_ber_octetstring, NULL }, /* XXX Hand over to what in H.245? */
830         { 0x100A, &hf_h248_pkg_annexc_encrypt_key, h248_param_ber_integer, NULL },
831         { 0x100C, &hf_h248_pkg_annexc_gain, h248_param_ber_integer, NULL },
832         { 0x100D, &hf_h248_pkg_annexc_jitterbuf, h248_param_ber_integer, NULL },
833         { 0x100E, &hf_h248_pkg_annexc_propdelay, h248_param_ber_integer, NULL },
834         { 0x100F, &hf_h248_pkg_annexc_rtp_payload, h248_param_ber_integer, NULL },
835
836         { 0x2001, &hf_h248_pkg_annexc_h222, h248_param_ber_octetstring, NULL },
837         { 0x2002, &hf_h248_pkg_annexc_h223, h248_param_ber_octetstring, NULL },
838         { 0x2003, &hf_h248_pkg_annexc_v76, h248_param_ber_octetstring, NULL },
839         { 0x2004, &hf_h248_pkg_annexc_h2250, h248_param_ber_octetstring, NULL },
840
841         { 0x3001, &hf_h248_pkg_annexc_Mediatx, h248_param_ber_integer, NULL },
842         { 0x3002, &hf_h248_pkg_annexc_BIR, dissect_h248_annexc_BIR, NULL },
843         { 0x3003, &hf_h248_pkg_annexc_NSAP, dissect_h248_annexc_NSAP, NULL },
844
845         { 0x4001, &hf_h248_pkg_annexc_aesa, h248_param_ber_octetstring, NULL },
846         { 0x4002, &hf_h248_pkg_annexc_vp, dissect_h248_annexc_vpvc, NULL },
847         { 0x4003, &hf_h248_pkg_annexc_sc, h248_param_ber_integer, NULL },
848         { 0x4004, &hf_h248_pkg_annexc_bcob, h248_param_ber_integer, NULL },
849         { 0x4005, &hf_h248_pkg_annexc_bbtc, h248_param_ber_integer, NULL },
850         { 0x4006, &hf_h248_pkg_annexc_atc, h248_param_ber_integer, NULL },
851         { 0x4007, &hf_h248_pkg_annexc_stc, h248_param_ber_integer, NULL },
852         { 0x4008, &hf_h248_pkg_annexc_uppc, h248_param_ber_integer, NULL },
853         { 0x4009, &hf_h248_pkg_annexc_pcr0, h248_param_ber_octetstring, NULL },
854         { 0x400a, &hf_h248_pkg_annexc_scr0, h248_param_ber_octetstring, NULL },
855         { 0x400b, &hf_h248_pkg_annexc_mbs0, h248_param_ber_octetstring, NULL },
856         { 0x400c, &hf_h248_pkg_annexc_pcr1, h248_param_ber_octetstring, NULL },
857         { 0x400d, &hf_h248_pkg_annexc_scr1, h248_param_ber_octetstring, NULL },
858         { 0x400e, &hf_h248_pkg_annexc_mbs1, h248_param_ber_octetstring, NULL },
859         { 0x400f, &hf_h248_pkg_annexc_bei, h248_param_ber_boolean, NULL },
860         { 0x4010, &hf_h248_pkg_annexc_ti, h248_param_ber_boolean, NULL },
861         { 0x4011, &hf_h248_pkg_annexc_fd, h248_param_ber_boolean, NULL },
862         { 0x4012, &hf_h248_pkg_annexc_a2pcdv, h248_param_ber_octetstring, NULL },
863         { 0x4013, &hf_h248_pkg_annexc_c2pcdv, h248_param_ber_octetstring, NULL },
864         { 0x4014, &hf_h248_pkg_annexc_appcdv, h248_param_ber_octetstring, NULL },
865         { 0x4015, &hf_h248_pkg_annexc_cppcdv, h248_param_ber_octetstring, NULL },
866         { 0x4016, &hf_h248_pkg_annexc_aclr, h248_param_ber_integer, NULL },
867         { 0x4017, &hf_h248_pkg_annexc_meetd, h248_param_ber_octetstring,NULL },
868         { 0x4018, &hf_h248_pkg_annexc_ceetd, h248_param_ber_octetstring,NULL },
869         { 0x4019, &hf_h248_pkg_annexc_QosClass, h248_param_ber_integer, NULL },
870         { 0x401A, &hf_h248_pkg_annexc_AALtype, h248_param_ber_integer, NULL },
871
872         { 0x5001, &hf_h248_pkg_annexc_dlci, h248_param_ber_integer, NULL },
873         { 0x5002, &hf_h248_pkg_annexc_cid, h248_param_ber_integer, NULL },
874         { 0x5003, &hf_h248_pkg_annexc_sid, h248_param_ber_integer, NULL },
875         { 0x5004, &hf_h248_pkg_annexc_ppt, h248_param_ber_integer, NULL },
876
877         { 0x6001, &hf_h248_pkg_annexc_ipv4, h248_param_ber_octetstring, NULL },
878         { 0x6002, &hf_h248_pkg_annexc_ipv6, h248_param_ber_octetstring,NULL },
879         { 0x6003, &hf_h248_pkg_annexc_port, h248_param_ber_integer, NULL },
880         { 0x6004, &hf_h248_pkg_annexc_porttype, h248_param_ber_integer, NULL },
881
882         { 0x7001, &hf_h248_pkg_annexc_aesa, h248_param_ber_octetstring, NULL },
883         { 0x7002, &hf_h248_pkg_annexc_alc, h248_param_ber_octetstring,NULL }, /* from ALCAP */
884         { 0x7003, &hf_h248_pkg_annexc_sscs, h248_param_ber_octetstring, NULL },
885         { 0x7004, &hf_h248_pkg_annexc_sut, h248_param_ber_octetstring, NULL },
886         { 0x7005, &hf_h248_pkg_annexc_tci, h248_param_ber_boolean, NULL },
887         { 0x7006, &hf_h248_pkg_annexc_timer_cu, h248_param_ber_octetstring, NULL },
888         { 0x7007, &hf_h248_pkg_annexc_maxcpssdu, h248_param_ber_integer, NULL },
889         { 0x7008, &hf_h248_pkg_annexc_cid, h248_param_ber_integer, NULL },
890
891         { 0x8001, &hf_h248_pkg_annexc_aal1st, h248_param_ber_integer, NULL },
892         { 0x8002, &hf_h248_pkg_annexc_cbrr, h248_param_ber_integer, NULL },
893         { 0x8003, &hf_h248_pkg_annexc_scri, h248_param_ber_integer, NULL },
894         { 0x8004, &hf_h248_pkg_annexc_ecm, h248_param_ber_integer, NULL },
895         { 0x8005, &hf_h248_pkg_annexc_sdbt, h248_param_ber_octetstring,NULL },
896         { 0x8006, &hf_h248_pkg_annexc_pfci, h248_param_ber_integer, NULL },
897
898         { 0x9001, &hf_h248_pkg_annexc_tmr, h248_param_ber_octetstring, NULL },
899         { 0x9002, &hf_h248_pkg_annexc_tmrsr, h248_param_ber_integer, NULL },
900         { 0x9003, &hf_h248_pkg_annexc_contcheck, h248_param_ber_integer, NULL },
901         { 0x9004, &hf_h248_pkg_annexc_itc, h248_param_ber_integer, NULL },
902         { 0x9005, &hf_h248_pkg_annexc_transmode, h248_param_ber_integer, NULL },
903         { 0x9006, &hf_h248_pkg_annexc_transrate, h248_param_ber_integer, NULL },
904         { 0x9007, &hf_h248_pkg_annexc_mult, h248_param_ber_integer, NULL },
905         { 0x9008, &hf_h248_pkg_annexc_USI, dissect_h248_annexc_USI, NULL },
906         { 0x9009, &hf_h248_pkg_annexc_syncasync, h248_param_ber_integer, NULL },
907         { 0x900A, &hf_h248_pkg_annexc_negotiation, h248_param_ber_integer, NULL },
908         { 0x900B, &hf_h248_pkg_annexc_userrate, h248_param_ber_integer, NULL },
909         { 0x900C, &hf_h248_pkg_annexc_intrate, h248_param_ber_integer, NULL },
910         { 0x900D, &hf_h248_pkg_annexc_nictx, h248_param_ber_boolean, NULL },
911         { 0x900E, &hf_h248_pkg_annexc_nicrx, h248_param_ber_boolean, NULL },
912         { 0x900F, &hf_h248_pkg_annexc_flowconttx, h248_param_ber_boolean, NULL },
913         { 0x9010, &hf_h248_pkg_annexc_flowcontrx, h248_param_ber_boolean, NULL },
914         { 0x9011, &hf_h248_pkg_annexc_rateadapthdr, h248_param_ber_boolean, NULL },
915         { 0x9012, &hf_h248_pkg_annexc_multiframe, h248_param_ber_boolean, NULL },
916         { 0x9013, &hf_h248_pkg_annexc_opmode, h248_param_ber_boolean, NULL },
917         { 0x9014, &hf_h248_pkg_annexc_llidnegot, h248_param_ber_boolean, NULL },
918         { 0x9015, &hf_h248_pkg_annexc_assign, h248_param_ber_boolean, NULL },
919         { 0x9016, &hf_h248_pkg_annexc_inbandneg, h248_param_ber_boolean, NULL },
920         { 0x9017, &hf_h248_pkg_annexc_stopbits, h248_param_ber_integer, NULL },
921         { 0x9018, &hf_h248_pkg_annexc_databits, h248_param_ber_integer, NULL },
922         { 0x9019, &hf_h248_pkg_annexc_parity, h248_param_ber_integer, NULL },
923         { 0x901a, &hf_h248_pkg_annexc_duplexmode, h248_param_ber_integer, NULL },
924         { 0x901b, &hf_h248_pkg_annexc_modem, h248_param_ber_integer, NULL },
925         { 0x901c, &hf_h248_pkg_annexc_layer2prot, h248_param_ber_integer, NULL },
926         { 0x901d, &hf_h248_pkg_annexc_layer3prot, h248_param_ber_integer, NULL },
927         { 0x901e, &hf_h248_pkg_annexc_addlayer3prot, h248_param_ber_integer, NULL },
928         { 0x901f, &hf_h248_pkg_annexc_dialedn, h248_param_ber_octetstring, NULL },
929         { 0x9020, &hf_h248_pkg_annexc_dialingn, h248_param_ber_octetstring, NULL },
930         { 0x9021, &hf_h248_pkg_annexc_echoci, h248_param_ber_integer, NULL },
931         { 0x9022, &hf_h248_pkg_annexc_nci, h248_param_ber_integer, NULL },
932         { 0x9023, &hf_h248_pkg_annexc_USI, dissect_h248_annexc_USI, NULL },
933
934         { 0xA001, &hf_h248_pkg_annexc_fmsdu, h248_param_ber_octetstring, NULL },
935         { 0xA002, &hf_h248_pkg_annexc_bmsdu, h248_param_ber_octetstring, NULL },
936         { 0xA003, &hf_h248_pkg_annexc_sscs, NULL, NULL },
937
938         { 0xB001, &hf_h248_pkg_annexc_sdp_v, dissect_h248_annexc_SDP, &h248_c_implicit },
939         { 0xB002, &hf_h248_pkg_annexc_sdp_o, dissect_h248_annexc_SDP, &h248_c_implicit },
940         { 0xB003, &hf_h248_pkg_annexc_sdp_s, dissect_h248_annexc_SDP, &h248_c_implicit },
941         { 0xB004, &hf_h248_pkg_annexc_sdp_i, dissect_h248_annexc_SDP, &h248_c_implicit },
942         { 0xB005, &hf_h248_pkg_annexc_sdp_u, dissect_h248_annexc_SDP, &h248_c_implicit },
943         { 0xB006, &hf_h248_pkg_annexc_sdp_e, dissect_h248_annexc_SDP, &h248_c_implicit },
944         { 0xB007, &hf_h248_pkg_annexc_sdp_p, dissect_h248_annexc_SDP, &h248_c_implicit },
945         { 0xB008, &hf_h248_pkg_annexc_sdp_c, dissect_h248_annexc_SDP, &h248_c_implicit },
946         { 0xB009, &hf_h248_pkg_annexc_sdp_b, dissect_h248_annexc_SDP, &h248_c_implicit },
947         { 0xB00a, &hf_h248_pkg_annexc_sdp_z, dissect_h248_annexc_SDP, &h248_c_implicit },
948         { 0xB00b, &hf_h248_pkg_annexc_sdp_k, dissect_h248_annexc_SDP, &h248_c_implicit },
949         { 0xB00c, &hf_h248_pkg_annexc_sdp_a, dissect_h248_annexc_SDP, &h248_c_implicit },
950         { 0xB00d, &hf_h248_pkg_annexc_sdp_t, dissect_h248_annexc_SDP, &h248_c_implicit },
951         { 0xB00e, &hf_h248_pkg_annexc_sdp_r, dissect_h248_annexc_SDP, &h248_c_implicit },
952         { 0xB00f, &hf_h248_pkg_annexc_sdp_m, dissect_h248_annexc_SDP, &h248_c_implicit },
953
954         { 0xC001, &hf_h248_pkg_annexc_olc, h248_param_ber_octetstring, NULL },
955         { 0xC002, &hf_h248_pkg_annexc_olcack, h248_param_ber_octetstring, NULL },
956         { 0xC003, &hf_h248_pkg_annexc_olccnf, h248_param_ber_octetstring, NULL },
957         { 0xC004, &hf_h248_pkg_annexc_olcrej, h248_param_ber_octetstring, NULL },
958         { 0xC005, &hf_h248_pkg_annexc_clc, h248_param_ber_octetstring, NULL },
959         { 0xC006, &hf_h248_pkg_annexc_clcack, h248_param_ber_octetstring, NULL },
960
961         { 0, NULL, NULL, NULL }
962 };
963
964 static h248_package_t h248_annexc_package = {
965         0x0000,
966         &proto_h248_pkg_annexc,
967         &ett_annexc,
968         h248_annexc_package_properties_vals,
969         NULL,
970         NULL,
971         NULL,
972         h248_annexc_package_properties, /* properties */
973         NULL,                                                   /* signals */
974         NULL,                                                   /* events */
975         NULL                                                    /* statistics */
976 };
977
978
979 void proto_register_h248_annex_c(void) {
980         static hf_register_info hf[] = {
981                 { &hf_h248_pkg_annexc_media,
982                         { "Media", "h248.pkg.annexc.media", FT_UINT32, BASE_HEX, VALS(h248_annexc_media_vals), 0, "Media Type", HFILL }},
983                 { &hf_h248_pkg_annexc_ACodec,
984                 { "ACodec", "h248.pkg.annexc.ACodec",
985                         FT_BYTES, BASE_NONE, NULL, 0,
986                         NULL, HFILL }},
987                 { &hf_h248_pkg_annexc_Mediatx,
988                 { "Mediatx", "h248.pkg.annexc.Mediatx",
989                         FT_UINT32, BASE_DEC, VALS(h248_pkg_annexc_Mediatx_vals), 0,
990                         NULL, HFILL }},
991                 { &hf_h248_pkg_annexc_BIR,
992                 { "BIR", "h248.pkg.annexc.BIR",
993                         FT_BYTES, BASE_NONE, NULL, 0,
994                         NULL, HFILL }},
995                 { &hf_h248_pkg_annexc_NSAP,
996                 { "NSAP", "h248.pkg.annexc.NSAP",
997                         FT_BYTES, BASE_NONE, NULL, 0,
998                         NULL, HFILL }},
999                 { &hf_h248_pkg_annexc_transmission_mode,
1000                 { "Transmission Mode", "h248.pkg.annexc.transmission_mode",
1001                         FT_UINT32, BASE_DEC, VALS(h248_annexc_transmission_mode), 0,
1002                         NULL, HFILL }},
1003                 { &hf_h248_pkg_annexc_num_of_channels,
1004                 { "Number of Channels", "h248.pkg.annexc.num_of_channels",
1005                         FT_UINT32, BASE_DEC, NULL, 0,
1006                         NULL, HFILL }},
1007                 { &hf_h248_pkg_annexc_sampling_rate,
1008                 { "Sampling Rate", "h248.pkg.annexc.sampling_rate",
1009                         FT_UINT32, BASE_DEC, NULL, 0,
1010                         NULL, HFILL }},
1011                 { &hf_h248_pkg_annexc_bit_rate,
1012                 { "Bit Rate", "h248.pkg.annexc.bit_rate",
1013                         FT_UINT32, BASE_DEC, NULL, 0,
1014                         NULL, HFILL }},
1015                 { &hf_h248_pkg_annexc_samplepp,
1016                 { "Samplepp", "h248.pkg.annexc.samplepp",
1017                         FT_UINT32, BASE_DEC, NULL, 0,
1018                         NULL, HFILL }},
1019                 { &hf_h248_pkg_annexc_silence_supp,
1020                 { "SilenceSupp", "h248.pkg.annexc.silence_supp",
1021                         FT_BOOLEAN, BASE_NONE, NULL, 0x0,
1022                         "Silence Suppression", HFILL }},
1023                 { &hf_h248_pkg_annexc_encrypt_type,
1024                 { "Encrypttype", "h248.pkg.annexc.encrypt_type",
1025                         FT_BYTES, BASE_NONE, NULL, 0,
1026                         "Encryption Type", HFILL }},
1027                 { &hf_h248_pkg_annexc_encrypt_key,
1028                 { "Encrypt Key", "h248.pkg.annexc.encrypt_key",
1029                         FT_UINT32, BASE_DEC, NULL, 0,
1030                         "Encryption Key", HFILL }},
1031                 { &hf_h248_pkg_annexc_gain,
1032                 { "Gain", "h248.pkg.annexc.gain",
1033                         FT_UINT32, BASE_DEC, NULL, 0,
1034                         "Gain (dB)", HFILL }},
1035                 { &hf_h248_pkg_annexc_jitterbuf,
1036                 { "JitterBuff", "h248.pkg.annexc.jitterbuf",
1037                         FT_UINT32, BASE_DEC, NULL, 0,
1038                         "Jitter Buffer Size (ms)", HFILL }},
1039                 { &hf_h248_pkg_annexc_propdelay,
1040                 { "Propagation Delay", "h248.pkg.annexc.encrypt_type",
1041                         FT_UINT32, BASE_DEC, NULL, 0,
1042                         "Propagation Delay (ms)", HFILL }},
1043                 { &hf_h248_pkg_annexc_rtp_payload,
1044                 { "RTP Payload type", "h248.pkg.annexc.rtp_payload",
1045                         FT_UINT32, BASE_DEC, NULL, 0,
1046                         "Payload type in RTP Profile", HFILL }},
1047                 { &hf_h248_pkg_annexc_h222,
1048                 { "H222LogicalChannelParameters", "h248.pkg.annexc.h222",
1049                         FT_BYTES, BASE_NONE, NULL, 0,
1050                         NULL, HFILL }},
1051                 { &hf_h248_pkg_annexc_h223,
1052                 { "H223LogicalChannelParameters", "h248.pkg.annexc.h223",
1053                         FT_BYTES, BASE_NONE, NULL, 0,
1054                         NULL, HFILL }},
1055                 { &hf_h248_pkg_annexc_v76,
1056                 { "V76LogicalChannelParameters", "h248.pkg.annexc.v76",
1057                         FT_BYTES, BASE_NONE, NULL, 0,
1058                         NULL, HFILL }},
1059                 { &hf_h248_pkg_annexc_h2250,
1060                 { "H2250LogicalChannelParameters", "h248.pkg.annexc.h2250",
1061                         FT_BYTES, BASE_NONE, NULL, 0,
1062                         NULL, HFILL }},
1063                 { &hf_h248_pkg_annexc_aesa,
1064                 { "AESA", "h248.pkg.annexc.aesa",
1065                         FT_BYTES, BASE_NONE, NULL, 0,
1066                         "ATM End System Address", HFILL }},
1067                 { &hf_h248_pkg_annexc_vp,
1068                 { "VPI", "h248.pkg.annexc.vpi",
1069                         FT_UINT16, BASE_DEC, NULL, 0,
1070                         "Virtual Path Identifier", HFILL }},
1071                 { &hf_h248_pkg_annexc_vc,
1072                 { "VCI", "h248.pkg.annexc.vci",
1073                         FT_UINT16, BASE_DEC, NULL, 0,
1074                         "Virtual Circuit Identifier", HFILL }},
1075                 { &hf_h248_pkg_annexc_sc,
1076                 { "Service Class", "h248.pkg.annexc.sc",
1077                         FT_UINT32, BASE_DEC, NULL, 0,
1078                         NULL, HFILL }},
1079                 { &hf_h248_pkg_annexc_bcob,
1080                 { "BCOB", "h248.pkg.annexc.bcob",
1081                         FT_UINT8, BASE_DEC, NULL, 0x1F,
1082                         "Broadband Bearer Class", HFILL }},
1083                 { &hf_h248_pkg_annexc_bbtc,
1084                 { "BBTC", "h248.pkg.annexc.bbtc",
1085                         FT_UINT8, BASE_DEC, NULL, 0x3F,
1086                         "Broadband Transfer Capability", HFILL }},
1087                 { &hf_h248_pkg_annexc_atc,
1088                 { "ATC", "h248.pkg.annexc.atc",
1089                         FT_UINT32, BASE_DEC, VALS(h248_pkg_annexc_atc_values), 0x0,
1090                         "ATM Traffic Capability", HFILL }},
1091                 { &hf_h248_pkg_annexc_stc,
1092                 { "STC", "h248.pkg.annexc.stc",
1093                         FT_UINT8, BASE_DEC, VALS(h248_pkg_annexc_stc_values), 0x03,
1094                         "Susceptibility to Clipping", HFILL }},
1095                 { &hf_h248_pkg_annexc_uppc,
1096                 { "UPPC", "h248.pkg.annexc.uppc",
1097                         FT_UINT8, BASE_DEC, VALS(h248_pkg_annexc_uppc_values), 0x03,
1098                         "User Plane Connection Configuration", HFILL }},
1099
1100                 { &hf_h248_pkg_annexc_pcr0,
1101                 { "PCR0", "h248.pkg.annexc.pcr0",
1102                         FT_UINT24, BASE_DEC, NULL, 0,
1103                         "Peak Cell Rate for CLP=0", HFILL }},
1104                 { &hf_h248_pkg_annexc_scr0,
1105                 { "SCR0", "h248.pkg.annexc.scr0",
1106                         FT_UINT24, BASE_DEC, NULL, 0,
1107                         "Sustained Cell Rate for CLP=0", HFILL }},
1108                 { &hf_h248_pkg_annexc_mbs0,
1109                 { "MBS0", "h248.pkg.annexc.mbs0",
1110                         FT_UINT24, BASE_DEC, NULL, 0,
1111                         "Maximum Burst Size for CLP=0", HFILL }},
1112
1113                 { &hf_h248_pkg_annexc_pcr1,
1114                 { "PCR1", "h248.pkg.annexc.pcr1",
1115                         FT_UINT24, BASE_DEC, NULL, 0,
1116                         "Peak Cell Rate for CLP=1", HFILL }},
1117                 { &hf_h248_pkg_annexc_scr1,
1118                 { "SCR1", "h248.pkg.annexc.scr1",
1119                         FT_UINT24, BASE_DEC, NULL, 0,
1120                         "Sustained Cell Rate for CLP=1", HFILL }},
1121                 { &hf_h248_pkg_annexc_mbs1,
1122                 { "MBS1", "h248.pkg.annexc.mbs1",
1123                         FT_UINT24, BASE_DEC, NULL, 0,
1124                         "Maximum Burst Size for CLP=1", HFILL }},
1125
1126                 { &hf_h248_pkg_annexc_bei,
1127                 { "BEI", "h248.pkg.annexc.bei",
1128                         FT_BOOLEAN, BASE_NONE, NULL, 0x0,
1129                         "Best Effort Indicator", HFILL }},
1130                 { &hf_h248_pkg_annexc_ti,
1131                 { "TI", "h248.pkg.annexc.ti",
1132                         FT_BOOLEAN, BASE_NONE, NULL, 0x0,
1133                         "Tagging Indicator", HFILL }},
1134                 { &hf_h248_pkg_annexc_fd,
1135                 { "FD", "h248.pkg.annexc.fd",
1136                         FT_BOOLEAN, BASE_NONE, NULL, 0x0,
1137                         "Frame Discard", HFILL }},
1138
1139                 { &hf_h248_pkg_annexc_a2pcdv,
1140                 { "A2PCDV", "h248.pkg.annexc.a2pcdv",
1141                         FT_UINT24, BASE_DEC, NULL, 0,
1142                         "Acceptable 2 point CDV", HFILL }},
1143                 { &hf_h248_pkg_annexc_c2pcdv,
1144                 { "C2PCDV", "h248.pkg.annexc.c2pcdv",
1145                         FT_UINT24, BASE_DEC, NULL, 0,
1146                         "Cumulative 2 point CDV", HFILL }},
1147                 { &hf_h248_pkg_annexc_appcdv,
1148                 { "APPCDV", "h248.pkg.annexc.appcdv",
1149                         FT_UINT24, BASE_DEC, NULL, 0,
1150                         "Acceptable Point to Point CDV", HFILL }},
1151                 { &hf_h248_pkg_annexc_cppcdv,
1152                 { "CPPCDV", "h248.pkg.annexc.cppcdv",
1153                         FT_UINT24, BASE_DEC, NULL, 0,
1154                         "Cumulative Point to Point CDV", HFILL }},
1155                 { &hf_h248_pkg_annexc_aclr,
1156                 { "ACLR", "h248.pkg.annexc.aclr",
1157                         FT_UINT8, BASE_DEC, NULL, 0,
1158                         "Acceptable Cell Loss Ratio (Q.2965.2 ATMF UNI 4.0)", HFILL }},
1159
1160                 { &hf_h248_pkg_annexc_meetd,
1161                 { "MEETD", "h248.pkg.annexc.meetd",
1162                         FT_UINT16, BASE_DEC, NULL, 0,
1163                         "Maximum End-to-End Transit Delay (Q.2965.2 ATMF UNI 4.0)", HFILL }},
1164                 { &hf_h248_pkg_annexc_ceetd,
1165                 { "CEETD", "h248.pkg.annexc.ceetd",
1166                         FT_UINT16, BASE_DEC, NULL, 0,
1167                         "Cumulative End-to-End Transit Delay (Q.2965.2 ATMF UNI 4.0)", HFILL }},
1168                 { &hf_h248_pkg_annexc_QosClass,
1169                 { "QosClass", "h248.pkg.annexc.qosclass",
1170                         FT_UINT16, BASE_DEC, VALS(h248_pkg_annexc_QosClass_values), 0,
1171                         "QoS Class (Q.2965.1)", HFILL }},
1172                 { &hf_h248_pkg_annexc_AALtype,
1173                 { "AALtype", "h248.pkg.annexc.aaltype",
1174                         FT_UINT8, BASE_DEC, VALS(h248_pkg_annexc_AALtype_values), 0,
1175                         "AAL Type", HFILL }},
1176
1177                 { &hf_h248_pkg_annexc_dlci,
1178                 { "DLCI", "h248.pkg.annexc.dlci",
1179                         FT_UINT32, BASE_DEC, NULL, 0,
1180                         "Data Link Connection ID (FR)", HFILL }},
1181                 { &hf_h248_pkg_annexc_cid,
1182                 { "CID", "h248.pkg.annexc.cid",
1183                         FT_UINT32, BASE_DEC, NULL, 0,
1184                         "Channel-Id", HFILL }},
1185                 { &hf_h248_pkg_annexc_sid,
1186                 { "SID", "h248.pkg.annexc.sid",
1187                         FT_UINT32, BASE_DEC, NULL, 0,
1188                         "Silence Insertion Descriptor", HFILL }},
1189                 { &hf_h248_pkg_annexc_ppt,
1190                 { "PPT", "h248.pkg.annexc.ppt",
1191                         FT_UINT32, BASE_DEC, NULL, 0,
1192                         "Primary Payload Type", HFILL }},
1193
1194                 { &hf_h248_pkg_annexc_ipv4,
1195                 { "IPv4", "h248.pkg.annexc.ipv4",
1196                         FT_IPv4, BASE_NONE, NULL, 0,
1197                         "IPv4 Address", HFILL }},
1198                 { &hf_h248_pkg_annexc_ipv6,
1199                 { "IPv6", "h248.pkg.annexc.ipv6",
1200                         FT_IPv6, BASE_NONE, NULL, 0,
1201                         "IPv6 Address", HFILL }},
1202                 { &hf_h248_pkg_annexc_port,
1203                 { "Port", "h248.pkg.annexc.port",
1204                         FT_UINT16, BASE_DEC, NULL, 0,
1205                         NULL, HFILL }},
1206                 { &hf_h248_pkg_annexc_porttype,
1207                 { "PortType", "h248.pkg.annexc.porttype",
1208                         FT_UINT32, BASE_DEC, VALS(h248_pkg_annexc_porttype_values), 0,
1209                         "Port Type", HFILL }},
1210
1211                 { &hf_h248_pkg_annexc_alc,
1212                 { "ALC", "h248.pkg.annexc.alc",
1213                         FT_BYTES, BASE_NONE, NULL, 0,
1214                         "AAL2 Link Characteristics", HFILL }},
1215                 { &hf_h248_pkg_annexc_sut,
1216                 { "SUT", "h248.pkg.annexc.sut",
1217                         FT_BYTES, BASE_NONE, NULL, 0,
1218                         "Served User Transport", HFILL }},
1219                 { &hf_h248_pkg_annexc_tci,
1220                 { "TCI", "h248.pkg.annexc.tci",
1221                         FT_BOOLEAN, BASE_NONE, NULL, 0x0,
1222                         "Test Connection Indicator", HFILL }},
1223                 { &hf_h248_pkg_annexc_timer_cu,
1224                 { "Timer CU", "h248.pkg.annexc.timer_cu",
1225                         FT_UINT32, BASE_DEC, NULL, 0,
1226                         "Milliseconds to hold the  partially filled cell before sending", HFILL }},
1227                 { &hf_h248_pkg_annexc_maxcpssdu,
1228                 { "Max CPS SDU", "h248.pkg.annexc.maxcpssdu",
1229                         FT_UINT8, BASE_DEC, NULL, 0,
1230                         "Maximum Common Part Sublayer Service Data Unit size", HFILL }},
1231
1232                 { &hf_h248_pkg_annexc_aal1st,
1233                 { "AAL1ST", "h248.pkg.annexc.aal1st",
1234                         FT_UINT8, BASE_DEC, VALS(h248_pkg_annexc_aal1st_values), 0,
1235                         "AAL1 subtype", HFILL }},
1236                 { &hf_h248_pkg_annexc_cbrr,
1237                 { "CBRR", "h248.pkg.annexc.cbrr",
1238                         FT_UINT8, BASE_DEC, VALS(h248_pkg_annexc_cbrr_values), 0,
1239                         "CBR rate", HFILL }},
1240                 { &hf_h248_pkg_annexc_scri,
1241                 { "SCRI", "h248.pkg.annexc.scri",
1242                         FT_UINT8, BASE_DEC, VALS(h248_pkg_annexc_scri_values), 0,
1243                         "Source Clock frequency Recovery Method", HFILL }},
1244                 { &hf_h248_pkg_annexc_ecm,
1245                 { "ECM", "h248.pkg.annexc.ecm",
1246                         FT_UINT8, BASE_DEC, VALS(h248_pkg_annexc_ecm_values), 0,
1247                         "Error Correction Method", HFILL }},
1248                 { &hf_h248_pkg_annexc_sdbt,
1249                 { "SDBT", "h248.pkg.annexc.sdbt",
1250                         FT_UINT16, BASE_DEC, NULL, 0,
1251                         "Structured Data Transfer Blocksize", HFILL }},
1252                 { &hf_h248_pkg_annexc_pfci,
1253                 { "PFCI", "h248.pkg.annexc.pfci",
1254                         FT_UINT8, BASE_DEC, NULL, 0,
1255                         "Partially Filled Cells Identifier", HFILL }},
1256
1257                 { &hf_h248_pkg_annexc_tmr,
1258                 { "TMR", "h248.pkg.annexc.tmr",
1259                         FT_UINT8, BASE_HEX|BASE_EXT_STRING, &isup_transmission_medium_requirement_value_ext, 0,
1260                         "Transmission Medium Requirement", HFILL }},
1261                 { &hf_h248_pkg_annexc_tmrsr,
1262                 { "TMSR", "h248.pkg.annexc.tmsr",
1263                         FT_UINT8, BASE_HEX, VALS(h248_pkg_annexc_tmrsr_values), 0,
1264                         "Transmission Medium Requirement Subrate", HFILL }},
1265                 { &hf_h248_pkg_annexc_contcheck,
1266                 { "Continuity Check", "h248.pkg.annexc.tmsr",
1267                         FT_UINT8, BASE_DEC, VALS(h248_pkg_annexc_contcheck_values), 0x0C,
1268                         NULL, HFILL }},
1269
1270                 { &hf_h248_pkg_annexc_itc,
1271                 { "ITC", "h248.pkg.annexc.itc",
1272                         FT_UINT8, BASE_DEC, VALS(h248_pkg_annexc_itc_values), 0x1f,
1273                         "Information Transfer Capability", HFILL }},
1274                 { &hf_h248_pkg_annexc_transmode,
1275                 { "TransMode", "h248.pkg.annexc.transmode",
1276                         FT_UINT8, BASE_DEC, VALS(h248_pkg_annexc_transmode_values), 0x60,
1277                         "Transfer Mode", HFILL }},
1278                 { &hf_h248_pkg_annexc_transrate,
1279                 { "TransRate", "h248.pkg.annexc.transrate",
1280                         FT_UINT8, BASE_DEC, VALS(h248_pkg_annexc_transrate_values), 0x1f,
1281                         "Transfer Rate", HFILL }},
1282                 { &hf_h248_pkg_annexc_mult,
1283                 { "Rate Multiplier", "h248.pkg.annexc.mult",
1284                         FT_UINT8, BASE_DEC, NULL, 0,
1285                         NULL, HFILL }},
1286                 { &hf_h248_pkg_annexc_syncasync,
1287                 { "SyncAsync", "h248.pkg.annexc.syncasync",
1288                         FT_UINT8, BASE_DEC, VALS(h248_pkg_annexc_syncasync_values), 0x80,
1289                         "Synchronous/Asynchronous", HFILL }},
1290                 { &hf_h248_pkg_annexc_negotiation,
1291                 { "UPPC", "h248.pkg.annexc.negotiation",
1292                         FT_UINT8, BASE_DEC, VALS(h248_pkg_annexc_negotiation_values), 0x40,
1293                         "Negotiation", HFILL }},
1294
1295                 { &hf_h248_pkg_annexc_userrate,
1296                 { "Userrate", "h248.pkg.annexc.userrate",
1297                         FT_UINT8, BASE_HEX, VALS(h248_pkg_annexc_userrate_values), 0x1f,
1298                         "User Rate", HFILL }},
1299                 { &hf_h248_pkg_annexc_intrate,
1300                 { "UPPC", "h248.pkg.annexc.intrate",
1301                         FT_UINT8, BASE_HEX, VALS(h248_pkg_annexc_intrate_values), 0xc0,
1302                         "Intermediate Rate", HFILL }},
1303                 { &hf_h248_pkg_annexc_nictx,
1304                 { "nictx", "h248.pkg.annexc.nictx",
1305                         FT_UINT8, BASE_HEX, VALS(h248_pkg_annexc_nictx_values), 0xc0,
1306                         "Network independent clock on transmission", HFILL }},
1307                 { &hf_h248_pkg_annexc_nicrx,
1308                 { "nicrx", "h248.pkg.annexc.nicrx",
1309                         FT_UINT8, BASE_HEX, VALS(h248_pkg_annexc_nicrx_values), 0xc0,
1310                         "Network independent clock on reception", HFILL }},
1311                 { &hf_h248_pkg_annexc_flowconttx,
1312                 { "flowconttx", "h248.pkg.annexc.flowconttx",
1313                         FT_UINT8, BASE_HEX, VALS(h248_pkg_annexc_flowconttx_values), 0xc0,
1314                         "Flow Control on Transmission", HFILL }},
1315                 { &hf_h248_pkg_annexc_flowcontrx,
1316                 { "flowcontrx", "h248.pkg.annexc.flowcontrx",
1317                         FT_UINT8, BASE_HEX, VALS(h248_pkg_annexc_flowcontrx_values), 0xc0,
1318                         "Flow Control on Reception", HFILL }},
1319                 { &hf_h248_pkg_annexc_rateadapthdr,
1320                 { "rateadapthdr", "h248.pkg.annexc.rateadapthdr",
1321                         FT_UINT8, BASE_HEX, VALS(h248_pkg_annexc_rateadapthdr_values), 0xc0,
1322                         "Rate Adaptation Header/No-Header", HFILL }},
1323                 { &hf_h248_pkg_annexc_multiframe,
1324                 { "multiframe", "h248.pkg.annexc.multiframe",
1325                         FT_UINT8, BASE_HEX, VALS(h248_pkg_annexc_multiframe_values), 0xc0,
1326                         "Multiple Frame establishment support in datalink", HFILL }},
1327                 { &hf_h248_pkg_annexc_opmode,
1328                 { "OPMODE", "h248.pkg.annexc.opmode",
1329                         FT_UINT8, BASE_HEX, VALS(h248_pkg_annexc_opmode_values), 0xc0,
1330                         "Mode of operation", HFILL }},
1331                 { &hf_h248_pkg_annexc_llidnegot,
1332                 { "llidnegot", "h248.pkg.annexc.llidnegot",
1333                         FT_UINT8, BASE_HEX, VALS(h248_pkg_annexc_llidnegot_values), 0xc0,
1334                         "Logical Link Identifier negotiation", HFILL }},
1335
1336                 { &hf_h248_pkg_annexc_assign,
1337                 { "llidnegot", "h248.pkg.annexc.assign",
1338                         FT_UINT8, BASE_HEX, VALS(h248_pkg_annexc_assign_values), 0xc0,
1339                         "Assignor/Assignee", HFILL }},
1340                 { &hf_h248_pkg_annexc_inbandneg,
1341                 { "inbandneg", "h248.pkg.annexc.inbandneg",
1342                         FT_UINT8, BASE_HEX, VALS(h248_pkg_annexc_inbandneg_values), 0xc0,
1343                         "In-band/Out-band negotiation", HFILL }},
1344                 { &hf_h248_pkg_annexc_stopbits,
1345                 { "stopbits", "h248.pkg.annexc.stopbits",
1346                         FT_UINT8, BASE_HEX, VALS(h248_pkg_annexc_stopbits_values), 0xc0,
1347                         "Number of stop bits", HFILL }},
1348                 { &hf_h248_pkg_annexc_databits,
1349                 { "databits", "h248.pkg.annexc.databits",
1350                         FT_UINT8, BASE_HEX, VALS(h248_pkg_annexc_databits_values), 0xc0,
1351                         "Number of data bits", HFILL }},
1352                 { &hf_h248_pkg_annexc_parity,
1353                 { "parity", "h248.pkg.annexc.parity",
1354                         FT_UINT8, BASE_HEX, VALS(h248_pkg_annexc_parity_values), 0xe0,
1355                         "Parity Information Bits", HFILL }},
1356                 { &hf_h248_pkg_annexc_duplexmode,
1357                 { "duplexmode", "h248.pkg.annexc.duplexmode",
1358                         FT_UINT8, BASE_HEX, VALS(h248_pkg_annexc_duplexmode_values), 0x80,
1359                         "Mode Duplex", HFILL }},
1360
1361                 { &hf_h248_pkg_annexc_modem,
1362                 { "modem", "h248.pkg.annexc.modem",
1363                         FT_UINT8, BASE_HEX, VALS(h248_pkg_annexc_modem_values), 0xfc,
1364                         "Modem Type", HFILL }},
1365                 { &hf_h248_pkg_annexc_layer2prot,
1366                 { "layer2prot", "h248.pkg.annexc.layer2prot",
1367                         FT_UINT8, BASE_HEX, VALS(h248_pkg_annexc_layer2prot_values), 0x80,
1368                         "Layer 2 protocol", HFILL }},
1369                 { &hf_h248_pkg_annexc_layer3prot,
1370                 { "layer3prot", "h248.pkg.annexc.layer3prot",
1371                         FT_UINT8, BASE_HEX, VALS(h248_pkg_annexc_layer3prot_values), 0x80,
1372                         "Layer 3 protocol", HFILL }},
1373                 { &hf_h248_pkg_annexc_addlayer3prot,
1374                 { "addlayer3prot", "h248.pkg.annexc.addlayer3prot",
1375                         FT_UINT8, BASE_HEX, VALS(h248_pkg_annexc_addlayer3prot_values), 0x80,
1376                         "Additional User Information Layer 3 protocol", HFILL }},
1377                 { &hf_h248_pkg_annexc_dialedn,
1378                 { "Dialed Number", "h248.pkg.annexc.dialedn",
1379                         FT_BYTES, BASE_NONE, NULL, 0,
1380                         NULL, HFILL }},
1381                 { &hf_h248_pkg_annexc_dialingn,
1382                 { "Dialing Number", "h248.pkg.annexc.dialingn",
1383                         FT_BYTES, BASE_NONE, NULL, 0,
1384                         NULL, HFILL }},
1385                 { &hf_h248_pkg_annexc_echoci,
1386                 { "ECHOCI", "h248.pkg.annexc.echoci",
1387                         FT_BYTES, BASE_NONE, NULL, 0,
1388                         "Not used", HFILL }},
1389                 { &hf_h248_pkg_annexc_nci,
1390                 { "NCI", "h248.pkg.annexc.nci",
1391                         FT_UINT8, BASE_HEX, NULL, 0xff,
1392                         "Nature of Connection Indicator", HFILL }},
1393
1394
1395                 { &hf_h248_pkg_annexc_USI,
1396                 { "USI", "h248.pkg.annexc.USI",
1397                         FT_BYTES, BASE_NONE, NULL, 0,
1398                         "User Service Information", HFILL }},
1399
1400
1401                 { &hf_h248_pkg_annexc_fmsdu,
1402                 { "fmsdu", "h248.pkg.annexc.fmsdu",
1403                         FT_BYTES, BASE_NONE, NULL, 0,
1404                         NULL, HFILL }},
1405                 { &hf_h248_pkg_annexc_bmsdu,
1406                 { "bmsdu", "h248.pkg.annexc.bmsdu",
1407                         FT_BYTES, BASE_NONE, NULL, 0,
1408                         NULL, HFILL }},
1409                 { &hf_h248_pkg_annexc_sscs,
1410                 { "sscs", "h248.pkg.annexc.sscs",
1411                         FT_BYTES, BASE_NONE, NULL, 0,
1412                         NULL, HFILL }},
1413
1414
1415                 { &hf_h248_pkg_annexc_sdp_v,
1416                 { "sdp_v", "h248.pkg.annexc.sdp_v",
1417                         FT_STRING, BASE_NONE, NULL, 0,
1418                         "SDP V", HFILL }},
1419                 { &hf_h248_pkg_annexc_sdp_o,
1420                 { "sdp_o", "h248.pkg.annexc.sdp_o",
1421                         FT_STRING, BASE_NONE, NULL, 0,
1422                         "SDP O", HFILL }},
1423                 { &hf_h248_pkg_annexc_sdp_s,
1424                 { "sdp_s", "h248.pkg.annexc.sdp_s",
1425                         FT_STRING, BASE_NONE, NULL, 0,
1426                         "SDP S", HFILL }},
1427                 { &hf_h248_pkg_annexc_sdp_i,
1428                 { "sdp_i", "h248.pkg.annexc.sdp_i",
1429                         FT_STRING, BASE_NONE, NULL, 0,
1430                         "SDP I", HFILL }},
1431                 { &hf_h248_pkg_annexc_sdp_u,
1432                 { "sdp_u", "h248.pkg.annexc.sdp_u",
1433                         FT_STRING, BASE_NONE, NULL, 0,
1434                         "SDP U", HFILL }},
1435                 { &hf_h248_pkg_annexc_sdp_e,
1436                 { "sdp_e", "h248.pkg.annexc.sdp_e",
1437                         FT_STRING, BASE_NONE, NULL, 0,
1438                         "SDP E", HFILL }},
1439                 { &hf_h248_pkg_annexc_sdp_p,
1440                 { "sdp_p", "h248.pkg.annexc.sdp_p",
1441                         FT_STRING, BASE_NONE, NULL, 0,
1442                         "SDP P", HFILL }},
1443                 { &hf_h248_pkg_annexc_sdp_c,
1444                 { "sdp_c", "h248.pkg.annexc.sdp_c",
1445                         FT_STRING, BASE_NONE, NULL, 0,
1446                         "SDP C", HFILL }},
1447                 { &hf_h248_pkg_annexc_sdp_b,
1448                 { "sdp_b", "h248.pkg.annexc.sdp_b",
1449                         FT_STRING, BASE_NONE, NULL, 0,
1450                         "SDP B", HFILL }},
1451                 { &hf_h248_pkg_annexc_sdp_z,
1452                 { "sdp_z", "h248.pkg.annexc.sdp_z",
1453                         FT_STRING, BASE_NONE, NULL, 0,
1454                         "SDP Z", HFILL }},
1455                 { &hf_h248_pkg_annexc_sdp_k,
1456                 { "sdp_k", "h248.pkg.annexc.sdp_k",
1457                         FT_STRING, BASE_NONE, NULL, 0,
1458                         "SDP K", HFILL }},
1459                 { &hf_h248_pkg_annexc_sdp_a,
1460                 { "sdp_a", "h248.pkg.annexc.sdp_a",
1461                         FT_STRING, BASE_NONE, NULL, 0,
1462                         "SDP A", HFILL }},
1463                 { &hf_h248_pkg_annexc_sdp_t,
1464                 { "sdp_t", "h248.pkg.annexc.sdp_t",
1465                         FT_STRING, BASE_NONE, NULL, 0,
1466                         "SDP T", HFILL }},
1467                 { &hf_h248_pkg_annexc_sdp_r,
1468                 { "sdp_r", "h248.pkg.annexc.sdp_r",
1469                         FT_STRING, BASE_NONE, NULL, 0,
1470                         "SDP R", HFILL }},
1471                 { &hf_h248_pkg_annexc_sdp_m,
1472                 { "sdp_m", "h248.pkg.annexc.sdp_m",
1473                         FT_STRING, BASE_NONE, NULL, 0,
1474                         "SDP M", HFILL }},
1475
1476                 { &hf_h248_pkg_annexc_olc,
1477                 { "OLC", "h248.pkg.annexc.olc",
1478                         FT_BYTES, BASE_NONE, NULL, 0,
1479                         "Open Logical Channel", HFILL }},
1480                 { &hf_h248_pkg_annexc_olcack,
1481                 { "OLCack", "h248.pkg.annexc.olcack",
1482                         FT_BYTES, BASE_NONE, NULL, 0,
1483                         "Open Logical Channel Acknowledge", HFILL }},
1484                 { &hf_h248_pkg_annexc_olccnf,
1485                 { "OLCcnf", "h248.pkg.annexc.olccnf",
1486                         FT_BYTES, BASE_NONE, NULL, 0,
1487                         "Open Logical Channel CNF", HFILL }},
1488                 { &hf_h248_pkg_annexc_olcrej,
1489                 { "OLCrej", "h248.pkg.annexc.olcrej",
1490                         FT_BYTES, BASE_NONE, NULL, 0,
1491                         "Open Logical Channel Reject", HFILL }},
1492                 { &hf_h248_pkg_annexc_clc,
1493                 { "CLC", "h248.pkg.annexc.clc",
1494                         FT_BYTES, BASE_NONE, NULL, 0,
1495                         "Close Logical Channel", HFILL }},
1496                 { &hf_h248_pkg_annexc_clcack,
1497                 { "CLCack", "h248.pkg.annexc.clcack",
1498                         FT_BYTES, BASE_NONE, NULL, 0,
1499                         NULL, HFILL }},
1500         };
1501
1502         static gint *ett[] = {
1503                 &ett_annexc,
1504                 &ett_vpvc,
1505                 &ett_codec
1506         };
1507
1508         proto_h248_pkg_annexc = proto_register_protocol(PNAME, PSNAME, PFNAME);
1509
1510         proto_register_field_array(proto_h248_pkg_annexc, hf, array_length(hf));
1511
1512         proto_register_subtree_array(ett, array_length(ett));
1513
1514         h248_register_package(&h248_annexc_package,MERGE_PKG_HIGH);
1515
1516 }