From d9c5e89657336b71259e99c29a94befd3d93429f Mon Sep 17 00:00:00 2001 From: Grzegorz Sluja <grzegorz.sluja@sigma.se> Date: Mon, 16 Oct 2023 11:42:48 +0200 Subject: [PATCH] Revert "Sync SSRC of RTCP and RTP before encryption" This reverts commit 0f97e870ebb67a1b88f1f5180c6eab5b82ca5459. --- res/res_srtp.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/res/res_srtp.c b/res/res_srtp.c index ea129e1299..e10421cbb4 100644 --- a/res/res_srtp.c +++ b/res/res_srtp.c @@ -504,12 +504,6 @@ static int ast_srtp_protect(struct ast_srtp *srtp, void **buf, int *len, int rtc memcpy(localbuf, *buf, *len); - if(rtcp){ - // align ssrc with length of 32bits. - memcpy(localbuf+4, srtp->buf+8, 4); - memcpy(srtp->rtcpbuf+4, srtp->buf+8, 4); - } - if ((res = rtcp ? srtp_protect_rtcp(srtp->session, localbuf, len) : srtp_protect(srtp->session, localbuf, len)) != err_status_ok && res != err_status_replay_fail) { ast_log(LOG_WARNING, "SRTP protect: %s\n", srtp_errstr(res)); return -1; -- GitLab