mirror of
https://github.com/jambonz/sbc-outbound.git
synced 2025-12-19 04:27:45 +00:00
revert change (for now) that caused audio issues when reinviting to partial media (#187)
This commit is contained in:
12
lib/utils.js
12
lib/utils.js
@@ -28,11 +28,13 @@ function makeRtpEngineOpts(req, srcIsUsingSrtp, dstIsUsingSrtp, padCrypto, teams
|
|||||||
srcOpts.flags.push('inject DTMF');
|
srcOpts.flags.push('inject DTMF');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/** By default use strict source to secure aganst RTPInject vuln,
|
|
||||||
* set env var to true to disable it and use media handover instead */
|
/** By default, and for backwards compatibility, use media handover
|
||||||
const disableStrictSource = !!process.env.RTPENGINE_DISABLE_STRICT_SOURCE;
|
* set env var to true to use strict source instead (needed for rtpbleed vulnerability)
|
||||||
dstOpts.flags.push(disableStrictSource ? 'media handover' : 'strict source');
|
*/
|
||||||
srcOpts.flags.push(disableStrictSource ? 'media handover' : 'strict source');
|
const enableStrictSource = !!process.env.RTPENGINE_ENABLE_STRICT_SOURCE;
|
||||||
|
dstOpts.flags.push(enableStrictSource ? 'strict source' : 'media handover');
|
||||||
|
srcOpts.flags.push(enableStrictSource ? 'strict source' : 'media handover');
|
||||||
|
|
||||||
const common = {
|
const common = {
|
||||||
'call-id': req.get('Call-ID'),
|
'call-id': req.get('Call-ID'),
|
||||||
|
|||||||
Reference in New Issue
Block a user