Skip to content
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

Allow passing all SIP trunk options in CreateSIPParticipant. #961

Merged
merged 2 commits into from
Feb 7, 2025

Conversation

dennwc
Copy link
Contributor

@dennwc dennwc commented Feb 3, 2025

No description provided.

@dennwc dennwc requested review from davidzhao and a team February 3, 2025 17:40
@dennwc dennwc self-assigned this Feb 3, 2025
Copy link

changeset-bot bot commented Feb 3, 2025

🦋 Changeset detected

Latest commit: a81fde8

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

💥 An error occurred when fetching the changed packages and changesets in this PR
Some errors occurred when validating the changesets config:
The package or glob expression "github.com/livekit/protocol" specified in the `fixed` option does not match any package in the project. You may have misspelled the package name or provided an invalid glob expression. Note that glob expressions must be defined according to https://www.npmjs.com/package/micromatch.

@@ -521,6 +521,7 @@ message DeleteSIPDispatchRuleRequest {
message CreateSIPParticipantRequest {
// What SIP Trunk should be used to dial the user
string sip_trunk_id = 1;
SIPOutboundTrunkInfo sip_trunk = 20;
Copy link
Member

Choose a reason for hiding this comment

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

IMO it seems rather confusing to embed all of the options from a SIP Trunk here. I would vote for just including the fields that are needed explicitly

  • url
  • username
  • password

@dennwc dennwc force-pushed the sip-outbound-no-trunk branch from e8d19b4 to a029285 Compare February 6, 2025 11:33
@dennwc
Copy link
Contributor Author

dennwc commented Feb 6, 2025

@davidzhao Done, added the remaining trunk fields in a separate config proto. Or do you prefer unwrapping it into a top-level message?

Also note that it doesn't accept a raw SIP URI, instead it specifies hostname and transport separately.

@dennwc dennwc requested a review from davidzhao February 6, 2025 11:53
@dennwc dennwc merged commit fdfc6fd into main Feb 7, 2025
1 check passed
@dennwc dennwc deleted the sip-outbound-no-trunk branch February 7, 2025 09:21
@github-actions github-actions bot mentioned this pull request Feb 7, 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