Force Teams-to-Teams calls to use Direct Routing SBC

%3CLINGO-SUB%20id%3D%22lingo-sub-1558478%22%20slang%3D%22en-US%22%3EForce%20Teams-to-Teams%20calls%20to%20use%20Direct%20Routing%20SBC%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1558478%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe're%20setting%20up%20SIP%20trunks%20for%20Teams%2C%20using%20Direct%20Routing.%3C%2FP%3E%3CP%3EWhen%20a%20Teams%20user%20calls%20another%20Teams%20user%2C%20the%20call%20is%20handled%20%22inside%20Teams%22%20-%20it%20does%20not%20break%20out%20to%20our%20SBC.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20it%20possible%20to%20change%20that%20behaviour%2C%20so%20all%20calls%20breaks%20out%20to%20our%20SBC%2C%20even%20between%20two%20Teams%20users%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1558478%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-1558527%22%20slang%3D%22en-US%22%3ERe%3A%20Force%20Teams-to-Teams%20calls%20to%20use%20Direct%20Routing%20SBC%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1558527%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F745958%22%20target%3D%22_blank%22%3E%40KasperLeth%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhy%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20would%20take%20a%20look%20at%20this%2C%20I'm%20not%20sure%20if%20it%20will%20meet%20your%20requirements%2C%20normally%20we%20only%20bypass%20Teams%20when%20legal%20regulations%20need%20it%20(e.g.%20in%20India%2C%20some%20other%20countries)%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Flocation-based-routing-plan%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Flocation-based-routing-plan%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1558592%22%20slang%3D%22en-US%22%3ERe%3A%20Force%20Teams-to-Teams%20calls%20to%20use%20Direct%20Routing%20SBC%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1558592%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B-ERR%3AREF-NOT-FOUND-%40Steven%20Collier%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20problem%20is%20that%20we%20combine%20Teams%20with%20another%20platform%20using%20Direct%20Routing%20(hosting%20model).%20Teams%20in%20%22on%20the%20top%22%2C%20so%20to%20speak.%20So%20we%20have%20a%20feature%20rich%20PBX%20underneath%2C%20with%20desk%20phones%2C%20cell%20phones%2C%20advanced%20voice%20recording%2C%20statistics%20etc.%20And%20the%20users%20can%20then%20decide%20if%20inbound%20calls%20should%20be%20sent%20to%20their%20desk%20phone%2C%20cell%20phone%2C%20Teams%2C%20etc.%20(or%20a%20combination%20of%20those%2C%20and%20overflow%2C%20VM%2C%20etc.%2C%20etc.).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20when%20Teams-to-Teams%20calls%20are%20not%20routed%20via%20the%20PSTN%20voice%20route%2FDirect%20Routing%2C%20we%20cannot%20control%20the%20call.%20Meaning%20our%20call%20rules%20are%20not%20used%20-%20so%20if%20Alice%20receives%20an%20inbound%20call%2C%20that%20normally%20goes%20to%20her%20cell%20phone%2C%20Teams%20and%20desk%20phone%2C%20that%20doesn't%20happen%20if%20it's%20another%20Teams%20user%20that%20calls%20her%2C%20because%20we%20don't%20get%20the%20call.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFrom%20the%20artickle%20you%20linked%20to%20(thanks%2C%20btw%20%3A-))%2C%20the%20location-based%20routing%20is%20configured%20on%20the%20PSTN%20gateway%20(SBC).%20But%20in%20the%20Direct%20Routing%20(hosting%20model)%20setup%20we%20only%20have%20a%20voice%20route%20and%20no%20SBC.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20my%20thoughts%20was%20if%20there%20was%20an%20option%20in%20Teams%2C%20to%20force%20all%20calls%20to%20break%20out%20-%20for%20us%20to%20return%20them%20to%20the%20destination%20user%2C%20if%20it's%20another%20Teams%20user.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBR%2C%3C%2FP%3E%3CP%3EKasper%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1559723%22%20slang%3D%22en-US%22%3ERe%3A%20Force%20Teams-to-Teams%20calls%20to%20use%20Direct%20Routing%20SBC%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1559723%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F745958%22%20target%3D%22_blank%22%3E%40KasperLeth%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20you%20clarify%20what%20you%20mean%20by%20your%20%22Direct%20Routing%20(hosted%20model)%22%20doesn't%20have%20an%20SBC%3F%20Even%20if%20you%20were%20to%20do%20direct%20hosted%20with%20a%20carrier%2C%20there%20should%20still%20be%20an%20SBC%20involved.%26nbsp%3B%20What's%20the%20output%20of%20Get-CsOnlinePstnGateway%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1562294%22%20slang%3D%22en-US%22%3ERe%3A%20Force%20Teams-to-Teams%20calls%20to%20use%20Direct%20Routing%20SBC%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1562294%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F342739%22%20target%3D%22_blank%22%3E%40jangliss%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENo%2C%20the%20%22new%22%20(not%20so%20new%20anymore)%20way%20does%20not%20require%26nbsp%3B%3CSPAN%3Ea%20PSTN%20gateway%20on%20the%20tenants.%20Running%20your%20command%20returns%20nothing.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EFrom%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fdirect-routing-sbc-multiple-tenants%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fdirect-routing-sbc-multiple-tenants%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CEM%3E%22In%20the%20customer%20tenant%2C%20the%20carrier%20need%20only%20to%20add%20the%20derived%20trunk%20FQDN%20to%20the%20voice%20routing%20policies%20of%20the%20users.%20There%20is%20no%20need%20to%20run%20New-CSOnlinePSTNGateway%20for%20a%20trunk.%22%3C%2FEM%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20there%20is%20only%20a%20voice%20route%20on%20the%20tenant%2C%20no%20SBC%2FPSTN%20gateway.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1563034%22%20slang%3D%22en-US%22%3ERe%3A%20Force%20Teams-to-Teams%20calls%20to%20use%20Direct%20Routing%20SBC%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1563034%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F745958%22%20target%3D%22_blank%22%3E%40KasperLeth%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThat's%20interesting%2C%20but%20talks%20of%20multi-tenant%20support%20via%20a%20%22carrier%22%2C%20albeit%20you%20can%20be%20your%20own%20carrier%20if%20you%20wanted%20to%20support%20multiple%20tenants%20and%20keep%20them%20separate%20but%20still%20use%20the%20same%20SBC.%26nbsp%3B%20Are%20you%20using%20the%20multi-tenant%20setup%3F%20Otherwise%2C%20my%20reading%20of%20the%20documentation%20still%20requires%20an%20SBC%20to%20be%20created%20(via%20New-CsOnlinePSTNGateway)%20otherwise%20it%20will%20not%20know%20anything%20about%20the%20SBC%20(ports%2C%20media%20bypass%2C%20etc)%20as%20all%20you're%20providing%20for%20your%20policy%20is%20the%20hostname.%26nbsp%3B%20I%20didn't%20see%20it%20mentioned%20in%20the%20first%20post%2C%20which%20might%20be%20why%20the%20suggestion%20provided%20was%20put%20forward.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Hi

 

We're setting up SIP trunks for Teams, using Direct Routing.

When a Teams user calls another Teams user, the call is handled "inside Teams" - it does not break out to our SBC.

 

Is it possible to change that behaviour, so all calls breaks out to our SBC, even between two Teams users?

4 Replies
Highlighted

@KasperLeth 

 

Why?

 

I would take a look at this, I'm not sure if it will meet your requirements, normally we only bypass Teams when legal regulations need it (e.g. in India, some other countries)

https://docs.microsoft.com/en-us/microsoftteams/location-based-routing-plan

 

Highlighted

Hi @Steven Collier 

 

The problem is that we combine Teams with another platform using Direct Routing (hosting model). Teams in "on the top", so to speak. So we have a feature rich PBX underneath, with desk phones, cell phones, advanced voice recording, statistics etc. And the users can then decide if inbound calls should be sent to their desk phone, cell phone, Teams, etc. (or a combination of those, and overflow, VM, etc., etc.).

 

But when Teams-to-Teams calls are not routed via the PSTN voice route/Direct Routing, we cannot control the call. Meaning our call rules are not used - so if Alice receives an inbound call, that normally goes to her cell phone, Teams and desk phone, that doesn't happen if it's another Teams user that calls her, because we don't get the call.

 

From the artickle you linked to (thanks, btw :-)), the location-based routing is configured on the PSTN gateway (SBC). But in the Direct Routing (hosting model) setup we only have a voice route and no SBC.

 

So my thoughts was if there was an option in Teams, to force all calls to break out - for us to return them to the destination user, if it's another Teams user.

 

BR,

Kasper

Highlighted

@KasperLeth 

 

Can you clarify what you mean by your "Direct Routing (hosted model)" doesn't have an SBC? Even if you were to do direct hosted with a carrier, there should still be an SBC involved.  What's the output of Get-CsOnlinePstnGateway?

Highlighted

Hi @jangliss 

 

No, the "new" (not so new anymore) way does not require a PSTN gateway on the tenants. Running your command returns nothing.

 

From https://docs.microsoft.com/en-us/microsoftteams/direct-routing-sbc-multiple-tenants

"In the customer tenant, the carrier need only to add the derived trunk FQDN to the voice routing policies of the users. There is no need to run New-CSOnlinePSTNGateway for a trunk."

 

So there is only a voice route on the tenant, no SBC/PSTN gateway.