Hi Ross, <br>With your email, I found how to do it <br>Thank you !<br>Ricardo <br><br><div class="gmail_quote">On Wed, Feb 29, 2012 at 4:00 PM, Ross Finlayson <span dir="ltr"><<a href="mailto:finlayson@live555.com" target="_blank">finlayson@live555.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word"><div><div><blockquote type="cite"><div class="gmail_quote"><div>I would like to know what is the best way to get some of the RTCP info when using UDP in the server side.<br><br>
Server side : we are using BasicUDPSource and StreamReplicator to send replicas towards the client apps.<br></div></div></blockquote><div><br></div></div>So, is your server's input data RTP/UDP, or raw-UDP?  I.e., is your intention to:</div>

<div><span style="white-space:pre-wrap">  </span>1/ Make a direct copy of incoming RTP/UDP packets into outgoing RTP/UDP packets (i.e., keeping the RTP headers exactly the same), or</div><div><span style="white-space:pre-wrap">     </span>2/ Copy data from incoming raw-UDP packets (which are *not* RTP packets) into outgoing RTP/UDP packets?</div>

<div><br></div><div>If you're trying to do 1/ (a simple 'UDP relay'), then you should also be copying the RTCP stream (that comes from the same source as the input RTP stream).  Note that this RTCP stream will (normally) be using the RTP stream's port number +1; and you should do the same for the output ('relayed') RTCP packets.  And, ideally, you should also 'relay' RTCP packets from the receiver back to the original source (i.e., also set up a 'relay' for RTCP packets that come in the reverse direction).</div>

<div><br></div><div>But if you're trying to do 2/ (a 'raw-UDP-to-RTP relay'), then your server should be using an appropriate "RTPSink" subclass, *not* a "BasicUDPSink".  And then you should also be creating a "RTCPInstance", tied to this "RTPSink".  And once again, the output "RTPSink" should use an even-numbered port, and the corresponding "RTCPInstance" should use that port number +1 (i.e., odd-numbered).</div>

<span><font color="#888888"><br></font></span></div></blockquote><div><br>
</div></div>