Jan 15 2020 06:58 AM
Hello.
I enabled user with Direct Routing on Teams.
But that user doesn't have dial pad.
What I noticed?
User was migrated from SfB OnPrem to Teams with Teams Only mode - Hybrid mode also.
Get-CsonlineUser username | select "*voice*", "*teams*" I got:
EnterpriseVoiceEnabled as False.
How to enable that now?
Jan 15 2020 07:12 AM
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"
Jan 15 2020 09:08 AM
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:+1555123456" -EnterpriseVoiceEnabled $true -HostedVoiceMail $true
Jan 15 2020 11:04 AM
Jan 16 2020 02:32 AM
@Linus Cansby Yes I am connected to SfB Online with PowerShell.
Nothing happen when I try to type Set-CsUser -OnPrem and press tab
Jan 16 2020 08:21 AM
Make sure you have the latest module installed:
Try from another computer if that works better. You can also try this script to connect to Office365 services with powershell
https://www.powershellgallery.com/packages/Office365.Connect
Jan 19 2020 11:53 PM
Jan 20 2020 12:09 AM - edited Jan 20 2020 12:33 AM
And user under get-csuser has now HostedVoiceMail and EnterpriseVoiceEnabled as True
But under get-csonlineuser user has them as False:
Jan 20 2020 04:44 AM
Jan 20 2020 05:15 AM
i used server that has no access to SfB OnPrem.
I connected to SfB Online.
And results are the same:
Jan 23 2020 12:50 AM
I fixed that issue.
I could run Set-CsUser command but I needed SfB license on my account.
Jan 23 2020 02:12 AM
@msabat Great that you solved it, Skype license is still needed even if users are in Teams Only mode.
Jun 26 2020 06:28 PM - edited Jun 26 2020 06:31 PM
@msabat if should be -LineURI if you are not connected to SFBO module
set-CsUser -Identity "User name" -LineURI tel:+145555555 -EnterpriseVoiceEnabled $true -HostedVoiceMail $true
to 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 -AllowClobber
You need Phone system add-on to E3 or Only E5
I hope this helps