diff options
author | Matthew Jordan <mjordan@digium.com> | 2014-07-08 14:38:42 +0000 |
---|---|---|
committer | Matthew Jordan <mjordan@digium.com> | 2014-07-08 14:38:42 +0000 |
commit | 3126d18c1bd55a2680b61976acbe3dc79194da14 (patch) | |
tree | 682d5c8ead018a69d49e75f9b43e031739ea4fce /res/res_rtp_asterisk.c | |
parent | 534ffd8481341da6c7539163d7f575e98173cae0 (diff) |
res_rtp_asterisk: Fix undefined function when PJPROJECT is not installed
The dtls_perform_handshake function was mistakenly placed under the guards for
USE_PJPROJECT. If PJPROJECT was not installed, the function would not be
defined, while other functions would attempt to still use it. This prevented
res_rtp_asterisk from being loaded.
ASTERISK-24001 #close
Reported by: Don Fanning
........
Merged revisions 418172 from http://svn.asterisk.org/svn/asterisk/branches/12
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@418174 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_rtp_asterisk.c')
-rw-r--r-- | res/res_rtp_asterisk.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c index f1607e003..7251e8f80 100644 --- a/res/res_rtp_asterisk.c +++ b/res/res_rtp_asterisk.c @@ -1207,9 +1207,6 @@ static struct ast_rtp_engine asterisk_rtp_engine = { #endif }; -#ifdef HAVE_PJPROJECT -static void rtp_learning_seq_init(struct rtp_learning_info *info, uint16_t seq); - #ifdef HAVE_OPENSSL_SRTP static void dtls_perform_handshake(struct ast_rtp_instance *instance, struct dtls_details *dtls, int rtcp) { @@ -1233,6 +1230,9 @@ static void dtls_perform_handshake(struct ast_rtp_instance *instance, struct dtl } #endif +#ifdef HAVE_PJPROJECT +static void rtp_learning_seq_init(struct rtp_learning_info *info, uint16_t seq); + static void ast_rtp_on_ice_complete(pj_ice_sess *ice, pj_status_t status) { struct ast_rtp_instance *instance = ice->user_data; |