From 614aa1a50ab93bd60db574da6c7cbe76f135c2fb Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Thu, 12 Jan 2023 14:26:25 -0500 Subject: [PATCH] MT#55283 restart DTLS with ICE reset ... when TLS-ID is not in use. closes #1585 Change-Id: Ibe49f2a9942eddcb7122f7f3da849455c72c2d23 --- daemon/call.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/daemon/call.c b/daemon/call.c index 75110771e..c1bcc8f88 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -2340,6 +2340,10 @@ static void __dtls_logic(const struct sdp_ng_flags *flags, 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) { + ilogs(crypto, LOG_INFO, "ICE restart without TLS-ID, restarting DTLS"); + __dtls_restart(other_media); + } call_str_cpy(call, &other_media->tls_id, &sp->tls_id);