mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
rtp: Enable srtp replay protection
Add option "srtpreplayprotection" rtp.conf to enable srtp replay protection. ASTERISK-29260 Reported by: Alexander Traud Change-Id: I5cd346e3c6b6812039d1901aa4b7be688173b458
This commit is contained in:
committed by
George Joseph
parent
7d15655f9d
commit
389b8b0774
@@ -364,11 +364,12 @@ static void ast_srtp_set_cb(struct ast_srtp *srtp, const struct ast_srtp_cb *cb,
|
||||
}
|
||||
|
||||
/* Vtable functions */
|
||||
static int ast_srtp_unprotect(struct ast_srtp *srtp, void *buf, int *len, int rtcp)
|
||||
static int ast_srtp_unprotect(struct ast_srtp *srtp, void *buf, int *len, int flags)
|
||||
{
|
||||
int res = 0;
|
||||
int i;
|
||||
int retry = 0;
|
||||
int rtcp = (flags & 0x01) >> 0;
|
||||
int retry = (flags & 0x02) >> 1;
|
||||
struct ast_rtp_instance_stats stats = {0,};
|
||||
|
||||
tryagain:
|
||||
|
Reference in New Issue
Block a user