diff --git a/lib/call-session.js b/lib/call-session.js index 1271e23..e19b294 100644 --- a/lib/call-session.js +++ b/lib/call-session.js @@ -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,