From fa58596a9fed94086365ba5f3c0dfad5cd8c75b8 Mon Sep 17 00:00:00 2001 From: Razvan Crainea Date: Wed, 12 Jan 2022 22:01:27 +0200 Subject: [PATCH] Swap media direction check for `subscribe request` as @rfuchs mentioned in his review, the SEND/RECV media flags are set according to rtpengine's perspective, not the media flow's one. --- daemon/call.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/call.c b/daemon/call.c index 2d5273847..86c78ddd9 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -2972,7 +2972,7 @@ static int monologue_subscribe_request1(struct call_monologue *src_ml, struct ca codec_handlers_update(dst_media, src_media, flags, sp); - if (MEDIA_ISSET(src_media, SEND)) + if (MEDIA_ISSET(src_media, RECV)) MEDIA_SET(dst_media, SEND); else MEDIA_CLEAR(dst_media, SEND);