-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Adding SIP routing functionality to PhoneNumbers SDK #22805
Merged
annatisch
merged 77 commits into
Azure:main
from
jiriburant:implementing-inputs-from-api-review
Jun 23, 2022
Merged
Adding SIP routing functionality to PhoneNumbers SDK #22805
annatisch
merged 77 commits into
Azure:main
from
jiriburant:implementing-inputs-from-api-review
Jun 23, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…Changed naming in client
…update samples. Changed naming of the update samples class.
#3) Adding async client.
Updated from main repo.
API change check for API changes have been detected in |
Fixed dependencies in setup.py file
API change check APIView has identified API level changes in this PR and created following API reviews. |
annatisch
reviewed
Jun 3, 2022
sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/__init__.py
Outdated
Show resolved
Hide resolved
...ion/azure-communication-phonenumbers/azure/communication/phonenumbers/siprouting/__init__.py
Outdated
Show resolved
Hide resolved
...ommunication-phonenumbers/azure/communication/phonenumbers/siprouting/_sip_routing_client.py
Outdated
Show resolved
Hide resolved
sdk/communication/azure-communication-phonenumbers/samples/siprouting/set_sip_trunks_sample .py
Outdated
Show resolved
Hide resolved
sdk/communication/azure-communication-phonenumbers/samples/siprouting/set_sip_trunks_sample .py
Outdated
Show resolved
Hide resolved
sdk/communication/azure-communication-phonenumbers/samples/siprouting/set_sip_trunk_sample.py
Outdated
Show resolved
Hide resolved
...unication/azure-communication-phonenumbers/samples/siprouting/set_sip_trunks_sample_async.py
Outdated
Show resolved
Hide resolved
sdk/communication/azure-communication-phonenumbers/samples/siprouting/set_sip_routes_sample.py
Outdated
Show resolved
Hide resolved
annatisch
reviewed
Jun 8, 2022
...ommunication-phonenumbers/azure/communication/phonenumbers/siprouting/_sip_routing_client.py
Outdated
Show resolved
Hide resolved
...ommunication-phonenumbers/azure/communication/phonenumbers/siprouting/_sip_routing_client.py
Outdated
Show resolved
Hide resolved
...ommunication-phonenumbers/azure/communication/phonenumbers/siprouting/_sip_routing_client.py
Outdated
Show resolved
Hide resolved
...ommunication-phonenumbers/azure/communication/phonenumbers/siprouting/_sip_routing_client.py
Outdated
Show resolved
Hide resolved
annatisch
approved these changes
Jun 21, 2022
iscai-msft
added a commit
to iscai-msft/azure-sdk-for-python
that referenced
this pull request
Jun 27, 2022
…into merge_patch * 'main' of https://github.com/Azure/azure-sdk-for-python: (155 commits) {machine learning} || Fix a bug in the code (Azure#24922) [CLU] support for AAD + docs (Azure#24960) Update dpg version (Azure#24986) [Botservice]fix model (Azure#24971) [perf] Add pipeline template and storage pipelines (Azure#24894) [Storage] Remove client-side encryption code from shared (Azure#24931) [EventHubs&ServiceBus] update docker images to internal (Azure#24966) Sync eng/common directory with azure-sdk-tools for PR 3481 (Azure#24964) [Dpg] update to use global autorest version (Azure#24970) [CLU] release updates + fix tests (Azure#24963) [Test Proxy] Add method to reset setting customizations (Azure#24952) [Storage] Add proxy-supporting test classes (Azure#24937) [Confidential Ledger] Enable live testing (Azure#24912) fix type of _SansIOHTTPPolicyRunner (Azure#24932) Adding SIP routing functionality to PhoneNumbers SDK (Azure#22805) [DPG] update quick-start-tool (Azure#24942) [formrecognizer] Enable copy model tests (Azure#24917) [CLU] remove maxpagesize (Azure#24949) Use westus3 for translation live tests (Azure#24947) [Storage] Make lease duration tests less flakey (Azure#24930) ...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Added the SipRoutingClient enabling management of SIP routing configuration for
direct routing
numbers.Each Azure Communication resource has exactly one SIP configuration, containing a dictionary of trunks and a list of routes.
The trunks allow for partial updates, the configuration is merged with the incoming trunk dictionary. The routes don’t allow for partial updates, the whole list is replaced by the incoming list (if it is present on PATCH request).
The SIP routing client provides straigthforward methods to retrieve and manage SIP trunks and voice routes.
Note:
The API we are calling from the SDK is rather different from the SDK public interface, so we had to introduce two types for SIP trunks, called "SipTrunk" and "SipTrunkInternal", where "SipTrunk" is exposed to user and "SipTrunkInternal" is used for communication with backend API. This can be a bit confusing in the code, when the info is mapped to and from those types.
Resources:
API specification with API examples: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/communication/data-plane/SipRouting/preview/2021-05-01-preview
Conceptual doc, explaining the direct routing provisioning scenario: https://docs.microsoft.com/en-us/azure/communication-services/concepts/telephony/direct-routing-provisioning
Apiview link: https://apiview.dev/Assemblies/Review/b32afd45c457422992f506154f376d68
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines