FS-8802 #resolve [RTP stops sending audio when sent timestamp rolls over]

This commit is contained in:
Anthony Minessale 2016-02-01 16:23:36 -06:00
parent fe5fd7667a
commit 60bd4bec38
1 changed files with 2 additions and 2 deletions

View File

@ -7405,8 +7405,8 @@ static int rtp_common_write(switch_rtp_t *rtp_session,
rtp_session->flags[SWITCH_RTP_FLAG_RESET] = 1;
}
if (!switch_rtp_ready(rtp_session) || rtp_session->sending_dtmf || !this_ts ||
(!rtp_session->flags[SWITCH_RTP_FLAG_RESET] && this_ts < rtp_session->last_write_ts)) {
if (!switch_rtp_ready(rtp_session) || rtp_session->sending_dtmf ||
(!rtp_session->flags[SWITCH_RTP_FLAG_RESET] && this_ts > rtp_session->one_second && this_ts < rtp_session->last_write_ts)) {
send = 0;
}
}