Skip to content

Detailed responses in trunk iter#1101

Merged
nishadmusthafa merged 3 commits intomainfrom
trunk-iter-detailed
Jun 10, 2025
Merged

Detailed responses in trunk iter#1101
nishadmusthafa merged 3 commits intomainfrom
trunk-iter-detailed

Conversation

@nishadmusthafa
Copy link
Copy Markdown
Contributor

This will help discern between cases when
  1. No trunks are configured
  2. Trunks are configured but none matched.(This can happen when there is no default trunk)
  3. There is a default trunk that got applied
  4. A specific trunk matched

    This will help discern between cases when
1. No trunks are configured
2. Trunks are configured but none matched.(This can happen when there is no default trunk)
3. There is a default trunk that got applied
4. A specific trunk matched
@nishadmusthafa nishadmusthafa requested a review from dennwc June 10, 2025 03:23
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Jun 10, 2025

🦋 Changeset detected

Latest commit: c1ff3fc

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Comment thread sip/sip.go Outdated
}

// MatchTrunkIterDetailed is like MatchTrunkIter but returns detailed match information
func MatchTrunkIterDetailed(it iters.Iter[*livekit.SIPInboundTrunkInfo], call *rpc.SIPCall, opts ...MatchTrunkOpt) (*TrunkMatchResult, error) {
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.

Just a nit, but you could drop Iter from the name, if you want.

@nishadmusthafa nishadmusthafa merged commit 31c2c88 into main Jun 10, 2025
7 checks passed
@nishadmusthafa nishadmusthafa deleted the trunk-iter-detailed branch June 10, 2025 22:07
@github-actions github-actions bot mentioned this pull request Jun 10, 2025
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.

2 participants