Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Contact Us
  • Home
  • License Model - CPaaS Solution Answers
  • Microsoft Teams Direct Routing - Admin Guide

Swap a new DDI number for the existing User

Written by B3Networks Academy

Updated at June 2nd, 2023

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • OSS/BSS Answers
    Access Control Admin Audit B3Network Master Account Channel App Contract App Customer App Discount App Edge Server File Management Finance App Invoice App Number Management Payment Portal Settings Price List Product App Release V2 SMS Gateway Supplier App Support Center Support Hub Business Hub Sales Hub
  • App Model - Organization Management
    General Account Settings Payment and Credits Billing & Invoices Developer Tools Members & Teams Subscription Management Audit & Reports
  • App Model - Communication Apps Answers
    Bizphone BizPhone Desktop Application Bizphone Mobile Application Wallboard SIP Fax Global DNC File Explorer Virtual Line Call Recording Direct Line SMS Marketing
  • License Model - Organization Management
    General Account Settings Payment & Credits Audit & Reports Email Call Rules & Holidays Members & Teams Numbers Tab Billing & Invoices Organization Connect CPaaS - DNC Security Policy Security Groups Security Events Tab
  • License Model - CPaaS Solution Answers
    Phone System - Admin Guide Phone System - End-user Guide Mobile App Desktop App Web Phone Auto Attendant - Admin Guide Developer Hub - Admin Guide Microsoft Teams Operator Connect - Admin Guide Microsoft Teams Direct Routing - Admin Guide Contact Center - Supervisor Guide Contact Center - Agent Guide Omni-Channel SIP Trunk CPaaS - SIP Trunk Power SIP Trunk CPaaS Fax CPaaS Hotdesking Contact Campaign File Explorer Power Mobile App Files App
  • Telcoflow
  • Integrations Answers
    Freshdesk MS Teams - Bizphone NewRock
  • Updated Regulations
  • Ideas Portal
+ More

Table of Contents

1. Swap a new number for User on the CPaaS Portal 2. Link the MS Team account with the new DDI number 3. Generate PowerShell Script 4. Run Powershell Note:

There are cases when you want to change a different number for your agents. 
In that cases, you can swap your agent's number for a new one.

In order to do so, please follow the steps below:

1. Swap a new number for User on the CPaaS Portal

You need to un-assign the current number and assign a new number for User:

  1. Go to Manage Organization, choose the Licenses tab
  2. Find the account that you want to change the number
  3. Click on Assigned Numbers - Manage
  4. Remove the existing Number 
  5. Assign the new Number

2. Link the MS Team account with the new DDI number

Once you finish the above steps, the system will automatically update the new DDI number on the Microsoft Teams tab.

  1. Go to Application Settings > choose the Microsoft Teams tab
  2. Check if the new number is assigned to the MS Teams account correctly

3. Generate PowerShell Script

To generate the Powershell Script:

  1. On the Microsoft Teams tab, click on the 3 dots icon
  2. Choose View Script
  3. Select Copy Script

**Check the next step to know which lines are needed to copy.

4. Run Powershell

Note:

Users must be familiar with Microsoft Powershell script commands to execute the changes without affecting other commands. If unsure please approach a Microsoft certified expert.

 

Step 1: Open the PowerShell:

 
 

Step 2: Paste the generated Power Shell script for swapping new DDI Number:

You should run the following command:

  • Start Power Shell as Administrator (or with Administrator Privileges)

Install-Module -Name MicrosoftTeams -RequiredVersion 2.3.1
Import-Module MicrosoftTeams -RequiredVersion 2.3.1
$credential = Get-Credential
Connect-MicrosoftTeams -Credential $credential

  • Remove the existing Number from the current User:

Set-CsUser -Identity <UserID>@<DomainID> -OnPremLineURI $null

  • Map the new Number to the User:

Set-CsUser -identity "<UserID>@<DomainID>" -EnterpriseVoiceEnabled $true -HostedVoicemail $true -OnPremlineURI tel:+<New DDI Number>
Grant-CsTeamsCallingPolicy -PolicyName AllowCalling -Identity “<UserID>@<DomainID>”
Grant-CsOnlineVoiceRoutingPolicy -Identity <UserID>@<DomainID> -PolicyName B3

 
 
user change exchange ddi

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • Swap a new user for the existing DDI number
  • Integrated Instruction - Semi Automation
  • Integrated Instruction - Full Automation
  • Integrated Instruction - Full Manual

© B3NETWORKS PTE LTD. All Rights Reserved.

Data Policy

Service Level Agreement

Expand