when releasing media, use asymetric flag so that rtpengine does react to a spurious final packet from freeswitch by incorrectly sending rtp there

This commit is contained in:
Dave Horton
2022-07-26 12:26:17 +01:00
parent 73528f5ce2
commit baad125924

View File

@@ -443,6 +443,7 @@ Duration=${payload.duration} `
if (reason && dlg.type === 'uac' && ['release-media', 'anchor-media'].includes(reason)) {
this.logger.info({response}, `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);