remove flag
This commit is contained in:
parent
e03b6d0878
commit
2bafe135c0
|
@ -1292,7 +1292,6 @@ typedef enum {
|
||||||
CF_MEDIA_TRANS,
|
CF_MEDIA_TRANS,
|
||||||
CF_HOLD_ON_BRIDGE,
|
CF_HOLD_ON_BRIDGE,
|
||||||
CF_SECURE,
|
CF_SECURE,
|
||||||
CF_CRYPTO_RECOVER,
|
|
||||||
CF_LIBERAL_DTMF,
|
CF_LIBERAL_DTMF,
|
||||||
CF_SLA_BARGE,
|
CF_SLA_BARGE,
|
||||||
CF_SLA_BARGING,
|
CF_SLA_BARGING,
|
||||||
|
|
|
@ -775,7 +775,6 @@ static void switch_core_session_get_recovery_crypto_key(switch_core_session_t *s
|
||||||
engine->ssec.crypto_tag = 1;
|
engine->ssec.crypto_tag = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch_channel_set_flag(session->channel, CF_CRYPTO_RECOVER);
|
|
||||||
switch_channel_set_flag(session->channel, CF_SECURE);
|
switch_channel_set_flag(session->channel, CF_SECURE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -835,10 +834,6 @@ SWITCH_DECLARE(int) switch_core_session_check_incoming_crypto(switch_core_sessio
|
||||||
|
|
||||||
/* Change our key every time we can */
|
/* Change our key every time we can */
|
||||||
|
|
||||||
if (switch_channel_test_flag(session->channel, CF_CRYPTO_RECOVER)) {
|
|
||||||
switch_channel_clear_flag(session->channel, CF_CRYPTO_RECOVER);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (sdp_type == SDP_TYPE_REQUEST) {
|
if (sdp_type == SDP_TYPE_REQUEST) {
|
||||||
if (switch_stristr(SWITCH_RTP_CRYPTO_KEY_32, crypto)) {
|
if (switch_stristr(SWITCH_RTP_CRYPTO_KEY_32, crypto)) {
|
||||||
switch_channel_set_variable(session->channel, varname, SWITCH_RTP_CRYPTO_KEY_32);
|
switch_channel_set_variable(session->channel, varname, SWITCH_RTP_CRYPTO_KEY_32);
|
||||||
|
|
Loading…
Reference in New Issue