Oct 01 2020 04:04 AM
I've been looking over the documentation for Direct Routing and have a few questions.
Oct 01 2020 04:37 AM
I guess maybe the answer to the first question is answered in the documentation on how many phone numbers we can get - it's based on the number of domestic calling plans we purchase. So putting two and two together, we can't really just grab a bunch of numbers to use with direct routing.
https://docs.microsoft.com/en-us/MicrosoftTeams/getting-phone-numbers-for-your-users
Oct 01 2020 05:37 AM
SolutionThe purpose of Direct Routing is to allow you to enable calling in Teams using a third-party PSTN provider, using the phone numbers provided by that third party. In theory, you could obtain numbers from Microsoft and then immediately request them to be ported to the third-party PSTN provider, but why would you? It would be a lot easier to just obtain them directly from the provider.
If you are using Direct Routing, when a call comes in to your SBC and gets routed in to Teams, it arrives with a REQUEST header like sip:+18338006777@sip.pstnhub.microsoft.com, where the +18338006777 portion is the number the caller dialed. Teams routes the call to the user in your tenant with that number in their OnPremLineURI attribute.
Oct 01 2020 08:04 AM
@Ryan Steele thanks for the info on OnPremLineURI, it makes sense now.
100% agree on porting numbers, however right now it's taking months to complete number ports due to backlog, so I was hoping for a simpler solution.
Oct 01 2020 05:37 AM
SolutionThe purpose of Direct Routing is to allow you to enable calling in Teams using a third-party PSTN provider, using the phone numbers provided by that third party. In theory, you could obtain numbers from Microsoft and then immediately request them to be ported to the third-party PSTN provider, but why would you? It would be a lot easier to just obtain them directly from the provider.
If you are using Direct Routing, when a call comes in to your SBC and gets routed in to Teams, it arrives with a REQUEST header like sip:+18338006777@sip.pstnhub.microsoft.com, where the +18338006777 portion is the number the caller dialed. Teams routes the call to the user in your tenant with that number in their OnPremLineURI attribute.