From 772db96c360d8b569e5ad5ad3d055a6ddd211eda Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Mon, 8 Feb 2021 08:41:06 -0500 Subject: [PATCH] TT#91151 fix check for trickle ICE and zero address Avoid using an explicit test for the trickle ICE endpoint address and instead use the TRICKLE_ICE flag. Change-Id: I821ced7e77c798004c9d88ec072848b7f6e24a85 --- daemon/call.c | 2 +- t/auto-daemon-tests.pl | 95 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 96 insertions(+), 1 deletion(-) diff --git a/daemon/call.c b/daemon/call.c index 7affbc3e5..f2c0f0fb2 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -2261,7 +2261,7 @@ int monologue_offer_answer(struct call_monologue *other_ml, GQueue *streams, __disable_streams(other_media, num_ports); goto init; } - if (is_addr_unspecified(&sp->rtp_endpoint.address) && !is_trickle_ice_address(&sp->rtp_endpoint)) { + if (is_addr_unspecified(&sp->rtp_endpoint.address) && !MEDIA_ISSET(other_media, TRICKLE_ICE)) { /* Zero endpoint address, equivalent to setting the media stream * to sendonly or inactive */ MEDIA_CLEAR(media, RECV); diff --git a/t/auto-daemon-tests.pl b/t/auto-daemon-tests.pl index 4e8236e8e..68957e647 100755 --- a/t/auto-daemon-tests.pl +++ b/t/auto-daemon-tests.pl @@ -86,6 +86,50 @@ SDP new_call; +offer('null address test A trickle', + { }, < 'remove' }, < 'remove' }, <