Enable EV (PSTN Calling) for SFB Hybrid User

How to enable Enterprise Voice for Hybrid SFB Online user with PSTN On-Premise.

 

 

 

Pre-requisite and preparing

  • Working on-premise SFB suite (FE, Edge, Proxy, Owa, etc.) and PSTN Gateway(s).

     

  • AAD Sync or ADFS (optional) in place.

     

  • Working Hybrid setup between On-premise SFB suite and Online SFB environment.

     

  • The user must be on-premise SFB homed user first before you begin enabling EV for a Hybrid Online user.

     

  • The user must be Enterprise Voice enabled and assign a phone number in LineURI:

    1. +6512345678;ext=5678 , this is a standard example, varied based on country and specific/different extension assignment in your organization.

       

  • If the user is currently Online SFB homed user, you must first move the user from Online SFB to On-premise SFB server through On-premise SFB server control panel.

     

    1. And must be Enterprise Voice enabled and assigned a phone number in LineURI:

       

  • Assign the existing dial plan for the user – same dial plan used by all users. No need to create a new or different dial plan for soon-to-be Hybrid Online user(s), more to that later.

     

  • Create and assign “Voice Routing Policy” – this is a specific “Voice Routing Policy” for Hybrid

     

    Online users After all these done, the user(s) will be moved back again to Online SFB server eventually.

The roadmap to-do steps

 

  1. Enable users for EV on-premise.

    ** **

    1. Remember to move back to on-premise if the users are currently in Online SFB.

      ** **

  2. Assign Dial Plan.

    ** **

  3. Create and assign “Voice Routing Policy” (VRP)

    ** **

    1. While creating VRP, we’ll associate an existing on-premise PSTN usage with it.

      ** **

    2. No need to create a new or different PSTN usage.

      ** **

    3. Will use currently working on-premise PSTN usage that you use to call and get called.

      ** **

  4. Grant VRP you created above to the user.

     

  5. Synchronize the user(s) using AAD or ADFS.

    ** **

  6. Assign the user(s) to Cloud PBX license as an add-on to E3 or E5 license.

    ** **

  7. Move the users to the Online SFB.

    ** **

  8. Voice Policy” (Not Voice Routing Policy) will be automatically assigned by SFB Online and you cannot change it. It’s in fact a set of Voice Features like simultaneous ring, call transfer, etc. So, you don’t need to do anything about Voice Policy.

    ** **

  9. Enable Cloud PBX (enable EV again) for the user in the Cloud/Online SFB.

    ** **

  10. Testing

1.      Enable user for EV on-premise.

** **

** **

I assumed that you already moved the users back to on-premise SFB server if they were user previously residing in Online SFB environment. So the users are homed in on-premise SFB server now.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2.      Assign existing Dial Plan.

** **

I just assigned the existing “Dial Plan” named “Officedialplan” used by all the office users. No need to create a new or different dial plan. You will have your own existing “Dial Plan”, just assign it to the user(s).

  1. Create and assign “Voice Routing Policy” (VRP)

    ** **

    • A VRP is that you are going to create must be associated with an existing working on-premise PSTN usage. No need to create a different or new PSTN usage.

       

      o  Check a current on-premise PSTN usage.

       

      o As you see I have an existing PSTN USAGE named “OfficePSTNinout” that I use to call outside and get call from outside.

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

      Now at the on-premise “Windows PowerShell” (don’t login/connect to Office365 or SFBOnline through PowerShell), run the following command to create a VRP and associate the existing PSTN USAGE with it.

       

       

       

      New-CSVoiceRoutingPolicy -Identity "tag:CloudPBXUser" -Name “CloudPBX VRP" - PstnUsages @{add="OfficePSTNinout"}

3.      Create and assign “Voice Routing Policy” (VRP)

** **

·         A VRP is that you are going to create must be associated with an existing working on-premise PSTN usage. No need to create a different or new PSTN usage.

 

o  Check a current on-premise PSTN usage.

 

o As you see I have an existing PSTN USAGE named “OfficePSTNinout” that I use to call outside and get call from outside.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Now at the on-premise “Windows PowerShell” (don’t login/connect to Office365 or SFBOnline through PowerShell), run the following command to create a VRP and associate the existing PSTN USAGE with it.

 

 

 

New-CSVoiceRoutingPolicy -Identity "tag:CloudPBXUser" -Name “CloudPBX VRP" - PstnUsages @{add="OfficePSTNinout"}

**

**

In order to check and review the VRP you created, you must use “Windows PowerShell” (Not SFB server PS. Do not connect to Office365 through PowerShell at this point of time).

 

 

 

Get-csvoiceroutingpolicy

 

 

 

 

 

 

 

 

 

Now, grant that VRP to the user

grant-csvoiceroutingpolicy –identity “thetnaing” –policyname “Cloudpbxuser”

 

 

 

 

4. Go to your AAD Sync server and force the sync as follow

Start-adsyncsynccycle –policytype delta Start-adsyncsynccycle –policytype initial

 

5. Assign E5 License to the user. If the user has been already assigned E5 or CloudPBX license, just leave it as it is – you don’t need to this step then. 

  1. Move the user to (the user was previously residing in Online SFB) SFB Online through on-premise SFB control Panel.

**6.     ** In fact it’s just a command to check what voice policy is. Cannot do anything. Just type the following to check what features SFB Online offers

** **

get-csvoicepolicy

** **

Now launch On-premise “Skype For Business Server PowerShell” and connect to SFB Online environment using these commands;

 

 

$credential = get-credential

 

o   The account you use here must be “Global Admin” equivalent. Import-Module LyncOnlineConnector

 

$lyncSession = New-CsOnlineSession -Credential $credential Import-PSSession $lyncSession -Allowclobber

 

 

7.      Enable Cloud PBX (enable EV again) for the user in the Cloud/Online SFB.

** **

Now the user is in Online SFB, and check the user’s SIP URI, whether EV is enable or not by running the following command in “Skype For Business Server PowerShell”.

** **

Get-csonlineuser thetnaing@thetnaing.com | select sipaddress, lineuri, enterprisevoiceenabled, hostedvoicemail, voicepolicy, hostedvoicemailpolicy

 

(replace thetnaing@thetnaing.com with your own user name)

** **

** **

** **

** **

** **

** **

** **

** **

** **

** **

** **

** **

** **

** **

** **

** **

You will see that the user is not “EV” enabled. (In case if you see that the user is EV enabled after running above command, then you don’t need to do anything).

** **

** **

** **

Now I launch “Windows PowerShell” (not on-premise SFB PowerShell) to enable EV for the Hybrid user, thetnaing@thetnaing.com

** **

Set-CsUser –Identity thetnaing@thetnaing.com –EnterpriseVoiceEnabled $true –HostedVoicemail $true

 

Switch to “Skype For Business Server PowerShell” and run this command again to verify.

 

 

Get-csonlineuser thetnaing@thetnaing.com | select sipaddress, lineuri, enterprisevoiceenabled, hostedvoicemail, voicepolicy, hostedvoicemailpolicy

 

 

 

 

 

 

 

 

Now you see that the Hybrid user, thetnaing@thetnaing.com is enable for EV in Online SFB.

 

 

*Sometimes, if you don’t see LineURI number, please don’t worry, just give around 20-30 minutes to get things synced. Go for a break: D.

  1. Now the time to make an outgoing test call to someone/my mobile phone and it’s working as shown.

     

    • You can see the “smiling icon” that means the user is Hybrid Online user.