I am working on a project where I need to capture RTP/RTCP traffic and essentially save the voice as .WAV.
I have been trying to use SharpPCap and PCap.Net. I can filter for UDP packets, but then I am lost. I have no idea what to do next. I assume I need to do something with the UDP payload, but what? I've looked at the RTP spec and the UDP spec but I still can't
figure out how you tell that a UDP packet is either RTP or RTCP.
Any clues? I can't even find a reference via Google for how to do this. WireShark can determine if a packet is RTP, but I have no idea how to it does that and digging through the source code has not revealed anything to me yet.