To effectively utilize your telephone system resources from Internetport in Microsoft Teams, it's important to be able to assign phone numbers to users. This guide walks you through the process using both PowerShell and the Teams Admin Center, including configuration of voice routing policy, call policies, and enabling voicemail.
Import Numbers via PowerShell Set-CsPhoneNumberAssignment
Step 1: Install Skype Management Tools
To use the telephone system cmdlets in PowerShell, you need to install Skype Management Tools.
Step 2: Connect to Microsoft Teams PowerShell
Use the command
Connect-MicrosoftTeamsto connect to your organization.Step 3: Assign phone number
Use the cmdlet
Set-CsPhoneNumberAssignment -Identity "user@domain.com" -PhoneNumber +46123456789 -PhoneNumberType DirectRoutingto assign a specific number.
Assign Numbers in Teams Admin Center
Step 1: Log in to Teams Admin Center
Go to Teams Admin Center.
Step 2: Go to Users
Select "Users" in the left menu.
Step 3: Select a user
Click on the specific user you want to assign a number to.
Step 4: Assign phone number
In the "Phone" tab, click "Assign" and select the desired number from the list.
Configure voice routing policy per user
Step 1: Create a new voice routing policy
Go to "Voice" and select "Voice routing policies," then click "New."
Step 2: Configure rules
Add outbound call rules according to your needs.
Step 3: Assign policy to user
Go to "Users," select the specific user, and click "Edit" under "Voice routing policy."
Set up call policies and forwarding
Step 1: Go to Call Queues
In Teams Admin Center, under "Voice," select "Call queues."
Step 2: Create a new call queue
Click "New" and configure the settings for your call queue.
Step 3: Configure forwarding
In user settings under "Phone," click "Edit" and configure forwarding.
Enable voicemail in Teams
Step 1: Go to Voicemail policies
In Teams Admin Center, under "Voice," select "Voicemail policies."
Step 2: Create a new voicemail policy
Click "New" and configure the settings for your voicemail policy.
Step 3: Assign policy to user
Go to "Users," select the specific user, and click "Edit" under "Voicemail policy."
Test calls per user
Step 1: Log in to Microsoft Teams
Use the specific user account you want to test.
Step 2: Test outbound calls
Try calling an external number to verify outbound calls.
Step 3: Test inbound calls
Have another person call the assigned number to verify inbound calls.
Common issues
- User cannot make or receive calls: Check that the phone number is correctly assigned and that voice routing policies are correctly configured.
- Error message on connection: Ensure that SIP trunk settings in Teams Admin Center match those specified by Internetport.
If you encounter problems not resolved through this guide, contact support at Internetport support.