SOLVED

Direct Routing questions

%3CLINGO-SUB%20id%3D%22lingo-sub-1733952%22%20slang%3D%22en-US%22%3EDirect%20Routing%20questions%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1733952%22%20slang%3D%22en-US%22%3E%3CP%3EI've%20been%20looking%20over%20the%20documentation%20for%20Direct%20Routing%20and%20have%20a%20few%20questions.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CUL%3E%3CLI%3EIs%20it%20possible%20to%20configure%20direct%20routing%20for%20users%20with%20phone%20numbers%20we%20obtained%20from%20Microsoft%3F%3C%2FLI%3E%3CLI%3EWe%20are%20in%20SfB%20hybrid%20right%20now%2C%20however%20won't%20be%20once%20we%20complete%20our%20migration%20to%20Teams.%26nbsp%3B%20The%20documentation%20only%20references%20configuring%20the%20OnPremLineURI%20parameter.%26nbsp%3B%20What%20is%20the%20significance%20of%20the%20OnPremLineURI%20if%20we%20eventually%20won't%20be%20in%20SfB%20hybrid%20mode%3F%3C%2FLI%3E%3C%2FUL%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1733952%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1734125%22%20slang%3D%22en-US%22%3ERe%3A%20Direct%20Routing%20questions%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1734125%22%20slang%3D%22en-US%22%3E%3CP%3EI%20guess%20maybe%20the%20answer%20to%20the%20first%20question%20is%20answered%20in%20the%20documentation%20on%20how%20many%20phone%20numbers%20we%20can%20get%20-%20it's%20based%20on%20the%20number%20of%20domestic%20calling%20plans%20we%20purchase.%26nbsp%3B%20So%20putting%20two%20and%20two%20together%2C%20we%20can't%20really%20just%20grab%20a%20bunch%20of%20numbers%20to%20use%20with%20direct%20routing.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2FMicrosoftTeams%2Fgetting-phone-numbers-for-your-users%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2FMicrosoftTeams%2Fgetting-phone-numbers-for-your-users%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1734386%22%20slang%3D%22en-US%22%3ERe%3A%20Direct%20Routing%20questions%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1734386%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F13364%22%20target%3D%22_blank%22%3E%40David%20Phillips%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20purpose%20of%20Direct%20Routing%20is%20to%20allow%20you%20to%20enable%20calling%20in%20Teams%20using%20a%20third-party%20PSTN%20provider%2C%20using%20the%20phone%20numbers%20provided%20by%20that%20third%20party.%20In%20theory%2C%20you%20could%20obtain%20numbers%20from%20Microsoft%20and%20then%20immediately%20request%20them%20to%20be%20ported%20to%20the%20third-party%20PSTN%20provider%2C%20but%20why%20would%20you%3F%20It%20would%20be%20a%20lot%20easier%20to%20just%20obtain%20them%20directly%20from%20the%20provider.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20you%20are%20using%20Direct%20Routing%2C%20when%20a%20call%20comes%20in%20to%20your%20SBC%20and%20gets%20routed%20in%20to%20Teams%2C%20it%20arrives%20with%20a%20REQUEST%20header%20like%26nbsp%3B%3CSPAN%3Esip%3A%2B18338006777%40sip.pstnhub.microsoft.com%2C%20where%20the%26nbsp%3B%2B18338006777%20portion%20is%20the%20number%20the%20caller%20dialed.%20Teams%20routes%20the%20call%20to%20the%20user%20in%20your%20tenant%20with%20that%20number%20in%20their%20OnPremLineURI%20attribute.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1735151%22%20slang%3D%22en-US%22%3ERe%3A%20Direct%20Routing%20questions%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1735151%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F80266%22%20target%3D%22_blank%22%3E%40Ryan%20Steele%3C%2FA%3E%26nbsp%3Bthanks%20for%20the%20info%20on%20OnPremLineURI%2C%20it%20makes%20sense%20now.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E100%25%20agree%20on%20porting%20numbers%2C%20however%20right%20now%20it's%20taking%20months%20to%20complete%20number%20ports%20due%20to%20backlog%2C%20so%20I%20was%20hoping%20for%20a%20simpler%20solution.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Super Contributor

I've been looking over the documentation for Direct Routing and have a few questions.

 

  • Is it possible to configure direct routing for users with phone numbers we obtained from Microsoft?
  • We are in SfB hybrid right now, however won't be once we complete our migration to Teams.  The documentation only references configuring the OnPremLineURI parameter.  What is the significance of the OnPremLineURI if we eventually won't be in SfB hybrid mode?
3 Replies

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

Best Response confirmed by ThereseSolimeno (Microsoft)
Solution

@David Phillips 

The 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.

@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.