diff options
author | lego <lego@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-05-10 21:54:37 +0000 |
---|---|---|
committer | lego <lego@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-05-10 21:54:37 +0000 |
commit | a24ebb854bb036f53a9c73c1dd289878ba44d9b7 (patch) | |
tree | 1a0a859a71c2e69c6b7332141b0eacb77ecebd48 /asn1/h248 | |
parent | a8fa4a2f89f87a6b8b0292d9155113b176330f6c (diff) |
- export Audio Codec modes from isup/bicc
- detailed dissection of GSM/UMTS speech code list ETSI 126 103 (3gpp 26.103 v3.0.0)
- use it for H.248
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14343 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'asn1/h248')
-rw-r--r-- | asn1/h248/packet-h248-template.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/asn1/h248/packet-h248-template.c b/asn1/h248/packet-h248-template.c index 6e0ab197a4..d270b1dcc9 100644 --- a/asn1/h248/packet-h248-template.c +++ b/asn1/h248/packet-h248-template.c @@ -75,6 +75,8 @@ static int hf_h248_package_3GUP_initdir = -1; static gint ett_h248 = -1; static gint ett_mtpaddress = -1; static gint ett_packagename = -1; +static gint ett_codec = -1; + #include "packet-h248-ett.c" @@ -284,14 +286,17 @@ static void dissect_h248_annex_C_PDU(gboolean implicit_tag, tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint16 name_minor) { int offset = 0; tvbuff_t *new_tvb; - + switch ( name_minor ){ case 0x1001: /* Media */ proto_tree_add_text(tree, tvb, offset, -1,"Media"); break; case 0x1006: /* ACodec Ref.: ITU-T Rec. Q.765.5 */ - offset = dissect_ber_octet_string(implicit_tag, pinfo, tree, tvb, offset, hf_h248_package_annex_C_ACodec, &new_tvb); + dissect_ber_octet_string(implicit_tag, pinfo, tree, tvb, offset, hf_h248_package_annex_C_ACodec, &new_tvb); + tree = proto_item_add_subtree(get_ber_last_created_item(),ett_codec); + len = tvb_get_guint8(tvb,0); + dissect_codec_mode(tree,tvb,1,len); break; case 0x3001: /* Mediatx */ offset = dissect_ber_integer(FALSE, pinfo, tree, tvb, offset, hf_h248_package_annex_C_Mediatx, NULL); @@ -694,6 +699,7 @@ void proto_register_h248(void) { &ett_h248, &ett_mtpaddress, &ett_packagename, + &ett_codec, #include "packet-h248-ettarr.c" }; |