Skip to main content

Teams Voice Services Configuration

KonfiguracjęThe wykonaszconfiguration zawill pomocąbe komendperformed w aplikacjiin Windows PowerShell. 

KomputerYou powinienshould miećhave zainstalowanythe dodatek .NET Framework wadd-on wersjiversion 4.7.2 lubor nowszej.later Jeżeliinstalled nieon maszyour go,computer. kliknijIf wyou poniższydon't have it, click the following link iand zainstaluj:install it:  https://docs.microsoft.com/en-us/dotnet/framework/install/  

Uruchomienie programuStarting PowerShell

WIn Menuthe StartStart wyszukajmenu, narzędziesearch for the PowerShell, kliknijright-click nathe ikonęicon, prawymand klawiszemselect i wybierz uruchom jako administrator (runRun as Administrator)administrator. 

image.png

SprawdzenieChecking wersjithe programuversion of PowerShell

AbyTo sięmake upewnić,sure żethat będzieyou możliwewill wykonaniebe poleceńable opisanychto wexecute kolejnychthe punktach,commands sprawdźdescribed wersjęin narzędziathe following sections, check the version of the PowerShell. PowerShell.Open WPowerShell oknieand aplikacjienter wprowadźthe polecenie:following command:

$PSVersionTable.PSVersion 

AplikacjaThe PowerShellPowerShell powinnaapplication miećshould wersjęhave version 5.1 (Major: (Major:5, 5, Minor: 1)1) lubor wyższą.higher.

If

Jeżeliit jestis niższa,lower, zaktualizujupdate jąPowerShell zgodnieaccording zto instrukcjąthe zinstructions poniższejon strony:the following page:

https://docs.microsoft.com/en-us/powershell/scripting/windows-powershell/install/installing-windows-powershell#upgrading-existing-windows-powershell  

JeżeliIf pothe wydaniuversion poleceniainformation does not appear after issuing the $PSVersionTable.PSVersion wcommand, nieuse pojawithe sięfollowing informacja o wersji aplikacji, użyj polecenia: command:

$host.Version.

InstalacjaInstalling wymaganychrequired modułów
modules

ZainstalujInstall wymaganethe moduły do poprawnej konfiguracji usługi. Pojedynczo kopiuj poniższe polecenia zaznaczone narequired niebieskomodules, wklejajto jeproperly doconfigure programuthe service. Individually copy the following commands highlighted in blue, paste them into PowerShell iand wykonujexecute naciskającby pressing EnterEnter..

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

Register-PSRepository -Default

Install-Module -Name PowerShellGet -Force -AllowClobber

Install-Module -Name MicrosoftTeams -Force -AllowClobber

Update-Module MicrosoftTeams

Set-ExecutionPolicy RemoteSigned

Import-Module -Name MicrosoftTeams

Set-ExecutionPolicy Restricted

LogowanieLogging doin tenantato wthe organizacjitenant in the MS Teams organization

SkopiujCopy poniższethe poleceniefollowing icommand, wklejpaste jeit dointo okna w aplikacjithe PowerShell and execute by pressing Enter.

Connect-MicrosoftTeams

image.png

ZalogujLog sięin kontemwith użytkownikaa zuser account with uprawnieniamiadministrator administratoraprivileges win tenancie.the Kontotenant. zThe uprawnieniamiaccount administratorawith administrator privileges is the one used to te,create nathe którymnew zostałdomain in the Adding a utworzonaNew nowaDomain domenato w instrukcji Dodanie nowej domeny do centrum administracyjnegothe Microsoft 365 Administration Center. instructions.

KonfigurowanieConfiguring routingurouting dlafor połączeńphone telefonicznychcalls

SkopiujIndividually pojedyńczocopy poniższethe poleceniafollowing icommands wklejhighlighted jein doblue, programupaste them into PowerShell. and execute by pressing Enter.

Set-CsOnlinePstnUsage -Identity Global -Usage @{Add="TMobileRouting"}

Set-CsOnlineVoiceRoutingPolicy -Identity Global -OnlinePSTNUsages "TMobileRouting"

WIn ostatnimthe zlast nichcommand, domenathe domain T10012345.T10012345.teams.t-mobile.plpl powinnashould byćbe zmienionareplaced nawith taką,the któraone zostałathat przyznanawas przezassigned by T-Mobile. Mobile.

New-CsOnlineVoiceRoute -Identity "TMobileRouting“ -NumberPattern ".*" -OnlinePstnGatewayList T10012345.teams.t-mobile.pl -Priority 1 -OnlinePstnUsages "TMobileRouting"

NieDo zamykajnot programuclose PowerShell będzieit onwill potrzebnybe wneeded kolejnymin etapiethe konfiguracjinext usługi Numer w Teams.instruction.

PoAfter udanymsuccessfully wykonaniuexecuting tegothis poleceniacommand, możeszyou przejśccan doproceed Przypisanieto numeracjithe telefonicznejnext do kont użytkowników. instruction.