]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
put back if block so we don't try secure where none is present
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 4 Feb 2014 06:54:02 +0000 (11:54 +0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 4 Feb 2014 06:54:07 +0000 (11:54 +0500)
src/mod/endpoints/mod_dingaling/mod_dingaling.c

index b5f85497a6bebf61c4565dd712129cff597d4af5..baf21a0c76c29f7a13ad3c509820bea042668411 100644 (file)
@@ -1104,7 +1104,7 @@ static void try_secure(struct private_object *tech_pvt, ldl_transport_type_t tty
        }
 
 
-       //if (tech_pvt->transports[ttype].crypto_type) {
+       if (tech_pvt->transports[ttype].crypto_type) {
                switch_rtp_add_crypto_key(tech_pvt->transports[ttype].rtp_session, 
                                                                  SWITCH_RTP_CRYPTO_SEND, 1, tech_pvt->transports[ttype].crypto_type, 
                                                                  tech_pvt->transports[ttype].local_raw_key, SWITCH_RTP_KEY_LEN);
@@ -1120,7 +1120,7 @@ static void try_secure(struct private_object *tech_pvt, ldl_transport_type_t tty
                switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(tech_pvt->session), SWITCH_LOG_NOTICE, 
                                                  "%s %s crypto confirmed\n", ldl_transport_type_str(ttype), switch_core_session_get_name(tech_pvt->session));
 
-               //}
+       }
 
 }