Skip to content

Update media-sdk. Support codec parameters. - #837

Open
dennwc wants to merge 2 commits into
mainfrom
codec-params
Open

Update media-sdk. Support codec parameters.#837
dennwc wants to merge 2 commits into
mainfrom
codec-params

Conversation

@dennwc

@dennwc dennwc commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@dennwc dennwc self-assigned this Sep 7, 2026
@dennwc
dennwc requested a review from a team as a code owner September 7, 2026 14:21
devin-ai-integration[bot]

This comment was marked as resolved.

@dennwc
dennwc force-pushed the codec-params branch 3 times, most recently from eac440f to 5024d0e Compare September 7, 2026 19:08
devin-ai-integration[bot]

This comment was marked as resolved.

@dennwc
dennwc enabled auto-merge (squash) September 8, 2026 11:12
* Match DTMF sample rate to the audio codec rate.

* Skip opus tests for now.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 new potential issue.

2 flags not posted on this PR by your GitHub settings — view them in Devin Review. (Configure)

Devin Review

Comment thread pkg/sip/room.go

func (w *inboundDTMFWriter) SampleRate() int {
return dtmf.SampleRate
return 0

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 PIN calls panic after verification

A PIN-protected call locks the DTMF switch to the negotiated rate through pinDTMFWriter. joinRoom then swaps in inboundDTMFWriter with zero rate, causing WriteCloserSwitch.Swap to panic.

Prompt for agents
PIN-protected inbound calls attach pinDTMFWriter with the negotiated DTMF clock rate in inboundCall.pinPrompt. After a valid PIN, inboundCall.joinRoom replaces that writer with Room.GetInboundDTMFWriter. inboundDTMFWriter.SampleRate currently returns zero. media-sdk WriteCloserSwitch locks its rate from the first writer and panics when a later writer has another rate, so this transition panics. Preserve the negotiated DTMF rate across the handoff, or redesign this event-only switch so both writers expose one consistent rate. Add a successful PIN-call test that reaches joinRoom.
Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

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.

1 participant