diff --git a/lib/call-session.js b/lib/call-session.js index 0e44572..b2e1ad1 100644 --- a/lib/call-session.js +++ b/lib/call-session.js @@ -664,7 +664,7 @@ class CallSession extends Emitter { /* save far end SDP for later use if we do a full media release */ if (process.env.JAMBONES_ENABLE_FULL_MEDIA_RELEASE) { const key = makeFullMediaReleaseKey(this.req.get('X-CID')); - const sdp = this.req.body; + const sdp = uac.remote.sdp; this.logger.info({key, sdp}, 'saving far end sdp for full media release feature'); this.addKey(key, sdp, 3600).catch((err) => this.logger.error(err, 'Error saving far end sdp')); }