diff --git a/epan/dissectors/packet-sip.c b/epan/dissectors/packet-sip.c index a19aaff33e..ae287db43f 100644 --- a/epan/dissectors/packet-sip.c +++ b/epan/dissectors/packet-sip.c @@ -61,6 +61,7 @@ #include "packet-sip.h" #include #include +#include #include "packet-tcp.h" @@ -1395,9 +1396,13 @@ dissect_sip_common(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tr if (hf_index == -1) { if(hdr_tree) { - proto_tree_add_text(hdr_tree, tvb, - offset, next_offset - offset, "%s", - tvb_format_text(tvb, offset, linelen)); + proto_item *ti = proto_tree_add_text(hdr_tree, tvb, + offset, next_offset - offset, "%s", + tvb_format_text(tvb, offset, linelen)); + expert_add_info_format(pinfo, ti, + PI_UNDECODED, PI_NOTE, + "Unrecognised SIP header (%s)", + tvb_format_text(tvb, offset, header_len)); } } else { /*