Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions daemon/call.c
Original file line number Diff line number Diff line change
Expand Up @@ -2228,8 +2228,13 @@ static void __dtls_logic(const sdp_ng_flags *flags,
}
else if (other_media->tls_id.len && (sp->tls_id.len == 0 || str_cmp_str(&other_media->tls_id, &sp->tls_id))) {
// previously seen tls-id and new tls-id is different or not present
ilogs(crypto, LOG_INFO, "TLS-ID changed, restarting DTLS");
__dtls_restart(other_media);
if (MEDIA_ISSET(other_media, SETUP_PASSIVE) && !MEDIA_ISSET(other_media, SETUP_ACTIVE)) {
// passive: active peer controls DTLS restart
ilogs(crypto, LOG_INFO, "TLS-ID changed, passive role, not restarting DTLS");
} else {
ilogs(crypto, LOG_INFO, "TLS-ID changed, restarting DTLS");
__dtls_restart(other_media);
}
}
else if (ice_is_restart(other_media->ice_agent, sp) && !other_media->tls_id.len && !sp->tls_id.len) {
// Skip DTLS restart if no-tls-id flag is active (user opted out of TLS-ID handling)
Expand Down
Loading