Skip to content

VAPI-3239 fix: harden DTMF sending and always negotiate telephone-event codec#8

Merged
smoghe-bw merged 1 commit into
mainfrom
fix-sdp-sending-dtmf-offer
Jul 1, 2026
Merged

VAPI-3239 fix: harden DTMF sending and always negotiate telephone-event codec#8
smoghe-bw merged 1 commit into
mainfrom
fix-sdp-sending-dtmf-offer

Conversation

@smoghe-bw

Copy link
Copy Markdown
Contributor

Guard sendDtmf against unready or throwing RTCDTMFSender instances so one bad sender doesn't block others, and apply codec preferences unconditionally on audio tracks so telephone-event is always offered regardless of caller-provided codecPreferences. Also warn when an audio SDP offer lacks telephone-event, since DTMF can never negotiate for that session.

Guard sendDtmf against unready or throwing RTCDTMFSender instances so
one bad sender doesn't block others, and apply codec preferences
unconditionally on audio tracks so telephone-event is always offered
regardless of caller-provided codecPreferences. Also warn when an
audio SDP offer lacks telephone-event, since DTMF can never negotiate
for that session.
@smoghe-bw smoghe-bw requested review from a team as code owners July 1, 2026 13:51
@bwappsec

bwappsec commented Jul 1, 2026

Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@smoghe-bw smoghe-bw changed the title fix: harden DTMF sending and always negotiate telephone-event codec VAPI-3239 fix: harden DTMF sending and always negotiate telephone-event codec Jul 1, 2026
@smoghe-bw smoghe-bw merged commit 296fd21 into main Jul 1, 2026
5 checks passed
@smoghe-bw smoghe-bw deleted the fix-sdp-sending-dtmf-offer branch July 1, 2026 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants