From 2feac1d3613471f89cca606a14e7f8fe0f09ed9d Mon Sep 17 00:00:00 2001 From: Joshua Colp <jcolp@digium.com> Date: Sun, 14 Jul 2019 15:26:41 -0300 Subject: [PATCH] res_rtp_asterisk: Move where DTLS MTU variable is defined. The DTLS MTU variable is not dependent on pjproject and should not exist in its block. Change-Id: I7e97d64dc192f2ac81bfe2b72b8229d321c7d026 --- res/res_rtp_asterisk.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c index b55a7d511e..08138cb8ba 100644 --- a/res/res_rtp_asterisk.c +++ b/res/res_rtp_asterisk.c @@ -197,6 +197,9 @@ static int nochecksums; static int strictrtp = DEFAULT_STRICT_RTP; /*!< Only accept RTP frames from a defined source. If we receive an indication of a changing source, enter learning mode. */ static int learning_min_sequential = DEFAULT_LEARNING_MIN_SEQUENTIAL; /*!< Number of sequential RTP frames needed from a single source during learning mode to accept new source. */ static int learning_min_duration = DEFAULT_LEARNING_MIN_DURATION; /*!< Lowest acceptable timeout between the first and the last sequential RTP frame. */ +#if defined(HAVE_OPENSSL) && (OPENSSL_VERSION_NUMBER >= 0x10001000L) && !defined(OPENSSL_NO_SRTP) +static int dtls_mtu = DEFAULT_DTLS_MTU; +#endif #ifdef HAVE_PJPROJECT static int icesupport = DEFAULT_ICESUPPORT; static struct sockaddr_in stunaddr; @@ -204,9 +207,6 @@ static pj_str_t turnaddr; static int turnport = DEFAULT_TURN_PORT; static pj_str_t turnusername; static pj_str_t turnpassword; -#if defined(HAVE_OPENSSL) && (OPENSSL_VERSION_NUMBER >= 0x10001000L) && !defined(OPENSSL_NO_SRTP) -static int dtls_mtu = DEFAULT_DTLS_MTU; -#endif static struct ast_ha *ice_blacklist = NULL; /*!< Blacklisted ICE networks */ static ast_rwlock_t ice_blacklist_lock = AST_RWLOCK_INIT_VALUE; -- GitLab