Skip to content

Conversation

@nishadmusthafa
Copy link
Contributor

Adding update and get apis for purchased phone numbers

@nishadmusthafa nishadmusthafa requested a review from a team August 27, 2025 02:41
@changeset-bot
Copy link

changeset-bot bot commented Aug 27, 2025

🦋 Changeset detected

Latest commit: 8dd9d4a

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.

@nishadmusthafa nishadmusthafa marked this pull request as ready for review August 27, 2025 02:41
// PurchasePhoneNumberRequest - Request to purchase phone numbers
message PurchasePhoneNumberRequest {
repeated string phone_numbers = 1; // Phone numbers to purchase (e.g., ["+1234567890", "+1234567891"])
string sip_dispatch_rule_id = 2; // Optional: SIP dispatch rule ID to apply to all purchased numbers
Copy link
Contributor

Choose a reason for hiding this comment

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

This might be misleading, since it's not linking that rule ID to the number, it's cloning the rule, right?

So to update a rule for all numbers, one would update the rule and then update numbers with that rule ID again.

Worth documenting it or adding rule id to the number model directly, if we want to link them persistently.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It isn't meant to be a clone. I've made it consistent by using sip_dispatch_rule_id in PurchasedPhoneNumber

@nishadmusthafa nishadmusthafa merged commit bb6fdd7 into main Aug 28, 2025
5 checks passed
@nishadmusthafa nishadmusthafa deleted the lk-phone-numbers-update-get branch August 28, 2025 15:18
@github-actions github-actions bot mentioned this pull request Aug 28, 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.

3 participants