Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
davehorton committed Nov 16, 2024
1 parent 5be11fc commit dc008b4
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 @@ -825,7 +825,9 @@ Duration=${payload.duration} `
try {
const reason = req.get('X-Reason');
const isReleasingMedia = reason && dlg.type === 'uas' && ['release-media', 'anchor-media'].includes(reason);
const isFullMediaRelease = isReleasingMedia && process.env.JAMBONES_ENABLE_FULL_MEDIA_RELEASE;
const isFullMediaRelease = isReleasingMedia &&
reason === 'release-media-entirely';

const fromTag = dlg.type === 'uas' ? this.rtpEngineOpts.uas.tag : this.rtpEngineOpts.uac.tag;
const toTag = dlg.type === 'uas' ? this.rtpEngineOpts.uac.tag : this.rtpEngineOpts.uas.tag;
const offerMedia = dlg.type === 'uas' ? this.rtpEngineOpts.uac.mediaOpts : this.rtpEngineOpts.uas.mediaOpts;
Expand Down

0 comments on commit dc008b4

Please sign in to comment.