-
Notifications
You must be signed in to change notification settings - Fork 233
Clean up writer interfaces. #793
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
alexfish8
merged 9 commits into
tel-886/media-port
from
tel-886/afish/clean-up-interfaces
Aug 14, 2026
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
d0ea088
Remove audio input processor.
alexfish8 8d011d6
Rename MediaSegment methods.
alexfish8 a28910f
Implement MediaSegment for *Room.
alexfish8 e9f9a1b
Fix outbound audio issue when transferring calls.
alexfish8 25ebe74
Respond to PR feedback.
alexfish8 f55da47
Get tests compiling.
alexfish8 e874973
Add back in DTMF forwarding check.
alexfish8 4c0d781
Move DTMF wiring.
alexfish8 ad3eef4
Fix test.
alexfish8 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡 Every inbound call logs a false warning about an unexpected DTMF destination
The DTMF destination for the call is unconditionally reported as unexpected (
Warnw("media port has unexpected inbound dtmf writer")atpkg/sip/inbound.go:1636) even though the code itself always installs a temporary destination beforehand, so operators see a spurious warning on every single inbound call.Impact: Log noise and false alarms on every inbound call, which can mask genuine warnings.
Mechanism: pin-prompt DTMF writer is always installed first, so the swap always returns a non-nil previous writer
pkg/sip/inbound.go:1183always installs&pinDTMFWriter{c.dtmf}as the media port's inbound DTMF destination duringrunMediaConn, for both the pin-prompt and non-pin dispatch paths.publishTracklater hands DTMF over to the room (pkg/sip/inbound.go:1635), soWriteInboundDTMFToalways returns the previously-installedpinDTMFWriter, makingold != nilunconditionally true and triggering the warning plus a no-opClose(). The intended handoff should not be treated as an invariant violation; only a non-pinDTMFWriterprevious value is unexpected.Prompt for agents
Was this helpful? React with 👍 or 👎 to provide feedback.