From 4751218ce5b3fd393d3a7f829da0a1500a0a56ac Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Mon, 6 Jul 2026 11:34:09 -0400 Subject: [PATCH] MT#55283 move setting of RECEIVED flag Should make more sense there Change-Id: I5a16d42510ee93e72f8cf605d9463e220b53aa6b --- daemon/media_socket.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/media_socket.c b/daemon/media_socket.c index d0b8c5a34..c822c5425 100644 --- a/daemon/media_socket.c +++ b/daemon/media_socket.c @@ -3151,8 +3151,6 @@ static bool media_packet_address_check(struct packet_handler_ctx *phc) } } - PS_SET(phc->mp.stream, RECEIVED); - endpoint_t *update_endpoint = &phc->mp.stream->endpoint; // don't update the "to" address endpoint for asymmetric streams if (MEDIA_ISSET(phc->mp.media, ASYMMETRIC)) @@ -3514,6 +3512,8 @@ static int stream_packet(struct packet_handler_ctx *phc) { if (media_packet_address_check(phc)) goto drop; + PS_SET(phc->mp.stream, RECEIVED); + if (rtpe_config.active_switchover && IS_FOREIGN_CALL(phc->mp.call)) call_make_own_foreign(phc->mp.call, false);