Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
davehorton committed Nov 18, 2024
1 parent 6fcef77 commit fb62958
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/call-session.js
Original file line number Diff line number Diff line change
Expand Up @@ -733,14 +733,16 @@ Duration=${payload.duration} `

//DH 2024-11- 18: if we are going from no-media to either partial or full media, we need reinvite the far end
if (isReleasingMedia && this._mediaPath !== MediaPath.NoMedia) {
this.logger.info({response}, `got a reinvite from FS to ${reason}`);
this.logger.debug({response}, `got a reinvite from FS to ${reason}, current media path is ${this._mediaPath}`);
sdp = dlg.other.remote.sdp;
if (!answerMedia.flags.includes('asymmetric')) answerMedia.flags.push('asymmetric');
answerMedia.flags = answerMedia.flags.filter((f) => f !== 'media handover');
this._mediaPath = 'release-media' === reason ? MediaPath.PartialMedia : MediaPath.FullMedia;
this.logger.debug(`media path is now ${this._mediaPath}`);
}
else {
sdp = await dlg.other.modify(response.sdp);
this.logger.info({rtengine_response: response, farEndSdp: sdp}, 'got a reinvite from FS, sent to far end');
}
opts = {
...this.rtpEngineOpts.common,
Expand Down

0 comments on commit fb62958

Please sign in to comment.