summaryrefslogtreecommitdiff
path: root/res/res_rtp_asterisk.c
diff options
context:
space:
mode:
authorRichard Mudgett <rmudgett@digium.com>2017-03-16 16:37:42 -0500
committerRichard Mudgett <rmudgett@digium.com>2017-03-16 15:44:24 -0600
commit82982a191c0715b2dabdecd64e749461e38355ee (patch)
treec696a3d646067dd8c2a6795f475d26a27498e0ee /res/res_rtp_asterisk.c
parent732367e8066539a6551e22f75fbf280fed780e9d (diff)
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
Diffstat (limited to 'res/res_rtp_asterisk.c')
-rw-r--r--res/res_rtp_asterisk.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c
index a67bc8135..0a906dc7a 100644
--- a/res/res_rtp_asterisk.c
+++ b/res/res_rtp_asterisk.c
@@ -5040,7 +5040,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;
}