PSTN Gateway anbinden
Voraussetzungen
- Das aktuelle MicrosoftTeams Powershell Modul wurde installiert (>= 2.3.1).
Install-Module MicrosoftTeams
Update-Module MicrosoftTeams
Warning
Powershell Core wird nicht unterstützt.
Erfassen eines PSTN Gateways
- Das MicrosoftTeams Powershell Modul laden und am Tenant anmelden.
Import-Module MicrosoftTeams Connect-MicrosoftTeams
- Das Gateway erfassen.
New-CsOnlinePSTNGateway -Fqdn example-sbc.unibe.ch -SipSignallingPort 5061 -MaxConcurrentSessions 100 -Enabled $true -FailoverTimeSeconds 30 -ForwardCallHistory $true -SendSipOptions $true -MediaBypass $true Set-CsOnlinePstnUsage -Identity Global -Usage @{Add="sbcexample"}
Erstellen einer Gateway Policy
- Das MicrosoftTeams Powershell Modul laden und am Tenant anmelden.
Import-Module MicrosoftTeams Connect-MicrosoftTeams
-
Die Route erfassen.
New-CsOnlineVoiceRoute -Identity "Direct Routing SBC Example" -NumberPattern ".*" -OnlinePstnGatewayList example-sbc.unibe.ch -Priority 100 -OnlinePstnUsages "sbcexample"
-
Die Policy erfassen.
New-CsOnlineVoiceRoutingPolicy "Direct Routing SBC Example" -OnlinePstnUsages "sbcexample"