use inject dtmf only for webrtc clients (#222)

This commit is contained in:
Dave Horton
2025-11-13 10:04:06 -05:00
parent 4150454736
commit f1349964cb
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@@ -36,3 +36,4 @@ node_modules
.DS_Store
examples/*
CLAUDE.md

View File

@@ -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');
}