|
| 1 | +--- |
| 2 | +external help file: Microsoft.Rtc.Management.Hosted.dll-help.xml |
| 3 | +applicable: Skype for Business Online |
| 4 | +title: Get-CsOnlineUser |
| 5 | +schema: 2.0.0 |
| 6 | +--- |
| 7 | + |
| 8 | +# Get-CsOnlineVoiceRoute |
| 9 | + |
| 10 | +## SYNOPSIS |
| 11 | +Returns information about the online voice routes configured for use in your tenant. Online voice routes contain instructions that tell Skype for Business Online how to route calls from Office 365 users to phone numbers on the public switched telephone network (PSTN) or a private branch exchange (PBX). |
| 12 | + |
| 13 | +## SYNTAX |
| 14 | + |
| 15 | +### Identity (Default) |
| 16 | +``` |
| 17 | +Get-CsOnlineVoiceRoute [-Tenant <Guid>] [[-Identity] <XdsGlobalRelativeIdentity>] [-LocalStore] |
| 18 | + [<CommonParameters>] |
| 19 | +``` |
| 20 | + |
| 21 | +### Filter |
| 22 | +``` |
| 23 | +Get-CsOnlineVoiceRoute [-Tenant <Guid>] [-Filter <String>] [-LocalStore] [<CommonParameters>] |
| 24 | +``` |
| 25 | + |
| 26 | +## DESCRIPTION |
| 27 | +Use this cmdlet to retrieve one or more existing online voice routes in your tenant. Online voice routes contain instructions that tell Skype for Business Online how to route calls from Office 365 users to phone numbers on the public switched telephone network (PSTN) or a private branch exchange (PBX). |
| 28 | + |
| 29 | +This cmdlet can be used to retrieve voice route information such as which online PSTN gateways the route is associated with (if any), which online PSTN usages are associated with the route, the pattern (in the form of a regular expression) that identifies the phone numbers to which the route applies, and caller ID settings. The PSTN usage associates the voice route to a online voice policy. |
| 30 | + |
| 31 | +This cmdlet is used when configuring Microsoft Phone System Direct Routing. |
| 32 | + |
| 33 | +## EXAMPLES |
| 34 | + |
| 35 | +### -------------------------- Example 1 -------------------------- |
| 36 | +``` |
| 37 | +PS C:\> Get-CsOnlineVoiceRoute |
| 38 | +``` |
| 39 | + |
| 40 | +Retrieves the properties for all voice routes defined within the tenant. |
| 41 | + |
| 42 | +### -------------------------- Example 2 -------------------------- |
| 43 | +``` |
| 44 | +PS C:\> Get-CsOnlineVoiceRoute -Identity Route1 |
| 45 | +``` |
| 46 | + |
| 47 | +Retrieves the properties for the Route1 voice route. |
| 48 | + |
| 49 | +### -------------------------- Example 3 -------------------------- |
| 50 | +``` |
| 51 | +PS C:\> Get-CsOnlineVoiceRoute -Filter *test* |
| 52 | +``` |
| 53 | + |
| 54 | +This command displays voice route settings where the Identity contains the string "test" anywhere within the value. To find the string test only at the end of the Identity, use the value \*test. Similarly, to find the string test only if it occurs at the beginning of the Identity, specify the value test\*. |
| 55 | + |
| 56 | +### -------------------------- Example 4 -------------------------- |
| 57 | +``` |
| 58 | +PS C:\> Get-CsOnlineVoiceRoute | Where-Object {$_.OnlinePstnGatewayList.Count -eq 0} |
| 59 | +``` |
| 60 | + |
| 61 | +This command retrieves all voice routes that have not had any PSTN gateways assigned. First all voice routes are retrieved using the Get-CsOnlineVoiceRoute cmdlet. These voice routes are then piped to the Where-Object cmdlet. The Where-Object cmdlet narrows down the results of the Get operation. In this case we look at each voice route (that's what the $_ represents) and check the Count property of the PstnGatewayList property. If the count of PSTN gateways is 0, the list is empty and no gateways have been defined for the route. |
| 62 | + |
| 63 | +## PARAMETERS |
| 64 | + |
| 65 | +### -Filter |
| 66 | +This parameter filters the results of the Get operation based on the wildcard value passed to this parameter. |
| 67 | + |
| 68 | +```yaml |
| 69 | +Type: String |
| 70 | +Parameter Sets: Filter |
| 71 | +Aliases: |
| 72 | + |
| 73 | +Required: False |
| 74 | +Position: Named |
| 75 | +Default value: None |
| 76 | +Accept pipeline input: False |
| 77 | +Accept wildcard characters: False |
| 78 | +``` |
| 79 | +
|
| 80 | +### -Identity |
| 81 | +A string that uniquely identifies the voice route. If no identity is provided, all voice routes for the organization are returned. |
| 82 | +
|
| 83 | +```yaml |
| 84 | +Type: XdsGlobalRelativeIdentity |
| 85 | +Parameter Sets: Identity |
| 86 | +Aliases: |
| 87 | + |
| 88 | +Required: False |
| 89 | +Position: 1 |
| 90 | +Default value: None |
| 91 | +Accept pipeline input: False |
| 92 | +Accept wildcard characters: False |
| 93 | +``` |
| 94 | +
|
| 95 | +### -LocalStore |
| 96 | +This parameter is reserved for internal Microsoft use |
| 97 | +
|
| 98 | +```yaml |
| 99 | +Type: SwitchParameter |
| 100 | +Parameter Sets: (All) |
| 101 | +Aliases: |
| 102 | + |
| 103 | +Required: False |
| 104 | +Position: Named |
| 105 | +Default value: None |
| 106 | +Accept pipeline input: False |
| 107 | +Accept wildcard characters: False |
| 108 | +``` |
| 109 | +
|
| 110 | +### -Tenant |
| 111 | +Globally unique identifier (GUID) of the tenant account whose external user communication policy are being created. For example: |
| 112 | +
|
| 113 | +-Tenant "38aad667-af54-4397-aaa7-e94c79ec2308" |
| 114 | +
|
| 115 | +You can return your tenant ID by running this command: |
| 116 | +
|
| 117 | +Get-CsTenant | Select-Object DisplayName, TenantID |
| 118 | +
|
| 119 | +If you are using a remote session of Windows PowerShell and are connected only to Skype for Business Online you do not have to include the Tenant parameter. Instead, the tenant ID will automatically be filled in for you based on your connection information. The Tenant parameter is primarily for use in a hybrid deployment. |
| 120 | +
|
| 121 | +```yaml |
| 122 | +Type: Guid |
| 123 | +Parameter Sets: (All) |
| 124 | +Aliases: |
| 125 | + |
| 126 | +Required: False |
| 127 | +Position: Named |
| 128 | +Default value: None |
| 129 | +Accept pipeline input: False |
| 130 | +Accept wildcard characters: False |
| 131 | +``` |
| 132 | +
|
| 133 | +### CommonParameters |
| 134 | +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. |
| 135 | +For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216). |
| 136 | +
|
| 137 | +## INPUTS |
| 138 | +
|
| 139 | +### None |
| 140 | +
|
| 141 | +
|
| 142 | +## OUTPUTS |
| 143 | +
|
| 144 | +### System.Object |
| 145 | +
|
| 146 | +## NOTES |
| 147 | +
|
| 148 | +## RELATED LINKS |
| 149 | +[New-CsOnlineVoiceRoute](https://docs.microsoft.com/en-us/powershell/module/skype/new-csonlinevoiceroute?view=skype-ps) |
| 150 | +
|
| 151 | +[Set-CsOnlineVoiceRoute](https://docs.microsoft.com/en-us/powershell/module/skype/set-csonlinevoiceroute?view=skype-ps) |
| 152 | +
|
| 153 | +[Remove-CsOnlineVoiceRoute](https://docs.microsoft.com/en-us/powershell/module/skype/remove-csonlinevoiceroute?view=skype-ps) |
0 commit comments