make sure to sort rtp vs rtcp when using rtcp mux

This commit is contained in:
Anthony Minessale committed 2013-03-31 21:27:24 -05:00
1 parent 4711fd2b92
commit 9b16fb319a
1 file changed
+3
+3
View File
@@ -3630,8 +3630,11 @@ static switch_status_t read_rtp_packet(switch_rtp_t *rtp_session, switch_size_t
}
}
if (status == SWITCH_STATUS_SUCCESS && *bytes) {
if (rtp_session->flags[SWITCH_RTP_FLAG_RTCP_MUX]) {
*flags &= ~SFF_RTCP;
if (rtp_session->recv_msg.header.pt != rtp_session->rpayload && (!rtp_session->recv_te ||
rtp_session->recv_msg.header.pt != rtp_session->recv_te) &&
(!rtp_session->cng_pt || rtp_session->recv_msg.header.pt != rtp_session->cng_pt) &&