From a13196c1c7a7e90fda2ab060e06bc136b956e2b6 Mon Sep 17 00:00:00 2001 From: Liyang <liyang@x-y-t.cn> Date: Tue, 14 May 2019 15:32:59 +0800 Subject: [PATCH] FS-11841 [core] The ts of received rtp packages for DTMF is same. so add SFF_RFC2833 flag check when write rtp package. --- src/switch_rtp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 02ee86c82f..98e621882e 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -8431,7 +8431,7 @@ static int rtp_common_write(switch_rtp_t *rtp_session, #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); #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; } }