From cbb019f558a79262b42a5c94a07793e425d1c9ba Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 12 Sep 2023 09:25:05 -0400 Subject: [PATCH] MT#55283 take ice-lite option from session level as per RFC 8839 We're liberal and also accept it as a media-level attribute. closes #1721 Change-Id: If0cd853f3661ff9e183fbd9dab3f4ca634823c87 (cherry picked from commit f05a8e4b4db7123046640a80273378e79fce9724) --- daemon/sdp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/sdp.c b/daemon/sdp.c index 1f851b2df..eaccf3613 100644 --- a/daemon/sdp.c +++ b/daemon/sdp.c @@ -1542,7 +1542,7 @@ no_cand: else if (is_trickle_ice_address(&sp->rtp_endpoint)) SP_SET(sp, TRICKLE_ICE); - if (attr_get_by_id(&media->attributes, ATTR_ICE_LITE)) + if (attr_get_by_id_m_s(media, ATTR_ICE_LITE)) SP_SET(sp, ICE_LITE_PEER); attr = attr_get_by_id_m_s(media, ATTR_ICE_PWD);