From: Mike Jerris Date: Fri, 13 Jul 2018 19:18:35 +0000 (-0400) Subject: FS-11230: [core] Fix bad rtp timestamps triggered by cng/missed packet detection X-Git-Tag: v1.8.1~3^2~213 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1a3c704b7e7c90a2ac3a3aa34ad85a9c55869b5;p=thirdparty%2Ffreeswitch.git FS-11230: [core] Fix bad rtp timestamps triggered by cng/missed packet detection --- diff --git a/src/switch_core_io.c b/src/switch_core_io.c index 0ccb215f26..7560465187 100644 --- a/src/switch_core_io.c +++ b/src/switch_core_io.c @@ -417,7 +417,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_read_frame(switch_core_sessi switch_set_flag(session, SSF_WARN_TRANSCODE); } - if (read_frame->codec || is_cng) { + if (read_frame->codec || (is_cng && session->plc)) { session->raw_read_frame.datalen = session->raw_read_frame.buflen; if (is_cng) {