aboutsummaryrefslogtreecommitdiffstats
path: root/asn1
diff options
context:
space:
mode:
authorLuis Ontanon <luis.ontanon@gmail.com>2005-05-10 21:54:37 +0000
committerLuis Ontanon <luis.ontanon@gmail.com>2005-05-10 21:54:37 +0000
commit5535853bf20fd38df9bcba7d5327f18c088df280 (patch)
tree1a0a859a71c2e69c6b7332141b0eacb77ecebd48 /asn1
parent88c39bc93bf653d38289412e071d8bcd2ee54389 (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 svn path=/trunk/; revision=14343
Diffstat (limited to 'asn1')
-rw-r--r--asn1/h248/packet-h248-template.c10
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"
};