This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Building a Display filter on a portion of a SIP packet

0

I have a capture of a VoIP call showing lots of dropped packets do to jitter and wrong time stamps that occur only at the very beginning of the call - according to the WS Player - and have figured out the cause (too many packets hitting at once for the router to handle). The packets in question are the SIP "Notify" ones with <state>early<state>\n in the "Message Body". When I build a filter on most of those packets I get this

frame[714:21] == 3c:73:74:61:74:65:3e:65:61:72:6c:79:3c:2f:73:74:61:74:65:3e:0a on others I will get this

frame[713:21] == 3c:73:74:61:74:65:3e:65:61:72:6c:79:3c:2f:73:74:61:74:65:3e:0a

or frame[715:21] == 3c:73:74:61:74:65:3e:65:61:72:6c:79:3c:2f:73:74:61:74:65:3e:0a

The only difference being at the begining.
How do I build a display filter based just on the value and not on the frame location & value? Btw, the file is pretty small (16sec) and I am willing to upload this but not sure how. Thanks Eric

asked 27 May '12, 06:51

EricKnaus's gravatar image

EricKnaus
46192026
accept rate: 0%


2 Answers:

0

It would probably require a code change as you want to filter on the body content. What is the Content-Type: something XML? If so it's easy to add it to the xml dissector.

answered 27 May '12, 08:49

Anders's gravatar image

Anders ♦
4.6k952
accept rate: 17%

Thanks - I think this is what you are asking about

\n

If this is it, great although I have never done anything to the dissectors.

(27 May '12, 11:15) EricKnaus

"<?xml version="1.0"?>\n"

(27 May '12, 11:17) EricKnaus

No, as an exaple when the body contains SDP there is this line Content-Type: application/sdp What is the Content-Type: in your case?

(27 May '12, 13:39) Anders ♦

0

Can you please try one of these filters (depends on the protocol):

sip contains 3c:73:74:61:74:65:3e:65
rtp contains 3c:73:74:61:74:65:3e:65
rtp.payload contains 3c:73:74:61:74:65:3e:65

more general

udp contains 3c:73:74:61:74:65:3e:65
tcp contains 3c:73:74:61:74:65:3e:65
ip contains 3c:73:74:61:74:65:3e:65

Change the HEX string to whatever you need.

Regards
Kurt

answered 27 May '12, 12:22

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
24.8k1039237
accept rate: 15%

edited 27 May '12, 12:28