]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Revert "res_rtp_asterisk.c: Set Mark on rtp when timestamp skew is too big"
authorMaximilian Fridrich <m.fridrich@commend.com>
Fri, 28 Feb 2025 07:43:44 +0000 (08:43 +0100)
committerAsterisk Development Team <asteriskteam@digium.com>
Thu, 20 Mar 2025 18:18:29 +0000 (18:18 +0000)
This reverts commit f30ad96b3f467739c38ff415e80bffc4afff1da7.

The original change was not RFC compliant and caused issues because it
set the RTP marker bit in cases when it shouldn't be set. See the
linked issue #1135 for a detailed explanation.

Fixes: #1135.
(cherry picked from commit 5565d00eb41fa30c53bef883dbdfca74cf93bd1f)

res/res_rtp_asterisk.c

index d8b0a0cc4dccd75a56a9509e0a3e5d1d75b9a403..df9c012fac21c1c69cdb41f11483d27443e6a8cf 100644 (file)
@@ -5266,11 +5266,6 @@ static int rtp_raw_write(struct ast_rtp_instance *instance, struct ast_frame *fr
        }
 
        if (ast_test_flag(frame, AST_FRFLAG_HAS_TIMING_INFO)) {
-               if (abs(frame->ts * rate - (int)rtp->lastts) > MAX_TIMESTAMP_SKEW) {
-                       ast_verbose("(%p) RTP audio difference is %d set mark\n",
-                               instance, abs(frame->ts * rate - (int)rtp->lastts));
-                       mark = 1;
-               }
                rtp->lastts = frame->ts * rate;
        }