summaryrefslogtreecommitdiff
path: root/asn1/camel
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2011-04-06 06:20:32 +0000
committerAnders Broman <anders.broman@ericsson.com>2011-04-06 06:20:32 +0000
commitcb0e7f80da855fd806a755a9318a6af050766526 (patch)
tree6b1a3569372a9eb06cec689aeca5b53c2952b639 /asn1/camel
parent9121c18590c1c3a20dea0d04ce3082e46fb25631 (diff)
downloadwireshark-cb0e7f80da855fd806a755a9318a6af050766526.tar.gz
Missing decoding for CalledPartyBCD number in CAMEL
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5788 svn path=/trunk/; revision=36488
Diffstat (limited to 'asn1/camel')
-rw-r--r--asn1/camel/camel.cnf11
-rw-r--r--asn1/camel/packet-camel-template.c3
2 files changed, 14 insertions, 0 deletions
diff --git a/asn1/camel/camel.cnf b/asn1/camel/camel.cnf
index c31ec8d417..4f3d768665 100644
--- a/asn1/camel/camel.cnf
+++ b/asn1/camel/camel.cnf
@@ -604,6 +604,17 @@ proto_tree *subtree;
else
%(DEFAULT_BODY)s
+#.FN_BODY CalledPartyBCDNumber VAL_PTR = &parameter_tvb
+ tvbuff_t *parameter_tvb;
+ proto_tree *subtree;
+
+%(DEFAULT_BODY)s
+
+ if (!parameter_tvb)
+ return offset;
+ subtree = proto_item_add_subtree(actx->created_item, ett_camel_calledpartybcdnumber);
+ de_cld_party_bcd_num(parameter_tvb, subtree, actx->pinfo, 0, tvb_length(parameter_tvb), NULL, 0);
+
#.END
#.TYPE_ATTR
diff --git a/asn1/camel/packet-camel-template.c b/asn1/camel/packet-camel-template.c
index 475f008b21..f5239416c6 100644
--- a/asn1/camel/packet-camel-template.c
+++ b/asn1/camel/packet-camel-template.c
@@ -53,6 +53,7 @@
#include "packet-e164.h"
#include "packet-isup.h"
#include "packet-gsm_map.h"
+#include "packet-gsm_a_common.h"
#include "packet-inap.h"
#include "packet-tcap.h"
#include <epan/camel-persistentdata.h>
@@ -129,6 +130,7 @@ static gint ett_camel_pdptypenumber = -1;
static gint ett_camel_cause = -1;
static gint ett_camel_RPcause = -1;
static gint ett_camel_stat = -1;
+static guint ett_camel_calledpartybcdnumber = -1;
#include "packet-camel-ett.c"
@@ -613,6 +615,7 @@ void proto_register_camel(void) {
&ett_camel_cause,
&ett_camel_RPcause,
&ett_camel_stat,
+ &ett_camel_calledpartybcdnumber,
#include "packet-camel-ettarr.c"
};