mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-03 17:30:37 +00:00
FS-11841 [core] The ts of received rtp packages for DTMF is same. so add SFF_RFC2833 flag check when write rtp package.
This commit is contained in:
parent
c89f200b40
commit
a13196c1c7
@ -8431,7 +8431,7 @@ static int rtp_common_write(switch_rtp_t *rtp_session,
|
|||||||
#ifdef DEBUG_TS_ROLLOVER
|
#ifdef DEBUG_TS_ROLLOVER
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "WRITE TS LAST:%u THIS:%u DELTA:%u\n", rtp_session->last_write_ts, this_ts, ts_delta);
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "WRITE TS LAST:%u THIS:%u DELTA:%u\n", rtp_session->last_write_ts, this_ts, ts_delta);
|
||||||
#endif
|
#endif
|
||||||
if (ts_delta == 0 || !switch_rtp_ready(rtp_session) || rtp_session->sending_dtmf) {
|
if ((!(flags && *flags & SFF_RFC2833) && ts_delta == 0) || !switch_rtp_ready(rtp_session) || rtp_session->sending_dtmf) {
|
||||||
send = 0;
|
send = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user