配置Teams电话策略

您可能需要为 Teams 电话的特定功能配置多个策略。 本单元介绍了这些策略的配置。

配置呼叫策略

呼叫策略控制哪些呼叫和呼叫转移功能可供用户使用。

呼叫策略可以启用或禁用以下功能:

FunctionDescriptionRecommendation
Make private callsThe ability to make P2P VoIP and PSTN calls in TeamsSet to on to make calls
Cloud recording for callingallow convenience recording of 1:1 callsSet to on unless you have a compliance reason not to enable this.
Call forwarding and simultaneous ringing to people in your organizationEnables call forwarding or simultaneous ringing of inbound calls to other users in your tenant.Set to on
Call forwarding and simultaneous ringing to external phone numbersEnables call forwarding or simultaneous ringing of inbound calls to any phone number.Set to on. Be aware this may incur phone charges.
Voicemail is available for routing inbound callsEnables inbound calls to be routed to voicemail.Select user controlled so the user can define their setting.
Inbound calls can be routed to call groupsInbound calls can be routed to call groupsSet to on, this is a useful option for users who need to forward their number to a team
Delegation for inbound and outbound callsEnables inbound calls to be routed to delegates; allows delegates to make outbound calls on behalf of the users for whom they have delegated permissions.Set to on. Useful for users
Prevent toll bypass and send calls through the PSTNSetting this to on will send calls through PSTN and incur charges rather than going through the network and bypassing the tolls. This setting only works with Direct Routing that is configured to handle location-based routing restrictions.Set to off unless you have a particular regulatory reason to turn this on. Do not set this parameter to True for Calling Plan users as it will prevent successful call routing
Music on hold for PSTN callersAllows you to turn on or turn off the music on hold when a PSTN caller is placed on hold.
This setting does not apply to call park and SLA boss delegate features.
Se this to On. Silence while on hold is confusing to users.
Busy on busy when in a call – when you are on a call a second incoming call will not alert you, it will be routed as an unanswered call for that user, typically to voicemailConfigures how incoming calls are handled when a user is already in a call or conference or has a call placed on hold.
When enabled, new or incoming calls will be rejected with a busy signal.
When set to Unanswered, the user’s unanswered settings will take effect, such as routing to voicemail or forwarding to another user.
Set this to off. Most users want a notification of a second incoming call when on a call.
Web PSTN calling – specifically block PSTN calling from the web clientAllows PSTN calling from the Team web client.Set to on. There is normally no reason to disable PSTN calling from the browser.
Real-time captions in Teams callsDetermines whether real-time captions are available for the user in Teams callsSet this to on.
Automatically answer incoming meeting invitesAllows you to enable or disable auto answer for incoming meeting invitesSet to off. Most users don’t want meeting invites to automatically answer.

您可以使用和修改全局(组织范围默认)策略和/或为用户集创建自定义策略。 您可以按照以下步骤创建策略:

  • 导航到位于 https://admin.teams.microsoft.com 的 Microsoft Teams 管理中心。
  • 选择语音和呼叫策略。
  • 选择要编辑的策略或选择添加以添加新策略
  • 定义适当的名称和友好的描述
  • 定义策略的设置
  • 选择保存

执行上述步骤后,您已创建新的呼叫策略。

您还可以使用 Teams PowerShell 模块通过以下 cmdlet 执行相同的配置:

Set-CSTeamsCallingPolicy -Identity HROPolicy -LiveCaptionsEnabledTypeForCalling disabled

执行 PowerShell 后,已在现有 HROPolicy 上禁用实时字幕。

了解拨号计划

拨号计划允许您将用户拨打的号码转换为另一个号码,例如从本地拨号格式转换为国际 E.164 格式,或允许用户为用户拨打短分机号码。

这些转换称为规范化规则,它们使用 .NET Framework 正则表达式来指定数字匹配模式,服务器使用该模式将用户拨打的号码转换为另一个号码,通常是 E.164 格式。

在 Teams 中,有两种类型的拨号计划:服务国家和租户。 租户范围的拨号计划可以进一步分为两个 – 租户范围或用户范围

Dial plan scopeAbout
Service-countryA service-scoped dial plan is defined for every country/region where Phone System is available. Each user is automatically assigned the service-country dial plan that matches the usage location assigned to the user. You can’t change the service-country dial plan
Tenant-globalApplies to all users in your tenant/organization
Tenant-userCan be applied to select users

每个用户都被自动分配了与分配给用户的使用位置相匹配的服务国家拨号计划。 因此,对于大多数用户而言,您可能不需要任何自定义拨号计划。

如果要应用其他拨号计划规则,用户的有效拨号计划将是其服务国家/地区拨号计划和分配给他们的任何租户全局或租户用户拨号计划的组合。

以下是可能的有效拨号计划:

  • 如果未定义租户范围的拨号计划并且未将租户用户范围的拨号计划分配给预配用户,则用户将收到映射到与其使用位置关联的服务国家/地区的有效拨号计划。
  • 如果定义了租户全局拨号计划,用户将收到一个有效的拨号计划,该计划由合并的租户全局拨号计划和与其使用位置关联的服务国家/地区拨号计划组成。 租户全局拨号计划未分配给任何用户
  • 如果定义了租户用户拨号计划并将其分配给用户,则预配用户将收到一个有效的拨号计划,该计划由合并的租户用户拨号计划和与其使用位置关联的服务国家/地区拨号计划组成。 租户全局拨号计划(如果已定义)将不适用于分配了租户用户拨号计划的用户。

Teams 自上而下遍历规范化规则列表,并使用与所拨号码匹配的第一条规则。 租户全局和租户用户规则将高于服务国家/地区规则。

创建拨号计划

要创建租户全局或租户用户拨号计划,请完成以下步骤:

  • 导航到位于 https://admin.teams.microsoft.com 的 Microsoft Teams 管理中心。
  • 选择语音和拨号计划。
  • 选择添加,然后输入拨号计划的名称和说明。
  • 或者,如果用户需要拨打一个或多个附加前导数字(例如 9)以获取外部线路,请指定外部拨号前缀。如果你想这样做:
  • 在外部拨号前缀框中,输入外部拨号前缀。前缀最多可以有四个字符(#、* 和 0-9)。
  • 打开优化的设备拨号。如果您指定外部拨号前缀,您还必须打开此设置以应用前缀,以便可以在您的组织外部进行呼叫。
  • 在规范化规则下,为拨号计划配置和关联一个或多个规范化规则。每个拨号计划必须至少有一个与之关联的规范化规则。
  • 要创建新的规范化规则并将其与拨号计划相关联,请选择添加,然后使用 .NET Framework 正则表达式定义规则。 Microsoft Docs 上有一些很好的示例。
  • 按您想要的顺序排列规范化规则。选择上移或下移可更改规则在列表中的位置。
  • 选择保存
  • 如果要测试拨号计划,请在测试拨号计划下输入电话号码,然后选择测试。
  • Microsoft 文档的资源中提供了拨号计划的一个很好的概述。

配置呼叫暂留策略

呼叫暂留和取回允许用户将呼叫置于保持状态,并使同一用户或其他人能够取回并继续呼叫。

这通常用于零售环境,有人可能会通过公共广播系统说“22 号有电子部门的电话”,然后电子部门的某个人可以通过拨打 22 来取回该电话。

注意:只有获得 Teams Phone 许可的用户才能驻留和检索呼叫。

默认情况下禁用呼叫暂留。 它可以在全局策略中启用,也可以创建自定义策略。 全局策略将允许任何用户接听驻留的呼叫。 自定义策略可用于将策略分配给用户子集,当您将相同策略应用于一组用户时,他们可以在彼此之间暂留和检索呼叫。

启用呼叫暂留:

  • 导航到位于 https://admin.teams.microsoft.com 的 Microsoft Teams 管理中心。
  • 选择语音和呼叫暂留策略。
  • 选择添加,然后输入名称和友好描述
  • 将允许呼叫暂留切换为开。
  • 选择保存

提示

呼叫代答范围为 10 到 99,不能自定义。 在日常使用中,一般不会达到这个限制; 因此,除非您有大量用户同时使用呼叫暂留,否则通常无需担心。

执行上述步骤后,您已经定义了一个呼叫暂留策略,您现在可以将其分配给一组用户。

配置来电显示策略

来电显示策略用于更改或阻止拨打或接听 PSTN 呼叫时显示的来电显示或电话号码。

默认情况下,当拨打固定电话或手机等 PSTN 电话号码时,会显示用户的电话号码。 在大多数情况下,大多数公司都会对这种默认设置感到满意。

一些组织可能希望不提供任何号码,以便呼叫者不知道这是他们的公司来电,或者提供另一个号码,例如主号码。 因此,如果有人回电,他们会被转接到主接待处或自动话务员。

Caller ID configuration optionsUse Case
Replace the caller ID with AnonymousBlocks the outbound ID completely; useful when customers do not want to be rung back.
Replace the caller ID with Service numberAllows you to assign any service number. The number must be on your tenant and actively assigned to a service. Useful to have call backs route to a call queue or auto attendant.
Block incoming caller IDAllows you to block the Caller ID of incoming PSTN calls. This is not normally required.
Replace the caller ID with User’s numberSets caller ID back to the default of presenting the user’s actual number.
Override the caller ID policyLet’s end users control if their caller ID is displayed or not for outbound calls. They can set this in their Teams client settings if this option is enabled. This is useful to allow users to make their own decision. If this is on, End users can set their caller ID to Anonymous by going to Settings > Calls in the Teams client, and then under Caller ID, select Hide my phone number and profile information for all calls.

您可以使用全局(组织范围的默认)策略并对其进行自定义,或者为部分用户创建自定义策略。

创建来电显示策略:

  • 导航到位于 https://admin.teams.microsoft.com 的 Microsoft Teams 管理中心。
  • 选择语音和来电显示策略。
  • 选择添加
  • 输入策略的名称和描述。
  • 选择您想要的设置
  • 阻止来电显示
  • 覆盖来电显示策略
  • 将来电显示替换为:
  • 用户号码:显示用户号码。
  • 服务号码:让您设置服务电话号码以显示为来电显示。
  • 匿名:显示来电显示为匿名。
  • 用该服务号码替换来电显示:选择一个服务号码来替换用户的来电显示。
  • 选择保存

配置入站呼叫阻止

在某些情况下,您可能希望在租户级别阻止特定的入站呼叫。 例如,如果某个特定的电话号码不断收到垃圾电话。

仅使用 PowerShell 提供用于阻止号码的管理控制。 使用正则表达式 (Regex) 匹配模式。

Microsoft Teams PowerShell 模块包含多个用于管理呼叫阻止的 cmdlet:

CmdletFunction
Get-CsInboundBlockedNumberPatternReturns a list of all blocked number patterns added to the tenant list including Name, Description, Enabled (True/False), and Pattern for each.
New-CsInboundBlockedNumberPatternAdds a blocked number pattern to the tenant list.
Remove-CsInboundBlockedNumberPatternRemoves a blocked number pattern from the tenant list.
Set-CsInboundBlockedNumberPatternModifies one or more parameters of a blocked number pattern in the tenant list.
Test-CsInboundBlockedNumberPatternUse the cmdlet to verify whether a number is blocked in the tenant.

要配置呼叫阻止规则,请执行以下步骤:

在以下示例中,我们将阻止来自号码 1 (412) 555-1111 的所有呼叫:

以管理员身份使用 PowerShell 连接到 Microsoft Teams

运行以下命令:

Test-CsInboundBlockedNumberPattern -PhoneNumber “14125551111”

验证模式是否有效的命令:

New-CsInboundBlockedNumberPattern -Name “BlockNusance1” -Enabled $True -Description “Block Fabrikam” -Pattern “^\+?14125551111$”

测试将确认该号码被阻止。

执行上述步骤后,您已配置并验证来自 1 (412) 555-1111 的呼叫拦截。

提示

被阻止的呼叫者可能会遇到略有不同的行为,具体取决于他们的运营商如何处理不允许成功完成呼叫的通知。 示例可能包括一条运营商消息,说明呼叫无法在拨打时完成或只是挂断呼叫。

Scroll to Top
Scroll to Top