Skip to content

Update SDK to support new SIP options.#838

Open
dennwc wants to merge 1 commit into
mainfrom
sip-update
Open

Update SDK to support new SIP options.#838
dennwc wants to merge 1 commit into
mainfrom
sip-update

Conversation

@dennwc

@dennwc dennwc commented May 8, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@dennwc dennwc requested a review from a team May 8, 2026 13:26
@dennwc dennwc self-assigned this May 8, 2026
@dennwc dennwc force-pushed the sip-update branch 2 times, most recently from fcf8584 to f76100d Compare May 18, 2026 14:44
Comment thread cmd/lk/sip.go
Comment on lines +571 to +573
if val, ok := optBoolFlag(cmd, "no-default-codecs"); ok {
m.OnlyListedCodecs = val
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nit: I personally feel like the indirection here doesn't make this simpler.

Suggested change
if val, ok := optBoolFlag(cmd, "no-default-codecs"); ok {
m.OnlyListedCodecs = val
}
noDefaultCodecsFlag := "no-default-codecs"
if cmd.isSet(noDefaultCodecsFlag) {
m.OnlyListedCodecs = cmd.Bool(noDefaultCodecsFlag)
}

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