Browse Source

TT#14008 emit log messages for ROC resets

Change-Id: I677a95a49419f82bfb7fd9c9566662345624363f
pull/1446/head
Richard Fuchs 4 years ago
parent
commit
198754e473
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      daemon/rtp.c

+ 6
- 1
daemon/rtp.c View File

@ -214,6 +214,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;
@ -247,8 +249,11 @@ decrypt:;
ilog(LOG_WARNING | LOG_FLAG_LIMIT, "Discarded SRTP packet: decryption failed");
return -1;
}
if (guess != 0)
if (guess != 0) {
ilog(LOG_DEBUG, "Detected unexpected SRTP ROC reset (from %" PRIu64 " to %" PRIu64 ")",
ssrc_ctx->srtp_index, index);
ssrc_ctx->srtp_index = index;
}
}
crypto_debug_printf(", dec pl: ");


Loading…
Cancel
Save