I want to get all sip message in .pcap file. I use ""tshark -r c:\a.pcap -Y sip -z "sip,stat,ip.addr==10.10.10.3" -w a.txt"" But the out put will like ? h 5? ??H H Cv w蝴皝? E :P| €璦+??&踦SIP/2.0 100 Trying Via: SIP/2.0/UDP 10.10.10.43;rport=5060;branch=z9hG4bK+PhOpZMrrpHouo From: "7000" sip:[email protected];tag=Qklz17s+TogPIm It will have some broken message. I want all the out put like shown: INVITE [email protected] SIP/2.0, P-Preferred-Identity: [email protected], Via: Calling UE IP :Port, Route: P-CSCF address, Route: S-CSCF address, Contact: Calling UE IP :Port, SDP: Caller Supported Codec List can some one tell me how to set the tshark parameter? asked 12 Aug '14, 23:08 grayyoung |
One Answer:
-w a.txt will write a pcap file of the filtered frames! If you want the text output of -z "sip,stat" you should run tshark like this.
However, that gives only statistics, not the whole SIP call flow!! If you need that, please add a comment. Regards answered 13 Aug ‘14, 03:04 Kurt Knochner ♦ |
Yes I know this method, but I need the SIP and SDP format,
If I use the parameter -V,
That will have to much information,
is there any parameter can filter only sip header, SDP?
can you please show an example of what exactly you want to get?
Actually, I want to build the XML file for replay the communication of UE and server.
So I need SIP(all header), SDP,
and I still try to know how to get the RTP from tshark,
and how I can combine them all.