mirror of
https://github.com/jambonz/sbc-inbound.git
synced 2025-12-19 04:37:43 +00:00
use inject dtmf only for webrtc clients (#222)
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -36,3 +36,4 @@ node_modules
|
||||
.DS_Store
|
||||
|
||||
examples/*
|
||||
CLAUDE.md
|
||||
@@ -25,8 +25,8 @@ function makeRtpEngineOpts(req, srcIsUsingSrtp, dstIsUsingSrtp, teams = false) {
|
||||
const dstOpts = dstIsUsingSrtp ? srtpOpts : rtpCopy;
|
||||
const srcOpts = srcIsUsingSrtp ? srtpOpts : rtpCopy;
|
||||
|
||||
/* Allow Feature server to inject DTMF to both leg except call from Teams */
|
||||
if (!teams) {
|
||||
/* Allow rtpengine to inject DTMF for WebRTC clients only (this disables kernel forwarding) */
|
||||
if (!teams && (isWSS(req) || process.env.JAMBONES_RTPENGINE_INJECT_DTMF_ALWAYS)) {
|
||||
dstOpts.flags.push('inject DTMF');
|
||||
srcOpts.flags.push('inject DTMF');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user