I did some test for capturing RTCP packet (with ethereal), but I can’t find any in the “asterisk -> softphone” direction. I ve got RTP packet but no RTCP.
Could you tell me if there is something special to set up ?
RTCP is RTP Control Protocol, and as such works in conjunction with RTP. Although UDP port 5004 is assigned to RTP, and UDP port 5005 is assigned to RTCP, they usually need more than a pair of ports for multiple bidirectional traffic which has to be handled by assigning and forwarding a range of ports. While RTP data is carried on an ‘EVEN’ UDP port number the corresponding RTCP packets are carried on the next higher ‘ODD’ port number. So when you forward a range of ports such as 5004 - 31000 (asterisk default RTP range) RTP uses the even UDP ports 5004, 5006, 5008, 5010 and so on, while RTCP uses the odd UDP ports 5005, 5007, 5009, 5011 and so on. I hope this helps.