Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
xquanluu committed Nov 8, 2024
1 parent d045d06 commit d5d0d5f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ function makeRtpEngineOpts(req, srcIsUsingSrtp, dstIsUsingSrtp, padCrypto, teams
common,
uas: {
tag: from.params.tag,
mediaOpts: {
...srcOpts,
...(process.env.JAMBONES_ACCEPT_AND_TRANSCODE &&
{ codec: { mask: process.env.JAMBONES_ACCEPT_AND_TRANSCODE, transcode: 'pcmu,pcma' } })
}
mediaOpts: srcOpts
},
uac: {
tag: null,
mediaOpts: dstOpts
mediaOpts: {
...dstOpts,
...(process.env.JAMBONES_CODEC_OFFER_WITH_ORDER &&
{ codec: { offer: process.env.JAMBONES_CODEC_OFFER_WITH_ORDER.split(','), strip: 'all' } }),
}
}
};
}
Expand Down

0 comments on commit d5d0d5f

Please sign in to comment.