One among the interesting scenario is port-out number from MS calling to Direct routing. Scenario will be where currently you are using MS calling plan. You have purchased Domestic and International calling plan from Microsoft. So today your users are making outbound call with MS assigned number.
Below are the steps you need to carry out to perform this migration.
- Un-assign Calling Plan Phone Number from user Config.
Remove-CsPhoneNumberAssignment -Identity user@cloudmechnics.in -PhoneNumber +1456877778-PhoneNumberType CallingPlan
- Take away Calling Plan License from user license list. Make sure you are taking only Calling plan license. You don’t need to remove Phone System license from user.
- Give it a while say around 1 hour.
- Next give heads up to your new carrier to start porting the number from Microsoft to your new carrier.
- Porting will start and it may take few hours to acquire the numbers by new carrier.
- As we are porting the existing number from MS Calling to Direct Routing, once numbers are ported to new carrier, these number should disappear from your Teams admin portal.
- In case you are trying to assign the number before its taken away by MS, then you will get error message as ” Telephone number +545677899 is not a Direct Routing number”. Below is the error screenshot in case you try to assign same number as Direct Routing number before its ported to new carrier & existing number released by Microsoft.
- Next get into Teams PowerShell and set-csphonenumberassignment the OnPremLineURI attribute to the Direct Routing DDI and make sure the EnterpriseVoiceEnabled attribute is set to $true
- Assign Online Voice Routing Policy .
- Assign the calling policy and Dial Plan to the users.
Note: Microsoft Validate Port-Out request with a PIN. This is 10-digit PIN and it will be generated from your Teams admin portal. Login to Teams admin portal, browse to phone numbers, locate action on the top right corner, Click on Manage porting PIN. Generate PIN from here & share it with MS while porting the numbers. This will be validated by Microsoft when port-out start.