diff options
author | Anders Broman <anders.broman@ericsson.com> | 2018-12-13 14:24:30 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2018-12-13 14:11:57 +0000 |
commit | 2754d4d80f705f0a9884cac06510f8d96fc1ba6f (patch) | |
tree | a9347b673873484434862d6340ad31eadeffbd54 | |
parent | 5e11448a7eec97373ab742ac3f9883e6dee46b95 (diff) |
SIP: Add the generated Call Id to the tree.
Change-Id: I0fd5aff70452062d24cc777c002b6d02f7c5a691
Reviewed-on: https://code.wireshark.org/review/31032
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
-rw-r--r-- | epan/dissectors/packet-sip.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/epan/dissectors/packet-sip.c b/epan/dissectors/packet-sip.c index fbec8f45e3..260b0b7705 100644 --- a/epan/dissectors/packet-sip.c +++ b/epan/dissectors/packet-sip.c @@ -4097,6 +4097,7 @@ dissect_sip_common(tvbuff_t *tvb, int offset, int remaining_length, packet_info case POS_CALL_ID : { char *value = tvb_get_string_enc(wmem_packet_scope(), tvb, value_offset, value_len, ENC_UTF_8|ENC_NA); + proto_item *gen_item; /* Store the Call-id */ g_strlcpy(call_id, value, MAX_CALL_ID_SIZE); @@ -4107,6 +4108,11 @@ dissect_sip_common(tvbuff_t *tvb, int offset, int remaining_length, packet_info hf_header_array[hf_index], tvb, offset, next_offset - offset, value); + gen_item = proto_tree_add_string(hdr_tree, + hf_sip_call_id_gen, tvb, + offset, next_offset - offset, + value); + PROTO_ITEM_SET_GENERATED(gen_item); sip_proto_set_format_text(hdr_tree, sip_element_item, tvb, offset, linelen); } break; |