]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
doh
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 16 Jul 2012 22:16:10 +0000 (17:16 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 16 Jul 2012 22:16:10 +0000 (17:16 -0500)
src/mod/endpoints/mod_dingaling/mod_dingaling.c

index b7272d25f742b5507375e19f457c6e68497dc59a..5f7527bcb458c9b0af624979c3f423534f24ca21 100644 (file)
@@ -2491,8 +2491,7 @@ static switch_call_cause_t channel_outgoing_channel(switch_core_session_t *sessi
 
                        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_channel_set_flag(tech_pvt->channel, TFLAG_SECURE);
-
+                       switch_set_flag(tech_pvt, TFLAG_SECURE);
 
 
                        if (!(tech_pvt->transports[LDL_TPORT_RTP].local_port = switch_rtp_request_port(mdl_profile->ip))) {
@@ -4101,7 +4100,7 @@ static ldl_status handle_signalling(ldl_handle_t *handle, ldl_session_t *dlsessi
 
                                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_channel_set_flag(tech_pvt->channel, TFLAG_SECURE);
+                               switch_set_flag(tech_pvt, TFLAG_SECURE);
 
                                if (!(tech_pvt->transports[LDL_TPORT_RTP].local_port = switch_rtp_request_port(profile->ip))) {
                                        switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_CRIT, "No RTP port available!\n");