mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-28 22:24:16 +00:00
add new flag to frames to denote pass thru frames that are not audio
This commit is contained in:
1 parent
bcd1e14711
commit
cb9abe0268
3 files changed
+21
-1
No files matched your search
@@ -3131,6 +3131,11 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_
|
||||
}
|
||||
}
|
||||
|
||||
if (((rtp_session->cng_pt && rtp_session->recv_msg.header.pt == rtp_session->cng_pt) || rtp_session->recv_msg.header.pt == 13)) {
|
||||
*flags |= SFF_NOT_AUDIO;
|
||||
}
|
||||
|
||||
|
||||
/* ignore packets not meant for us unless the auto-adjust window is open */
|
||||
if (bytes) {
|
||||
if (switch_test_flag(rtp_session, SWITCH_RTP_FLAG_AUTOADJ)) {
|
||||
|
||||
Reference in new issue
Block a user