編輯

共用方式為


Test-CsTeamsTranslationRule

This cmdlet tests a phone number against the configured number manipulation rules and returns information about the matching rule.

Syntax

Test-CsTeamsTranslationRule
    [-PhoneNumber <string>]
    [<CommonParameters>]

Description

This cmdlet tests a phone number against the configured number manipulation rules and returns information about the matching rule.

Examples

Example 1

Test-CsTeamsTranslationRule -PhoneNumber 1234

Identity        Pattern PhoneNumberTranslated Translation
--------        ------- --------------------- -----------
rule1           ^1234$  4321                  4321

This example displays information about the manipulation rule matching the phone number 1234.

Parameters

-PhoneNumber

The phone number to test.

Type:System.String
Position:named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

None

Notes

The cmdlet is available in Teams PowerShell Module 4.5.0 or later.

The matching logic used in the cmdlet is the same as when the manipulation rule has been associated with an SBC and a call is being routed.

If a match is found in two or more manipulation rules, the first one is returned.

There is a short delay before newly created manipulation rules are added to the evaluation.