3rd edition fp2 Beta SDK has an RTP example that demonstrates sending and receiving RTP data. The example locates at \S60_3rd_FP2_Beta\Examples\MultimediaProtocols\RTPExample\.
In the example receiving RTP data goes like this:
first register ERtpNewSource event:
iRtpSession.PrivRegisterEventCallbackL(ERtpNewSource, (TRtpCallbackFunction)CRtpFileStreamer::NewSource, this);
When CRtpFileStreamer::NewSource gets called: old source is closed, a new source gets fetched and ERtpPacketReceived event is registered:
CRtpFileStreamer::NewSource(CRtpFileStreamer* aPtr, const TRtpEvent& aEvent)
aPtr->ReceiveSrc() = aEvent.Session().NewReceiveSourceL();
aPtr->ReceiveSrc().PrivRegisterEventCallbackL(ERtpPacketReceived, (TRtpCallbackFunction)CRtpFileStreamer::PacketArrived, aPtr);)