forked from osmocom/wireshark
101 lines
2.8 KiB
INI
101 lines
2.8 KiB
INI
# inap.cnf
|
|
# inap conformation file
|
|
|
|
# $Id$
|
|
|
|
#.MODULE_IMPORT
|
|
|
|
#.EXPORTS
|
|
|
|
|
|
#.PDU
|
|
|
|
|
|
#.NO_EMIT
|
|
|
|
#.TYPE_RENAME
|
|
|
|
#.FIELD_RENAME
|
|
|
|
#----------------------------------------------------------------------------------------
|
|
#.FN_BODY CallingPartyNumber
|
|
|
|
|
|
proto_item* parameter_item;
|
|
proto_item* parameter_tree;
|
|
tvbuff_t *isup_tvb;
|
|
guint32 len;
|
|
|
|
len=tvb_length_remaining(tvb,offset);
|
|
parameter_item = proto_tree_add_item(tree, hf_index, tvb, offset, -1, FALSE);
|
|
parameter_tree = proto_item_add_subtree(parameter_item, ett_camelisup_parameter);
|
|
isup_tvb = tvb_new_subset(tvb, offset,-1 , -1 );
|
|
dissect_isup_calling_party_number_parameter(isup_tvb, parameter_tree, parameter_item);
|
|
offset += len;
|
|
#.END
|
|
|
|
#----------------------------------------------------------------------------------------
|
|
#.FN_BODY CalledPartyNumber
|
|
|
|
|
|
proto_item* parameter_item;
|
|
proto_item* parameter_tree;
|
|
tvbuff_t *isup_tvb;
|
|
|
|
parameter_item = proto_tree_add_item(tree, hf_index, tvb, offset, -1, FALSE);
|
|
parameter_tree = proto_item_add_subtree(parameter_item, ett_camelisup_parameter);
|
|
isup_tvb = tvb_new_subset(tvb, offset,-1 , -1 );
|
|
dissect_isup_called_party_number_parameter(isup_tvb, parameter_tree, parameter_item);
|
|
|
|
#.END
|
|
|
|
#----------------------------------------------------------------------------------------
|
|
#.FN_BODY Imsi
|
|
|
|
|
|
tvbuff_t *parameter_tvb;
|
|
char *digit_str;
|
|
|
|
offset = dissect_ber_octet_string(implicit_tag, pinfo, tree, tvb, offset, hf_index,
|
|
¶meter_tvb);
|
|
if (!parameter_tvb)
|
|
return offset;
|
|
|
|
digit_str = unpack_digits(parameter_tvb, 0);
|
|
proto_tree_add_string(tree, hf_camel_imsi_digits, parameter_tvb, 0, -1, digit_str);
|
|
|
|
#.END
|
|
#----------------------------------------------------------------------------------------
|
|
#.FN_BODY ISDN-AddressString
|
|
|
|
tvbuff_t *parameter_tvb;
|
|
char *digit_str;
|
|
|
|
offset = dissect_ber_octet_string(implicit_tag, pinfo, tree, tvb, offset, hf_index,
|
|
¶meter_tvb);
|
|
|
|
if (!parameter_tvb)
|
|
return offset;
|
|
|
|
proto_tree_add_item(tree, hf_camel_addr_extension, parameter_tvb, 0,1,FALSE);
|
|
proto_tree_add_item(tree, hf_camel_addr_natureOfAddressIndicator, parameter_tvb, 0,1,FALSE);
|
|
proto_tree_add_item(tree, hf_camel_addr_numberingPlanInd, parameter_tvb, 0,1,FALSE);
|
|
digit_str = unpack_digits(parameter_tvb, 1);
|
|
|
|
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
|
|
|