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
pull/2239/merge
Richard Fuchs 4 days ago
parent 2d7a078b29
commit 3e4466f30c

@ -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) {

Loading…
Cancel
Save