mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-24 11:48:48 +00:00
[Core] switch_core_media: Correct srtp_remote_audio_crypto_key variable
This commit is contained in:
parent
0f7ba14333
commit
73d6da1342
@ -1637,8 +1637,9 @@ static void switch_core_session_get_recovery_crypto_key(switch_core_session_t *s
|
|||||||
} else return;
|
} else return;
|
||||||
|
|
||||||
if ((tmp = switch_channel_get_variable(session->channel, keyvar))) {
|
if ((tmp = switch_channel_get_variable(session->channel, keyvar))) {
|
||||||
if ((tmp = switch_channel_get_variable(session->channel, ctypevar))) {
|
const char *ct;
|
||||||
engine->crypto_type = switch_core_media_crypto_str2type(tmp);
|
if ((ct = switch_channel_get_variable(session->channel, ctypevar))) {
|
||||||
|
engine->crypto_type = switch_core_media_crypto_str2type(ct);
|
||||||
}
|
}
|
||||||
|
|
||||||
engine->ssec[engine->crypto_type].remote_crypto_key = switch_core_session_strdup(session, tmp);
|
engine->ssec[engine->crypto_type].remote_crypto_key = switch_core_session_strdup(session, tmp);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user