From: Spencer Thomason Date: Tue, 29 Dec 2015 15:50:38 +0000 (+0000) Subject: Add missing ENABLE_SRTP ifdef to allow building without SRTP X-Git-Tag: v1.6.7~2^2~136^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3e6bd875747c379ae78e7528dc66ce210c24ed9;p=thirdparty%2Ffreeswitch.git Add missing ENABLE_SRTP ifdef to allow building without SRTP FS-8571 #resolve --- diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 811ff437e8..0c614a4f0e 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -5252,6 +5252,7 @@ static switch_status_t read_rtp_packet(switch_rtp_t *rtp_session, switch_size_t if (rtp_session->has_rtcp) { *flags |= SFF_RTCP; +#ifdef ENABLE_SRTP if (rtp_session->flags[SWITCH_RTP_FLAG_SECURE_RECV]) { int sbytes = (int) *bytes; err_status_t stat = 0; @@ -5266,7 +5267,7 @@ static switch_status_t read_rtp_packet(switch_rtp_t *rtp_session, switch_size_t *bytes = sbytes; } - +#endif return SWITCH_STATUS_SUCCESS; } }