Sake,
I modified the filter, "Via.*\x0d\x0aVia.*" does work for the capture I've posted.
But, will it work in case if 'Via' headers ARE NOT next to each other?
I mean, if a message looks like this:
To: <
sip:[email protected]>;tag=51d14022
From: 9094354499<
sip:[email protected]>;tag=4c3d535f
Via: SIP/2.0/UDP
10.10.10.10:5060;branch=z9hG4bKD22343432336665633a787.0
Call-ID: 22e38f2bcdd854c64a1178aa5d6358b2
Via: SIP/2.0/UDP
10.10.10.100;branch=z9hG4bK-4fe05e85f80de1da371f137b46b23e25;psrrposn=1
Will the above filter still work? Unfortunately I do not have message like this to test in Wireshark.
So, in essence my goal if following:
find a stingA in the packet followed by stringB, when between stringA and stringB there could be 0 or more CRLF.
Which in plan English means that stringA and stringB could be in the same line (before CRLF), could be in in different lines.
Anyone can help? I'm not a regex guru.
--i.n.
--
I.N.