Skip to content

Commit f23ec19

Browse files
authored
Merge pull request #12056 from pavellatif/main
Updating cmdlet documentation on ReverseNumberLookup
2 parents 7c5723d + 3968799 commit f23ec19

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

teams/teams-ps/teams/Get-CsPhoneNumberAssignment.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ PstnAssignmentStatus : UserAssigned
6262
PstnPartnerId : 7fc2f2eb-89aa-41d7-93de-73d015d22ff0
6363
PstnPartnerName : Microsoft
6464
NumberSource : Online
65+
ReverseNumberLookup : {}
6566
```
6667
This example displays information about the Microsoft Calling Plan subscriber phone number +1 (402) 555-1234. You can see that it is assigned to a user.
6768

@@ -89,6 +90,7 @@ PstnAssignmentStatus : UserAssigned
8990
PstnPartnerId :
9091
PstnPartnerName :
9192
NumberSource : OnPremises
93+
ReverseNumberLookup : {}
9294
```
9395
This example displays information about the Direct Routing phone number +1 (206) 555-1000;ext=524. You can see that it is assigned to a user.
9496

@@ -146,6 +148,33 @@ Get-CsPhoneNumberAssignment -AssignedPstnTargetId 'TeamsSharedCallingRoutingPoli
146148
```
147149
This example returns all phone numbers assigned as emergency numbers in the Teams shared calling routing policy instance SC1.
148150

151+
### Example 12
152+
```powershell
153+
Get-CsPhoneNumberAssignment -TelephoneNumber "+12065551000;ext=524"
154+
```
155+
```output
156+
TelephoneNumber : +12065551000;ext=524
157+
OperatorId : 83d289bc-a4d3-41e6-8a3f-cff260a3f091
158+
NumberType : DirectRouting
159+
ActivationState : Activated
160+
AssignedPstnTargetId : 2713551e-ed63-415d-9175-fc4ff825a0be
161+
AssignmentCategory : Primary
162+
Capability : {ConferenceAssignment, VoiceApplicationAssignment, UserAssignment}
163+
City :
164+
CivicAddressId : 00000000-0000-0000-0000-000000000000
165+
IsoCountryCode :
166+
IsoSubdivision :
167+
LocationId : 00000000-0000-0000-0000-000000000000
168+
LocationUpdateSupported : True
169+
NetworkSiteId :
170+
PortInOrderStatus :
171+
PstnAssignmentStatus : UserAssigned
172+
PstnPartnerId :
173+
PstnPartnerName :
174+
NumberSource : OnPremises
175+
ReverseNumberLookup : {SkipInternalVoip}
176+
```
177+
This example displays when SkipInternalVoip option is turned on for a number.
149178

150179
## PARAMETERS
151180

@@ -482,6 +511,9 @@ The phone number. The number is always displayed with prefixed "+", even if it w
482511
483512
The object returned is of type SkypeTelephoneNumberMgmtCmdletAcquiredTelephoneNumber.
484513
514+
### ReverseNumberLookup
515+
Status of Reverse Number Lookup (RNL). When it is set to SkipInternalVoip, the calls are handled through external PSTN connection instead of internal VoIP lookup.
516+
485517
## NOTES
486518
The cmdlet is available in Teams PowerShell module 4.0.0 or later. The parameter AssignmentCategory was introduced in Teams PowerShell module 5.3.1-preview. The parameter NetworkSiteId was introduced in Teams PowerShell module 5.5.0. The output parameter NumberSource was introduced in Teams PowerShell module 5.7.0.
487519

teams/teams-ps/teams/Set-CsPhoneNumberAssignment.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ Set-CsPhoneNumberAssignment -Identity <String> -PhoneNumber <String> -PhoneNumbe
3838
Set-CsPhoneNumberAssignment -Identity <String> -EnterpriseVoiceEnabled <Boolean> [<CommonParameters>]
3939
```
4040

41+
### ReverseNumberLookup
42+
```powershell
43+
Set-CsPhoneNumberAssignment -PhoneNumber <string> -ReverseNumberLookup <string> [<CommonParameters>]
44+
```
45+
4146
## DESCRIPTION
4247
This cmdlet assigns a phone number to a user or resource account. When you assign a phone number the EnterpriseVoiceEnabled flag is automatically set to True.
4348

@@ -132,6 +137,12 @@ Write-Host (Get-CsPhoneNumberAssignment -LocationId $NewLocationId).Count number
132137
```
133138
This Example shows how to update the LocationID from an old location to a new location for a set of phone numbers.
134139

140+
### Example 11
141+
```powershell
142+
Set-CsPhoneNumberAssignment -Identity [email protected] -PhoneNumber +12065551226 -ReverseNumberLookup 'SkipInternalVoip'
143+
```
144+
This example shows how to turn off reverse number lookup (RNL) on a phone number. When RNL is set to 'SkipInternalVoip', an internal call to this phone number will not attempt to pass through internal VoIP via reverse number lookup in Microsoft Teams. Instead the call will be established through external PSTN connectivity directly.
145+
135146

136147
## PARAMETERS
137148

0 commit comments

Comments
 (0)