mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-13 15:50:59 +00:00
fix srtp neg in rare case
This commit is contained in:
parent
1ac0654f23
commit
ae95109eb7
@ -4399,7 +4399,7 @@ static const char *get_media_profile_name(switch_core_session_t *session, int se
|
||||
}
|
||||
}
|
||||
|
||||
if ((!secure && switch_channel_test_flag(session->channel, CF_SECURE)) || secure) {
|
||||
if (secure) {
|
||||
return "RTP/SAVP";
|
||||
}
|
||||
|
||||
@ -4559,7 +4559,7 @@ static void generate_m(switch_core_session_t *session, char *buf, size_t buflen,
|
||||
|
||||
}
|
||||
|
||||
if (!zstr(a_engine->local_dtls_fingerprint.type)) {
|
||||
if (!zstr(a_engine->local_dtls_fingerprint.type) && secure) {
|
||||
switch_snprintf(buf + strlen(buf), buflen - strlen(buf), "a=fingerprint:%s %s\n", a_engine->local_dtls_fingerprint.type,
|
||||
a_engine->local_dtls_fingerprint.str);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user