Anyone who can answer the below queries? Thanks alot. --- On Tue, 2/3/09, manjeet soodan <manjeetss1 at yahoo.com> wrote: From: manjeet soodan <manjeetss1@xxxxxxxxx> Subject: Fw: Re: Problem with RTCP msgs using streams To: nanang at pjsip.org Date: Tuesday, February 3, 2009, 9:50 PM Hi Nanang, For RTCP msgs, i just need the packet which is received by the on_rx_rtcp() callback. i.e on_rx_rtcp( void *data,void *pkt, pj_ssize_t bytes_read), "pkt" from this callback. Is it possible to use streams for enc/dec of media, and then somehow i am able to get "pkt" from the on_rx_rtcp() callback? At the following link :http://trac.pjsip.org/repos/wiki/media-flow, in the last section they have given the example of "flow of incoming RTP packets are like this", is there any similar information for RTCP somewhere? could u pl refer me there? I am kind of stuck at this point, not able to understand how to get the RTCP APP msgs? Would really appreciate if you can help me out of this? Thanks alot. Regards, Manjeet --- On Tue, 2/3/09, manjeet soodan <manjeetss1 at yahoo.com> wrote: From: manjeet soodan <manjeetss1@xxxxxxxxx> Subject: Re: Problem with RTCP msgs using streams To: "pjsip list" <pjsip at lists.pjsip.org> Cc: nanang at pjsip.org, gangban.lau at gmail.com Date: Tuesday, February 3, 2009, 10:55 AM Hi Nanang, Thanks again. But the first issue still remains, how will my application going to get the RTCP messages (RTCP APP or TBCP) from the remote servers? Let me explain my problem again : Media Proxy sitting in between two servers, both servers can send RTCP APP msgs to Media Proxy and then send RTP bursts. 1) MediaProxy will recv. RTCP APP msgs from Stream1. 2) I will take out the RTCP msgs, make some changes in it and pass it to Stream2. 3) Then when the Handshaking is done for RTCP msgs. 4) I will start getting the RTP stream data from stream1 and put it to stream2 (doing decoding on stream1 and encoding on stream2). So for RTP data, just calling pjmedia_port_get_frame(stream1) and pjmedia_port_put_frame(stream2) will get decoded data from stream1 and put the encoded data to stream2 and vice versa. Now for RTCP,? i just want to get the RTCP packet, parsing/modification i plan to do in my application. I am not very clear how transport adapter (pjmedia_tp_adapter_create()) can help me in this, because it assigns its own callbacks for RTP and RTCP. Whereas i have already created two streams which have assigned there own callbacks? Is it possible to get the RTCP packet which is returned by on_rx_rtcp() callback function assigned by both streams stream1 and stream2? Regards, Manjeet --- On Tue, 2/3/09, Nanang Izzuddin <nanang at pjsip.org> wrote: From: Nanang Izzuddin <nanang@xxxxxxxxx> Subject: Re: Problem with RTCP msgs using streams To: "pjsip list" <pjsip at lists.pjsip.org> Date: Tuesday, February 3, 2009, 1:11 AM Hi Manjeet, One alternative that I could think now is using stream and implementing a media transport adapter. The media transport adapter will do the pre/post RTCP packets processing, i.e: before sending an RTCP packet it inserts the customized part into the packet, on receiving it parses the customized part. Regards, nanang On Tue, Feb 3, 2009 at 2:06 AM, manjeet soodan <manjeetss1 at yahoo.com> wrote: > Hi Nanang, > > Thanks for your reply. > > Then in that case how can i handle this situation. In one case i need > streams to encode/decode the Media and on the other hand i need the RTCP APP > (TBCP) msgs which as you said i can't obtain using streams. > > What is the correct way to handle this situation. Could you please tell? > > Shall i use streams for media and direct media transport for RTCP, would > that work? > > This is quite urgent for me, please respond. > > Thanks in advance. > > Regards, > Manjeet > > > > --- On Tue, 2/3/09, Nanang Izzuddin <nanang at pjsip.org> wrote: > > From: Nanang Izzuddin <nanang@xxxxxxxxx> > Subject: Re: Problem with RTCP msgs using streams > To: manjeetss1 at yahoo.com > Cc: "pjsip list" <pjsip at lists.pjsip.org> > Date: Tuesday, February 3, 2009, 12:05 AM > > Hi Manjeet, > > Yes, currently pjmedia stream won't handle (parse/generate) the > 'customized' part of RTCP, so I think you can't use pjmedia stream > in > this case. > > Regards, > nanang > > > On Mon, Feb 2, 2009 at 5:10 PM, manjeet soodan <manjeetss1 at yahoo.com> > wrote: >> Hi Nanang, >> >> pjmedia_stream_get_stat() is used to get the encoder/decoder statistics. >> >> But i am still not able to find out from the PJMedia code, how to get the >> RTCP APP (TBCP) >> messages using streams. >> >> Without streams i think we can directly get the incoming RTCP packet from >> the on_rx_rtcp() callback function, BUT using "streams" how can > we do that? >> >> Thanks n regards, >> Manjeet >> >> >> >> >> >> --- On Fri, 1/30/09, Nanang Izzuddin > <nanang at pjsip.org> wrote: >> >> From: Nanang Izzuddin <nanang@xxxxxxxxx> >> Subject: Re: Problem with RTCP msgs using streams >> To: "pjsip list" <pjsip at lists.pjsip.org> >> Date: Friday, January 30, 2009, 2:42 AM >> >> Hi, >> >> If you are using stream, then you >> can use pjmedia_stream_get_stat(), >> you will get a 'compiled RTCP' data though. To 'sniff' the > raw >> RTCP >> packets, you can use pjmedia transport adapter. >> >> If your media proxy deal with raw RTP/RTCP packets and doesn't want >> audio transcoding, perhaps you better use pjmedia transport directly, >> instead of stream. >> >> Regards, >> nanang >> >> >> On Fri, Jan 30, 2009 at 2:01 AM, manjeet soodan > <manjeetss1 at yahoo.com> >> wrote: >>> Hi, >>> >>> I am using two streams (pjmedia_streams) to encode/decode > RTP + >> translating >>> RTCP between two servers. >>> >>> Question:- how will i receive the RTCP msgs? Can > pjmedia_port_get_frame() >>> and pjmedia_port_put_frame() also be used to receive/send RTCP > messages >> via >>> streams. >>> >>> Or is there some other way to send/recv RTCP msgs when using streams? >>> >>> Thanks >>> Manjeet >>> >>> >>> >>> >>> >> _______________________________________________ >>> Visit our blog: http://blog.pjsip.org >>> >>> pjsip mailing list >>> pjsip at lists.pjsip.org >>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >>> >>> >> >> _______________________________________________ >> Visit our blog: http://blog.pjsip.org >> >> pjsip mailing list >> pjsip at lists.pjsip.org >> > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> >> > > _______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip at lists.pjsip.org http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090203/e9719595/attachment.html>