From: Richard Mudgett Date: Thu, 16 Mar 2017 21:37:42 +0000 (-0500) Subject: res_pjsip_asterisk.c: Fix compile error if libsrtp is not installed. X-Git-Tag: 13.15.0-rc1~17^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=047fb7f11ead526fd0d891c38f043469b36f1803;p=thirdparty%2Fasterisk.git res_pjsip_asterisk.c: Fix compile error if libsrtp is not installed. struct ast_rtcp does not define the dtls member if SRTP is not enabled. ASTERISK-26732 Change-Id: Id15ea212e04490e012f2cf4a56818b4dd948875e --- diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c index 62fe4fd4a2..b89057cea4 100644 --- a/res/res_rtp_asterisk.c +++ b/res/res_rtp_asterisk.c @@ -5018,7 +5018,9 @@ static void ast_rtp_prop_set(struct ast_rtp_instance *instance, enum ast_rtp_pro return; } rtp->rtcp->s = -1; +#ifdef HAVE_OPENSSL_SRTP rtp->rtcp->dtls.timeout_timer = -1; +#endif rtp->rtcp->schedid = -1; }