diff options
author | Anders Broman <anders.broman@ericsson.com> | 2005-05-02 18:32:57 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2005-05-02 18:32:57 +0000 |
commit | c1a196721861a94de65bbe7209edc63ac6f6397e (patch) | |
tree | 6446cd616337659f4c6d4233225f5f55dff5e5ba /asn1 | |
parent | 5a2d87c58664ef7472cce9d46ec6227b470019b0 (diff) |
Add dissection of Q.850 cause.
svn path=/trunk/; revision=14274
Diffstat (limited to 'asn1')
-rw-r--r-- | asn1/camel/camel.asn | 5 | ||||
-rw-r--r-- | asn1/camel/camel.cnf | 13 | ||||
-rw-r--r-- | asn1/camel/packet-camel-template.c | 2 |
3 files changed, 17 insertions, 3 deletions
diff --git a/asn1/camel/camel.asn b/asn1/camel/camel.asn index 8a5186b7c1..b74efcd32e 100644 --- a/asn1/camel/camel.asn +++ b/asn1/camel/camel.asn @@ -1673,8 +1673,9 @@ FurnishChargingInformationArg ::= CamelFCIBillingChargingCharacteristics -- ReleaseCallArg notes: not recursive, exported, -- locally refd 1 times, import refd 0 times -ReleaseCallArg ::= -OCTET STRING (SIZE (minCauseLength..32)) +ReleaseCallArg ::= Q850Cause + +Q850Cause ::=OCTET STRING (SIZE (minCauseLength..32)) -- ReceivedInformationArg notes: not recursive, exported, -- locally refd 1 times, import refd 0 times diff --git a/asn1/camel/camel.cnf b/asn1/camel/camel.cnf index 1b1a71f4c3..ce9a28b744 100644 --- a/asn1/camel/camel.cnf +++ b/asn1/camel/camel.cnf @@ -84,4 +84,17 @@ proto_tree_add_string(tree, hf_camel_addr_digits, parameter_tvb, 1, -1, digit_str); #.END +#---------------------------------------------------------------------------------------- +#.FN_BODY Q850Cause + + tvbuff_t *camel_tvb; + guint8 Cause_value; + offset = dissect_ber_octet_string(implicit_tag, pinfo, tree, tvb, offset, hf_index, &camel_tvb); + + dissect_q931_cause_ie(camel_tvb, 0, tvb_length_remaining(camel_tvb,0), + tree, hf_camel_cause_indicator, &Cause_value); + + + return offset; +#.END diff --git a/asn1/camel/packet-camel-template.c b/asn1/camel/packet-camel-template.c index 29b634203f..102643e736 100644 --- a/asn1/camel/packet-camel-template.c +++ b/asn1/camel/packet-camel-template.c @@ -218,7 +218,7 @@ static int dissect_invokeData(packet_info *pinfo, proto_tree *tree, tvbuff_t *tv offset=dissect_camel_ConnectArg(FALSE, tvb, offset, pinfo, tree, -1); break; case 22: /*releaseCall*/ - offset=dissect_camel_ReleaseCallArg(FALSE, tvb, offset, pinfo, tree, -1); + offset=dissect_camel_ReleaseCallArg(FALSE, tvb, offset, pinfo, tree, hf_camel_cause); break; case 23: /*RequestReportBCSMEvent*/ offset=dissect_camel_RequestReportBCSMEventArg(FALSE, tvb, offset, pinfo, tree, -1); |