mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-15 05:08:26 +00:00
only send cng when its setup
This commit is contained in:
parent
358b5db0e4
commit
0e68325319
@ -1587,7 +1587,7 @@ static int check_rtcp_and_ice(switch_rtp_t *rtp_session)
|
|||||||
rtp_session->fir_countdown--;
|
rtp_session->fir_countdown--;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rtp_session->flags[SWITCH_RTP_FLAG_AUTO_CNG] && rtp_session->send_msg.header.ts &&
|
if (rtp_session->flags[SWITCH_RTP_FLAG_AUTO_CNG] && rtp_session->send_msg.header.ts && rtp_session->cng_pt &&
|
||||||
rtp_session->timer.samplecount >= (rtp_session->last_write_samplecount + (rtp_session->samples_per_interval * 60))) {
|
rtp_session->timer.samplecount >= (rtp_session->last_write_samplecount + (rtp_session->samples_per_interval * 60))) {
|
||||||
uint8_t data[10] = { 0 };
|
uint8_t data[10] = { 0 };
|
||||||
switch_frame_flag_t frame_flags = SFF_NONE;
|
switch_frame_flag_t frame_flags = SFF_NONE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user