I'm developing a project that requires the use of RTP plugin and VAS.The programs goes as follows :
An rtp session is open between to devices and then I use VAS to capture voice packets via MVoIPUplinkObserver::Emptybuffer(...) inside which i use CRtpApi::SendRtpPacket(...) to send packets to the other end. On the other end once MRtpObserver::RtpPacketReceived(..) gets called I call MVoIPDownlinkObserver::FillBuffer(..) to play them back. the problem is that once RtpPacketReceived gets called on either end the program exits on that end. Firstly I want to know how can I capture the output reason on TRK knowing that RtpPacketReceived is a callback method. Secondly I know that this description is vague for anyone to understand but I want a way to synchronize the received packets with the playedback packets (may but like a queue or something) but I'm not so familiar with data structure in symbian so any idea is appreciated as well as any idea that didn't cross my mind.
If anyone has done this before I will be very thankful if he posts a sample code .