Configure Teams Direct Routing: Difference between revisions
Created page with "==connect Powershell to Tennant== Install-Module MicrosoftTeams (if not there allready) Import-Module MicrosoftTeams $sfbSession = New-CsOnlineSession Import-PSSession $sfbS..." |
No edit summary |
||
| Line 1: | Line 1: | ||
==connect Powershell to Tennant== | ==connect Powershell to Tennant== | ||
Install-Module MicrosoftTeams (if not there allready) | Install-Module MicrosoftTeams (if not there allready) | ||
Import-Module MicrosoftTeams | |||
Import-Module MicrosoftTeams | $sfbSession = New-CsOnlineSession | ||
$sfbSession = New-CsOnlineSession | Import-PSSession $sfbSession | ||
Import-PSSession $sfbSession | |||
==Configure SBC== | ==Configure SBC== | ||
Revision as of 16:02, 17 November 2020
connect Powershell to Tennant
Install-Module MicrosoftTeams (if not there allready) Import-Module MicrosoftTeams $sfbSession = New-CsOnlineSession Import-PSSession $sfbSession
Configure SBC
New-CsOnlinePSTNGateway -Fqdn <SBC FQDN> -SipSignalingPort <SBC SIP Port> -MaxConcurrentSessions <Max Concurrent Sessions the SBC can handle> -Enabled $true -ForwardPai $true
Enable Users
Get-CsOnlineUser -Identity "<User name>" | fl RegistrarPool,OnPremLineUriManuallySet,OnPremLineUri,LineUri Set-CsUser -Identity "<User name>" -LineUri $null -EnterpriseVoiceEnabled $False -HostedVoiceMail $False Set-CsUser -Identity "<User name>" -EnterpriseVoiceEnabled $true -HostedVoiceMail $true -OnPremLineURI tel:<phone number>
Configure Routing
Set-CsOnlinePstnUsage -Identity Global -Usage @{Add="OneNet"} New-CsOnlineVoiceRoute -Identity "OneNetUnrestricted" -NumberPattern "^(\+d)$" -OnlinePstnGatewayList sbc001.onenetenterprise.de -Priority 1 -OnlinePstnUsages "OneNet" New-CsOnlineVoiceRoutingPolicy "OneNetUnrestricted" -OnlinePstnUsages "OneNet"