VoIP:VTX Teams Connect: Difference between revisions

From VTX Public Wiki

Line 106: Line 106:
</table>
</table>


==Voice Routing : Download and execute the ps1 voice routing==
== Voice Routing : Download and execute the ps1 voice routing ==


{{Notice|1=You will only need to do this once at service setup, then it is not needed anymore}}
{{Notice|1=You will only need to do this once at service setup, then it is not needed anymore}}
{{Notice|1=Soon you will be able to manage and download this file directly from the Kiosk}}




# Open https://wiki.vtx.ch/media/VTX_Connect_Teams_Create_Routing_Rules.ps1 to see what it does
#Copy paste the text below and create a VTX_Microsoft_Teams_create_routing.ps1 file
# Download it ( Right Click on the link / Download )
#Replace the needed variables in bold
# Execute it on your PC, it will help you create all needed routing rules
##123456.teams.ipvoip.ch : Replace it with the domain provided to you by VTX in https://kiosk.vtx.ch/VoIP/ManageTeams.aspx
##first.last@MSDOMAIN.onmicrosoft.com : Replace it with the Microsoft account to which you wish to assign a number
##'tel:+41215661234' : Replace it with the number you wish to assign to your account ( it needs to be a number from your VTX Teams Connect account )


# Connect to Microsoft Teams management
# https://docs.microsoft.com/en-us/powershell/module/skype/New-CsOnlineSession?view=skype-ps
# When you create a domain and a user it will take a while before you are able connect via Powershell and perform needed actions. You can speed up connection using the -OverrideAdminDomain MSDOMAIN option with your main Microsoft domain
$Session = New-CsOnlineSession -UserName '''teamsadmin@123456.teams.ipvoip.ch'''
# https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/import-pssession?view=powershell-7
Import-PSSession $Session -AllowClobber
# https://docs.microsoft.com/en-us/powershell/module/skype/set-csonlinepstnusage?view=skype-ps
Set-CsOnlinePstnUsage -Identity Global -Usage @{Add="CsOnlinePstnUsage-'''123456.teams.ipvoip.ch'''"}
# https://docs.microsoft.com/en-us/powershell/module/skype/new-csonlinevoiceroute?view=skype-ps
New-CsOnlineVoiceRoute -Identity 'CsOnlineVoiceRoute-'''123456.teams.ipvoip.ch'<nowiki/>''' -Priority 0 -NumberPattern '^\+\d+' -OnlinePstnGatewayList '''123456.teams.ipvoip.ch''' -OnlinePstnUsages 'CsOnlinePstnUsage-'''123456.teams.ipvoip.ch''''
# https://docs.microsoft.com/en-us/powershell/module/skype/set-csonlinevoiceroutingpolicy?view=skype-ps
New-CsOnlineVoiceRoutingPolicy -Identity 'CsOnlineVoiceRoutingPolicy-'''123456.teams.ipvoip.ch'<nowiki/>''' -OnlinePstnUsages 'CsOnlinePstnUsage-'''123456.teams.ipvoip.ch''''
# https://docs.microsoft.com/en-us/powershell/module/skype/set-cscallinglineidentity?view=skype-ps
Set-CsCallingLineIdentity -Identity Global -EnableUserOverride $True
# Logout
Get-PSSession | Remove-PSSession


==Number Mapping : Assign numbers to Microsoft accounts==
==Number Mapping : Assign numbers to Microsoft accounts==

Revision as of 10:06, 23 April 2020

With VTX Teams Connect, use Microsoft Teams as your main Telephony Solution

VTX Teams Connect 01.png

Requirements[edit | edit source]

You will find below all the needed requirements to use VTX Teams Connect Service

  • A VTX Teams Connect service
  • A Microsoft 365 domain and accounts with the needed Microsoft licenses ( Microsoft Teams + Microsoft 365 Phone System )
  • A Microsoft Windows PC/Server with Powershell app and the needed modules to assign numbers to users ( we are working on an integration in the Kiosk too )

VTX Teams Connect[edit | edit source]

VTX Teams Connect service allows a smooth and easy integration between Microsoft 365 Teams services and the telephony world ( PSTN ) allowing you to use Microsoft service to pass and receive calls using Desktop (PC/macOS) or Mobile Teams application (Android/iOS) or dedicated Teams Desktop Phones. We are using redundant Microsoft validated SBC (Session Border Controller) from Audiocodes to integrate Microsoft Cloud with VTX Telephony platform, and we did automatize the integration to allow flexibility for our partners and customers. As a consequence, no telephony trunk setup is needed on your side.

  1. Please order a VTX Teams Connect service contacting your Sales contact or order it from your Kiosk interface ( including the number of channels and numbers you will need )
  2. You will have a VTX Kiosk interface account from which you will be able to manage and setup your service


A Microsoft 365 domain and accounts[edit | edit source]

  • A Microsoft 365 domain and account
    • That will include a Microsoft domain for your enterprise like enterprise.onmicrosoft.com ( or your own enterprise internet name if by example you migrated your emails to Microsoft )
    • A Microsoft 365 Admin account that will be able to buy and affect licenses to your users
  • A Microsoft 365 Domain provided by VTX to you like <servicenumber>.teams.ipvoip.ch ( ex: 123456.teams.ipvoip.ch )
    • To integrate this domain on your account, you can enable it from your Kiosk Interface, FIXME, add link
    • This domain will be used by "VTX Team Connect" service to bridge Microsoft Teams Cloud with VTX VoIP platform using
  • A Microsoft 365 user account teamsadmin@<servicenumber>.teams.ipvoip.ch (using the "VTX Teams Connect" domain provided) with the following Admin Right. It will be used to setup phone numbers on the account using Powershell ( unless VTX can do it for you from the Kiosk )
      • A Microsoft 365 Phone System license ( Temporarily license each time you wish to affect numbers to users )
      • The Microsoft Teams App ( FIXME: Double check if it is till needed )
      • Skype For Business Admin Admin right
      • Teams admin Admin right
      • Teams communication Admin Admin right
      • Teams communication support engineer Admin right
      • Teams communication support specialist Admin right
  • For all your users wishing to have a telephone number
    • A "Microsoft Teams" license ( "Microsoft Teams Commercial Cloud" or Microsoft Teams license included in the E1 or E3 or E5 license )
    • A "Microsoft 365 Phone System" License for any users that will get a phone number


Microsoft Windows PC/Server with Powershell[edit | edit source]

  1. (Powershell) : Install Powershell your PC https://docs.microsoft.com/en-us/powershell/scripting/install/installing-windows-powershell?view=powershell-7
  2. (Microsoft Visual Studio C++): Install Microsoft Visual Studio C++ 2019 x64 using https://support.microsoft.com/fr-ch/help/2977003/the-latest-supported-visual-c-downloads
  3. (SkypeOnlineConnector Powershell Module)' Install Windows Powershell Skype for Business Online module
    1. Follow https://docs.microsoft.com/en-us/SkypeForBusiness/set-up-your-computer-for-windows-powershell/set-up-your-computer-for-windows-powershell
    2. Install Windows Powershell module Skype for Business Online module: https://www.microsoft.com/en-us/download/details.aspx?id=39366
  4. (optional) Allow Powershell Execution on your PC to allow to execute .ps1 powershell script provided from Kiosk


Command to use if you wish to be able to execute .ps1 Powershell scripts that will be available from VTX Kiosk Run this command in Powershell as Admin, cf https://docs.microsoft.com/fr-fr/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-6

 PS C:\WINDOWS\system32> Get-ExecutionPolicy
 Restricted
 
 PS C:\WINDOWS\system32> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
 Execution Policy Change
 The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose   you to the security risks described in the about_Execution_Policies help topic at https:/go.microsoft.com/fwlink/?LinkID=135170.
 Do you want to change the execution policy?
 [Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "N"): Y

 PS C:\WINDOWS\system32> Get-ExecutionPolicy 
 RemoteSigned


Import SkypeOnlineConnector Powershell module

 PS C:\WINDOWS\system32> Import-Module SkypeOnlineConnector
 PS C:\WINDOWS\system32>


Microsoft Teams Management[edit | edit source]

Connect to Microsoft 365 Admin Portal[edit | edit source]


VTX Teams Connect Kiosk Management[edit | edit source]

Link your <SERVICE_NUMBER>.teams.ipvoip.ch Domain between Microsoft and VTX Telephony platform[edit | edit source]

  1. Connect to https://kiosk.vtx.ch/VoIP/ManageTeams.aspx and follow the helper. You will declare the domain provided by VTX and link it to your Microsoft account
VTX Teams Connect - Kiosk Management

Voice Routing : Download and execute the ps1 voice routing[edit | edit source]


  1. Open https://wiki.vtx.ch/media/VTX_Connect_Teams_Create_Routing_Rules.ps1 to see what it does
  2. Download it ( Right Click on the link / Download )
  3. Execute it on your PC, it will help you create all needed routing rules

Number Mapping : Assign numbers to Microsoft accounts[edit | edit source]


  1. Copy paste the text below and create a VTX_Microsoft_Teams_assign_numbers.ps1 file
  2. Replace the needed variables in bold
    1. 123456.teams.ipvoip.ch : Replace it with the domain provided to you by VTX in https://kiosk.vtx.ch/VoIP/ManageTeams.aspx
    2. first.last@MSDOMAIN.onmicrosoft.com : Replace it with the Microsoft account to which you wish to assign a number
    3. 'tel:+41215661234' : Replace it with the number you wish to assign to your account ( it needs to be a number from your VTX Teams Connect account )


# Connect to Microsoft Teams management
$Session = New-CsOnlineSession -UserName teamsadmin@123456.teams.ipvoip.ch
Import-PSSession $Session -AllowClobber
# Assign a number to your user and the Call Routing
Get-CsOnlineUser -Identity first.last@MSDOMAIN.onmicrosoft.com | Set-CsUser -EnterpriseVoiceEnabled $true -OnPremLineURI 'tel:+41215661234'
Get-CsOnlineUser -Identity first.last@MSDOMAIN.onmicrosoft.com | Grant-CsOnlineVoiceRoutingPolicy -PolicyName 'CsOnlineVoiceRoutingPolicy-123456.teams.ipvoip.ch'
# Logout
Get-PSSession | Remove-PSSession


Powershell Management[edit | edit source]