Skip to content

Update SDK to support new SIP options.#838

Merged
dennwc merged 1 commit into
mainfrom
sip-update
Jun 17, 2026
Merged

Update SDK to support new SIP options.#838
dennwc merged 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
@dennwc dennwc requested a review from rektdeckard June 4, 2026 09:20
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)
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It doesn't require an extra var with the flag name, though.

@dennwc dennwc merged commit 8ea1c99 into main Jun 17, 2026
10 checks passed
@dennwc dennwc deleted the sip-update branch June 17, 2026 14:36
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