Forum Discussion
Team Direct Routing - no dial pad
First you have to assign a Cloud PBX license or a E5 license.
Second you have to set a phone number and activate user for Enterprise Voice:
Set-CsUser -Identity <user> -OnPremLineURI "tel:+1555123456" -EnterpriseVoiceEnabled $true -HostedVoiceMail $true
Assign a Calling Policy
Grant-CsTeamsCallingPolicy -PolicyName "Tag:AllowCalling" -Identity <user>
Assign a Routing Policy
Grant-CsOnlineVoiceRoutingPolicy -Identity <user> -PolicyName "DefaultRoutingPolicy"
User has Microsoft 365 E3 and Microsoft 365 Phone System licenses.
User has assigned dial plan and routing policy.
But cannot run command similar to that one Set-CsUser -Identity <user> -OnPremLineURI "tel:+4684425555" -EnterpriseVoiceEnabled $true -HostedVoiceMail $true
- LinusCansbyJan 15, 2020MVPAre you connected to Skype for Business Online powershell?
If you type just Set-CsUser -OnPrem and press tab, will it expand to -OnPremLineURI ?- msabatJan 16, 2020Brass Contributor
LinusCansby Yes I am connected to SfB Online with PowerShell.
Nothing happen when I try to type Set-CsUser -OnPrem and press tab
- Ramy AMERJun 26, 2020Copper Contributor
msabat if should be -LineURI if you are not connected to SFBO module
set-CsUser -Identity "User name" -LineURI tel:+145555555 -EnterpriseVoiceEnabled $true -HostedVoiceMail $trueto use -OnPremLineURI command Connect to SFBO module using the commands below and make sure you are running PowerShell 3 or later:
Import-Module SkypeOnlineConnector $CSSession = New-CsOnlineSession -OverrideAdminDomain YOURDOMAINNAME.onmicrosoft.com Import-PSSession $CSSession -AllowClobberYou need Phone system add-on to E3 or Only E5
I hope this helps