4 TeamsVoiceRoute
Nik Charlebois редактировал(а) эту страницу 2021-10-06 06:17:59 -04:00

# TeamsVoiceRoute

Parameters

Parameter Attribute DataType Description Allowed Values
Identity Key String Identity of the Teams Voice Route.
Description Write String A description of what this online voice route is for.
NumberPattern Write String A regular expression that specifies the phone numbers to which this route applies. Numbers matching this pattern will be routed according to the rest of the routing settings.
OnlinePstnGatewayList Write StringArray[] This parameter contains a list of online gateways associated with this online voice route. Each member of this list must be the service Identity of the online PSTN gateway.
OnlinePstnUsages Write StringArray[] A list of online PSTN usages (such as Local, Long Distance, etc.) that can be applied to this online voice route. The PSTN usage must be an existing usage (PSTN usages can be retrieved by calling the Get-CsOnlinePstnUsage cmdlet).
Priority Write UInt32 A number could resolve to multiple online voice routes. The priority determines the order in which the routes will be applied if more than one route is possible.
Ensure Write String Present ensures the route exists, absent ensures it is removed. Present, Absent
Credential Required PSCredential Credentials of the Teams Global Admin

TeamsVoiceRoute

This resource configures a Teams Voice Route.

Examples

Example 1

This example adds a new Teams Voice Route.

Configuration Example
{
    param(
        [Parameter(Mandatory = $true)]
        [PSCredential]
        $credsGlobalAdmin
    )
    Import-DscResource -ModuleName Microsoft365DSC

    node localhost
    {
        TeamsVoiceRoute VoiceRoute
        {
            Identity              = 'NewVoiceRoute'
            Description           = 'This is a sample Voice Route'
            NumberPattern         = '^\+1(425|206)(\d{7})'
            OnlinePstnGatewayList = @('sbc1.litwareinc.com','sbc2.litwareinc.com')
            OnlinePstnUsages      = @('Long Distance','Local','Internal')
            Priority              = 10
            Ensure                = 'Present'
            Credential            = $credsGlobalAdmin
        }
    }
}