mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-28 22:24:16 +00:00
filter out unwanted media on rtp
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15284 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
5de0ad3c02
commit
d646547bdb
3 files changed
+27
-4
No files matched your search
+6
-4
@@ -1934,11 +1934,13 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (bytes && ((rtp_session->cng_pt && rtp_session->recv_msg.header.pt == rtp_session->cng_pt) || rtp_session->recv_msg.header.pt == 13)) {
|
||||
|
||||
if (bytes && !switch_test_flag(rtp_session, SWITCH_RTP_FLAG_AUTOADJ) &&
|
||||
(!switch_cmp_addr(rtp_session->from_addr, rtp_session->remote_addr) ||
|
||||
((rtp_session->cng_pt && rtp_session->recv_msg.header.pt == rtp_session->cng_pt) || rtp_session->recv_msg.header.pt == 13))) {
|
||||
bytes = 0;
|
||||
goto recvfrom;
|
||||
goto recvfrom;
|
||||
|
||||
}
|
||||
|
||||
if (bytes &&
|
||||
|
||||
Reference in new issue
Block a user