fix srtp neg in rare case

This commit is contained in:
Anthony Minessale 2013-04-08 13:24:27 -05:00 committed by Brian West
parent 1ac0654f23
commit ae95109eb7
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}