Skip to content

TEL-886: Minor touchups for sip rework - #76

Merged
alexlivekit merged 11 commits into
mainfrom
alex/genericswitch
Aug 12, 2026
Merged

TEL-886: Minor touchups for sip rework#76
alexlivekit merged 11 commits into
mainfrom
alex/genericswitch

Conversation

@alexlivekit

Copy link
Copy Markdown
Contributor

Changes:

  • Expose CodeToChar() to avoid hacks around existing eventToChar map.
  • Split SwitchWriter into two classes:
    • WriteCloserSwitch[T] Unset initial sample rate, and a generic switch for WriteCloser[T], also has the "unset" sample rate feature.
    • SwitchWriter is now a wrapper around WriteCloserSwitch[T], that keeps Enable/Disable and on-demand resampling.
  • Exposed PeerDirection in media config.

@alexlivekit
alexlivekit requested a review from alexfish8 August 11, 2026 22:57
@alexlivekit
alexlivekit requested review from a team as code owners August 11, 2026 22:57
@alexlivekit alexlivekit changed the title Alex/genericswitch TEL-886: Minor touchups for sip rework Aug 11, 2026

@alexfish8 alexfish8 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good! Mostly nits around commenting.

Comment thread dtmf/dtmf.go
Comment thread media.go
Comment thread media.go
Comment thread media.go Outdated
Comment thread media.go Outdated
Comment thread media.go
Comment thread media.go
Comment thread media.go Outdated
@alexlivekit
alexlivekit merged commit b8abb1d into main Aug 12, 2026
2 checks passed
@alexlivekit
alexlivekit deleted the alex/genericswitch branch August 12, 2026 00:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants