From 3e4466f30c8dace2edbfb2db7408e6380e09804d Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Thu, 12 Nov 2026 09:26:52 -0400 Subject: [PATCH] MT#55283 simplify ICE state check The state of ICE on the B leg has nothing to do with the state of ICE on the A leg. Ref #2161 Ref #2207 Change-Id: I451796dcee10a163c4942cf61aed7c5710413e02 --- daemon/call.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/daemon/call.c b/daemon/call.c index b5d987903..5f2e2451f 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -1459,8 +1459,7 @@ static void __ice_offer(const sdp_ng_flags *flags, struct call_media *receiver, // advertise it. A locally created ICE agent means we intentionally // offered ICE on this leg, in which case keep the negotiated state. // In other cases ignore ICE=force on the answer (see issue #2161). - if (!op_is_offer(flags->opmode) && flags->ice_option == ICE_FORCE && - !MEDIA_ISSET(sender, ICE) && !receiver->ice_agent) + if (!op_is_offer(flags->opmode) && flags->ice_option == ICE_FORCE && !receiver->ice_agent) MEDIA_CLEAR(receiver, ICE); if (flags->passthrough_on) {