Question 1
HOTSPOT -
You have a Microsoft Teams Phone deployment that contains a Session Border Controller (SBC) named SBC1.contoso.com.
Direct Routing integrates with a PBX phone system that uses only four-digit dialing and is configured to use the SBC.
Teams is configured to use dial plans that normalize any four-digit calls to E.164.
You have the following translation rule.
You need to ensure that calls to the legacy PBX pass only a four-digit extension.
How should you complete the PowerShell command? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
The AI assistant agrees with the suggested answer.
Reasoning:
The scenario describes a Microsoft Teams Phone deployment integrated with a legacy PBX via Direct Routing. Key points are:
- Teams dial plans are configured to normalize any four-digit calls (e.g., '1234') to E.164 format (e.g., '+12065551234' assuming a North American numbering plan).
- The legacy PBX, however, is configured to accept and work with only four-digit extensions (e.g., '1234').
- The objective is to ensure that calls originating from Teams, destined for the legacy PBX through the Session Border Controller (SBC1.contoso.com), are translated from their E.164 format back to the required four-digit extension format before being passed to the PBX.
The PowerShell command to accomplish this involves modifying an existing PSTN usage or defining a new one. The
Set-CsOnlinePstnUsage cmdlet is used to update the properties of an existing PSTN usage, and within this cmdlet, specific translation rules can be added or defined using New-CsPSTNTranslationRule.The translation rule must define a
-Pattern that matches the E.164 number format as sent by Teams, and a -Translation that specifies how to transform that matched number. For the scenario where a four-digit extension (e.g., '1234') is normalized to an 11-digit E.164 number (e.g., '+12065551234'), the rule needs to strip the initial E.164 country code, area code, and exchange, leaving only the final four digits.A common regex pattern for this is
"^\+1\d{7}(\d{4})$", which matches an E.164 number starting with `+1`, followed by exactly seven digits, and then captures the final four digits. The corresponding -Translation "$1" then uses the captured four digits as the output. This ensures that only the required four-digit extension is passed to the legacy PBX.Therefore, the PowerShell command would involve configuring the appropriate
Set-CsOnlinePstnUsage with a New-CsPSTNTranslationRule that includes the correct -Pattern and -Translation to achieve the desired four-digit output.The discussion summary further affirms the correctness of the suggested answer, indicating a consensus from recent internet discussions (Q3 2024), which reinforces this solution approach.
Reason for not choosing other answers:
The provided question content and discussion summary did not include alternative suggested answers or options for consideration, therefore no other choices could be evaluated for comparison.
Citations:
- Plan for Direct Routing - Number translation
https://learn.microsoft.com/en-us/microsoftteams/direct-routing-plan-number-translation - Set-CsOnlinePstnUsage
https://learn.microsoft.com/en-us/powershell/module/skype/set-csonlinepstnusage - New-CsPSTNTranslationRule
https://learn.microsoft.com/en-us/powershell/module/skype/new-cspstntranslationrule
