diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c
index ed7dde01d8c9cce14bcd0112dcf9c208dab23e77..b78f6e24e82bafb6b2d564dc31b0e63b70bd6b5d 100644
--- a/res/res_rtp_asterisk.c
+++ b/res/res_rtp_asterisk.c
@@ -2016,8 +2016,9 @@ static int __rtp_recvfrom(struct ast_rtp_instance *instance, void *buf, size_t s
 #ifdef HAVE_OPENSSL_SRTP
 	dtls_srtp_check_pending(instance, rtp, rtcp);
 
-	/* If this is an SSL packet pass it to OpenSSL for processing */
-	if ((*in >= 20) && (*in <= 64)) {
+	/* If this is an SSL packet pass it to OpenSSL for processing. RFC section for first byte value:
+	 * https://tools.ietf.org/html/rfc5764#section-5.1.2 */
+	if ((*in >= 20) && (*in <= 63)) {
 		struct dtls_details *dtls = !rtcp ? &rtp->dtls : &rtp->rtcp->dtls;
 		int res = 0;