Teams Direct Routing

%3CLINGO-SUB%20id%3D%22lingo-sub-2999732%22%20slang%3D%22en-US%22%3ETeams%20Direct%20Routing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2999732%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20it%20possible%20to%20create%20two%20Policies%20under%20direct%20routing%20and%20add%201%20SBC%20in%20one%20policy%20and%201%20in%20another%2C%20then%20assign%201policy%20to%20user%20abc%20and%201%20policy%20to%20user%20xyz.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EExmaple-%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDirect%26nbsp%3B%20Routing%20-%20Voice%20Route%20Name%20-%20Test%201%26nbsp%3B%20(SBC%20-%20test1.abc.com)%20-%20Map%20this%20with%20user%20abc%3C%2FP%3E%3CP%3EDirect%20Routing%20-%20Voice%20Route%20Name%20-%20Test%202%26nbsp%3B%20(SBC%20-%20test2.lab.abc.com(%20-%20Map%20this%20with%20user%20xyz%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2999732%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDirect%20Routing%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ETeams%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ETeams%20Calling%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3004079%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20Direct%20Routing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3004079%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1228120%22%20target%3D%22_blank%22%3E%40jas89%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAbsolutely%2C%20this%20is%20how%20pstn%20usages%2C%20voice%20routing%20policies%2C%20and%20voice%20policies%20can%20be%20combined.%26nbsp%3B%20For%20example%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3ESet-CsOnlinePstnUsage%20-Identity%20Global%20-Usage%20%40%7Badd%3D'Route1'%7D%0ASet-CsOnlinePstnUsage%20-Identity%20Global%20-Usage%20%40%7Badd%3D'Route2'%7D%0A%0ANew-CsOnlineVoiceRoute%20-Name%20'Route1Number'%20-NumberPattern%20'%5C%2B15555555555'%20-OnlinePstnUsages%20'Route1'%20-OnlinePstnGatewayList%20'test1.abc.com'%0ANew-CsOnlineVoiceRoute%20-Name%20'Route2Number'%20-NumberPattern%20'%5C%2B15555555555'%20-OnlinePstnUsages%20'Route2'%20-OnlinePstnGatewayList%20'test2.lab.abc.com'%0A%0ANew-CsOnlineVoiceRoutingPolicy%20-Identity%20'Route1Policy'%20-OnlinePstnUsages%20%40('US-Local'%2C'US-Long-Distance'%2C'Route1Number')%0ANew-CsOnlineVoiceRoutingPolicy%20-Identity%20'Route2Policy'%20-OnlinePstnUsages%20%40('US-Local'%2C'US-Long-Distance'%2C'Route2Number')%0A%0AGrant-CsOnlineVoiceRoutingPolicy%20-Identity%20'user1'%20-PolicyName%20'Route1Policy'%0AGrant-CsOnlineVoiceRoutingPolicy%20-Identity%20'user2'%20-PolicyName%20'Route2Policy'%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20this%20case%2C%20I%20created%202%20new%20PSTN%20Usages%20called%20Route1%20and%20Route2%2C%20but%20name%20them%20whatever%20you%20want%20that%20makes%20sense.%26nbsp%3B%20Then%20define%20your%20voice%20route%20for%20the%20number%20you%20want%2C%20assign%20it%20to%20the%20associated%20PSTN%20usages%2C%20and%20the%20respective%20gateways.%26nbsp%3B%20Then%20your%20policies%2C%20which%20is%20a%20combination%20of%20PSTN%20Usages%20you%20want%20to%20use%2C%20in%20my%20example%20I%20have%20US-Local%2C%20US-Long-Distance%2C%20and%20my%20newly%20created%20one.%26nbsp%3B%20Finally%20assign%20it%20to%20the%20respective%20user.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

Hi,

 

Is it possible to create two Policies under direct routing and add 1 SBC in one policy and 1 in another, then assign 1policy to user abc and 1 policy to user xyz.

 

Exmaple-

 

Direct  Routing - Voice Route Name - Test 1  (SBC - test1.abc.com) - Map this with user abc

Direct Routing - Voice Route Name - Test 2  (SBC - test2.lab.abc.com( - Map this with user xyz

 

 

 

1 Reply

@jas89 

 

Absolutely, this is how pstn usages, voice routing policies, and voice policies can be combined.  For example:

 

Set-CsOnlinePstnUsage -Identity Global -Usage @{add='Route1'}
Set-CsOnlinePstnUsage -Identity Global -Usage @{add='Route2'}

New-CsOnlineVoiceRoute -Name 'Route1Number' -NumberPattern '\+15555555555' -OnlinePstnUsages 'Route1' -OnlinePstnGatewayList 'test1.abc.com'
New-CsOnlineVoiceRoute -Name 'Route2Number' -NumberPattern '\+15555555555' -OnlinePstnUsages 'Route2' -OnlinePstnGatewayList 'test2.lab.abc.com'

New-CsOnlineVoiceRoutingPolicy -Identity 'Route1Policy' -OnlinePstnUsages @('US-Local','US-Long-Distance','Route1Number')
New-CsOnlineVoiceRoutingPolicy -Identity 'Route2Policy' -OnlinePstnUsages @('US-Local','US-Long-Distance','Route2Number')

Grant-CsOnlineVoiceRoutingPolicy -Identity 'user1' -PolicyName 'Route1Policy'
Grant-CsOnlineVoiceRoutingPolicy -Identity 'user2' -PolicyName 'Route2Policy'

 

In this case, I created 2 new PSTN Usages called Route1 and Route2, but name them whatever you want that makes sense.  Then define your voice route for the number you want, assign it to the associated PSTN usages, and the respective gateways.  Then your policies, which is a combination of PSTN Usages you want to use, in my example I have US-Local, US-Long-Distance, and my newly created one.  Finally assign it to the respective user.

www.000webhost.com