From 7d2125788fa37343975bc4684dffa2a3a563358c Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Tue, 26 Jul 2022 12:25:58 +0100 Subject: [PATCH] when releasing media, use asymetric flag so that rtpengine does react to a spurious final packet from freeswitch by incorrectly sending rtp there --- lib/call-session.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/call-session.js b/lib/call-session.js index 071f59e..01d4b95 100644 --- a/lib/call-session.js +++ b/lib/call-session.js @@ -552,6 +552,7 @@ Duration=${payload.duration} ` if (reason && dlg.type === 'uas' && ['release-media', 'anchor-media'].includes(reason)) { this.logger.info(`got a reinvite from FS to ${reason}`); sdp = dlg.other.remote.sdp; + answerMedia.flags = ['asymmetric', 'port latching']; } else { sdp = await dlg.other.modify(response.sdp);