From 8093fd2ee9c456e5b43a62ec8adfcc0be6d2832e Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Thu, 10 Feb 2022 14:53:34 -0500 Subject: [PATCH] TT#14008 emit log messages for ROC resets Change-Id: I677a95a49419f82bfb7fd9c9566662345624363f (cherry picked from commit 198754e473558b919d7a896cecff96f40dba7bc8) --- daemon/rtp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daemon/rtp.c b/daemon/rtp.c index 36bdd9c6a..44bb62130 100644 --- a/daemon/rtp.c +++ b/daemon/rtp.c @@ -213,6 +213,8 @@ int rtp_savp2avp(str *s, struct crypto_context *c, struct ssrc_ctx *ssrc_ctx) { goto error; decrypt_idx: + ilog(LOG_DEBUG, "Detected unexpected SRTP ROC reset (from %" PRIu64 " to %" PRIu64 ")", + ssrc_ctx->srtp_index, index); ssrc_ctx->srtp_index = index; decrypt:; int prev_len = to_decrypt.len;