From: Anthony Minessale Date: Tue, 17 Jul 2012 19:02:36 +0000 (-0500) Subject: crypto tweak for dingaling X-Git-Tag: v1.2.0~119^2~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=19b7e30eea5d4ef8f546c252b7bd9a81cfda98f6;p=thirdparty%2Ffreeswitch.git crypto tweak for dingaling --- diff --git a/src/mod/endpoints/mod_dingaling/mod_dingaling.c b/src/mod/endpoints/mod_dingaling/mod_dingaling.c index 5f7527bcb4..ebf3deafc2 100644 --- a/src/mod/endpoints/mod_dingaling/mod_dingaling.c +++ b/src/mod/endpoints/mod_dingaling/mod_dingaling.c @@ -2489,9 +2489,10 @@ static switch_call_cause_t channel_outgoing_channel(switch_core_session_t *sessi tech_pvt->transports[LDL_TPORT_RTP].codec_index = -1; tech_pvt->transports[LDL_TPORT_VIDEO_RTP].codec_index = -1; + switch_set_flag(tech_pvt, TFLAG_SECURE); mdl_build_crypto(tech_pvt, LDL_TPORT_RTP, 1, AES_CM_128_HMAC_SHA1_80, SWITCH_RTP_CRYPTO_SEND); mdl_build_crypto(tech_pvt, LDL_TPORT_VIDEO_RTP, 1, AES_CM_128_HMAC_SHA1_80, SWITCH_RTP_CRYPTO_SEND); - switch_set_flag(tech_pvt, TFLAG_SECURE); + if (!(tech_pvt->transports[LDL_TPORT_RTP].local_port = switch_rtp_request_port(mdl_profile->ip))) {