概述

Webex Calling 支持在相同的 Cisco IOS 托管网管上进行本地网关和存活网关的主机托管。 也就是说,您可以使用相同的 Cisco IOS 网关设备配置本地网关和存活网关服务。 因此,您无需将两个不同的 Cisco IOS 托管网关分别分配为存活网关和本地网关。


 

本文讨论与这些服务的独立版部署相比,本地网关和存活网关服务的主机托管注意事项。


 
  • 由于检测到的漏洞,Webex 将于2024年9月1日停用站点存活解决方案使用的RSAES-PKCS1-v1_5加密方案。 在此日期之后,RSAES-OAEP加密方案为强制。

    要确保继续使用此加密方案,请在2024年9月1日之前将站点存活网关升级到Cisco IOS XE Dublin 17.12.3。 在此次升级后,无需更改配置即可使用新的加密方案。

必要条件

Cisco IOS XE Dublin 17.12.3及更高版本。

限制与约束

以下是 Cisco IOS 托管网关中的主机托管服务的已知限制:

  • 本地网关不支持高可用性。

  • 本地网关不支持配置验证。

  • 在 Control Hub 中,网关必须设置为存活网关服务。

  • 如果客户已将网关设置为本地网关,则其需要取消分配,然后将服务重新分配为存活网关。

  • 主机托管仅适用于 Cisco IOS 网关。 使用第三方本地网关的客户必须单独部署存活网关。

  • 在多个客户之间共享的合作伙伴部署的本地网关主机托管不适用。

有关独立版网关服务的限制与约束,请参阅将 Cisco IOS 托管网关注册到 Webex CloudWebex Calling 的站点存活

主机托管的呼叫路由注意事项

主机托管的呼叫路由基于路由策略,该策略包括拨号对等体组 (DPG) 和基于目标模式的常规路由的结合。 这与用于独立版 Cisco IOS 托管网关服务的呼叫路由策略不同。 独立版本地网关服务使用基于 DPG 的呼叫路由策略。 独立版存活网关使用目标模式进行路由呼叫。

本地网关和站点存活服务的主机托管呼叫路由

在配置主机托管场景的呼叫路由时,请考虑以下事项。

  • 对于来自 Webex Calling 的呼叫 - 来自 Webex Calling 的入站拨号对等体根据 URI 的本地网关主机名或 DTG 参数进行匹配。 入站拨号对等体关联到具有 PSTN 的 DPG。 然后呼叫将路由到 PSTN。 简而言之,基于现有本地网关路由策略的呼叫路由没有变化。

  • 对于来自 PSTN 呼叫 - 删除基于拨号对等体组的呼叫路由。 使用基于目标模式的常规路由进行路由呼叫。 也就是说,入站拨号对等体在此策略中未关联到 DPG。 根据 Via URI 中的 PSTN IP 地址匹配来自 PSTN 的入站拨号对等体。 将完成常规拨号对等体查找,并基于拨号对等体首选项进行路由呼叫。 呼叫将路由到存活模式的本地注册终端或活动模式的 Webex Calling。

  • 对于来自本地注册终端的呼叫(适用于 WAN 中断期间的站点存活模式)- 使用基于目标模式的常规路由进行路由呼叫。 在此策略中,入站拨号对等体与线路侧拨号对等体匹配。 已执行常规拨号对等体查找,并基于拨号对等体首选项进行路由呼叫。 呼叫将路由到本地注册终端 PSTN 或 Webex Calling。

  • 可以为每个出站拨号对等体定义首选项。 此首选项用于决定安装去电的拨号对等体的选择顺序。 值越低,首选项的优先级越高。 对于主机托管的呼叫路由,拨号对等体首选项设置如下:

    • 缺省首选项 0 可将呼叫路由到本地注册的终端

    • 首选项 2 可将呼叫路由到 Webex Calling 中继

    • 首选项 3 可将呼叫路由到 PSTN 中继

下列表格总结了 Webex Calling 中所有涉及 Cisco IOS 托管网关服务主机托管的入站和出站呼叫的呼叫路由行为:

表 1. 主机托管的呼叫路由注意事项
入站自出站至

网关服务

呼叫路由

其他信息

PSTN

Webex Calling

本地网关和存活网关的主机托管

基于目标模式 (.T)

首选项为 2 的拨号对等体

PSTN

本地终端

本地网关和存活网关的主机托管

基于目标模式

使用基于注册创建的动态拨号对等体。

没有要在这些系统拨号对等体上执行的配置。 它将自动拥有最高优先级。

本地终端

PSTN

本地网关和存活网关的主机托管

基于目标模式

首选项为 3 的拨号对等体

本地终端

Webex Calling

本地网关和存活网关的主机托管

基于目标模式 (.T)

首选项为 2 的拨号对等体

仅当面向 Webex Calling 的本地网关中继在存活网关模式下仍处于运行状态时才适用。

Webex Calling

PSTN

本地网关

基于拨号对等体组

固定到 PSTN 的连接

本地终端

本地终端

存活网关

基于目标模式

使用基于注册创建的动态拨号对等体。

这些系统拨号对等体不需要进行其他拨号对等体配置更改。

有关 Cisco IOS 托管网关服务的呼叫路由注意事项的详细信息,请参阅 Webex Calling 首选架构

配置主机托管服务

如果您需要分配新的 Cisco IOS 托管网关,以对本地网关和站点存活服务进行主机托管,请将您的网关分配为 Control Hub 上的存活网关。 有关将网关分配为存活网关的信息,请参阅将 Cisco IOS 托管网关注册到 Webex Cloud 以将网关添加到 Control Hub。

根据所使用的中继类型,您可以使用以下选项之一配置主机托管:

为基于注册的中继配置主机托管

1

配置证书。

您必须使用由受信任的证书颁发机构签名的证书。 有关如何请求和创建证书的更多信息,请参阅配置证书

2

配置全局语音指令。

语音配置包括与本地网关和存活网关服务相关的通用设置。 以下是全局语音配置示例:

voice service voip
  ip address trusted list
    ipv4 x.x.x.x y.y.y.y
  allow-connections sip to sip
  media statistics
  media bulk-stats
  no supplementary-service sip refer
  no supplementary-service sip handle-replaces
  fax protocol t38 version 0 ls-redundancy 0 hs-redundancy 0 fallback none
  stun
   stun flowdata agent-id 1 boot-count 4
   stun flowdata shared-secret 0 Password123$
  sip
   g729 annexb-all
   early-offer forced
   asymmetric payload full
   registrar server
3

特定于存活网关的配置。

为注册到存活网关的终端设置语音注册全局配置、池和编解码器首选项。 以下是特定于存活网关的示例配置:

!
voice register global
 mode webex-sgw
 no allow-hash-in-dn
 max-dn 50
 max-pool 50
!
voice class codec 1
 codec preference 1 opus
 codec preference 2 g711ulaw
!
voice register pool  1
 id network 0.0.0.0 mask 0.0.0.0
 dtmf-relay rtp-nte
 voice-class codec 1
!
4

特定于本地网关的配置。 有关更多信息,请参阅基于注册的本地网关

它包括用于将本地网关中继注册到 Webex Calling 的租户配置、关联的 SIP 配置文件和编解码器首选项。 以下是特定于本地网关的示例配置:

voice class sip-profiles 200
rule 9 request ANY sip-header SIP-Req-URI modify "sips:(.*)" "sip:\1"
rule 10 request ANY sip-header To modify "<sips:(.*)" "<sip:\1"
rule 11 request ANY sip-header From modify "<sips:(.*)" "<sip:\1"
rule 12 request ANY sip-header Contact modify "<sips:(.*)>" "<sip:\1;transport=tls>" 
rule 13 response ANY sip-header To modify "<sips:(.*)" "<sip:\1"
rule 14 response ANY sip-header From modify "<sips:(.*)" "<sip:\1"
rule 15 response ANY sip-header Contact modify "<sips:(.*)" "<sip:\1"
rule 20 request ANY sip-header From modify ">" ";otg=hussain2572_lgu>"
rule 30 request ANY sip-header P-Asserted-Identity modify "sips:(.*)" sip:\1
!
voice class codec 99
codec preference 1 g711ulaw
codec preference 2 g711alaw 
!
voice class srtp-crypto 200
crypto 1 AES_CM_128_HMAC_SHA1_80
!
voice class stun-usage 200
stun usage firewall-traversal flowdata
stun usage ice lite
!
voice class tenant 200
  registrar dns:40462196.cisco-bcld.com scheme sips expires 240 refresh-ratio 50 tcp tls
  credentials number Hussain6346_LGU username Hussain2572_LGU password 0 meX7]~)VmF realm BroadWorks
  authentication username Hussain2572_LGU password 0 meX7]~)VmF realm BroadWorks
  authentication username Hussain2572_LGU password 0 meX7]~)VmF realm 40462196.cisco-bcld.com
  no remote-party-id
  sip-server dns:40462196.cisco-bcld.com
  connection-reuse
  srtp-crypto 200
  session transport tcp tls 
  url sips 
  error-passthru
  asserted-id pai 
  bind control source-interface GigabitEthernet0/0/1
  bind media source-interface GigabitEthernet0/0/1
  no pass-thru content custom-sdp 
  sip-profiles 200 
  outbound-proxy dns:la01.sipconnect-us10.cisco-bcld.com  
  privacy-policy passthru
5

特定于 PSTN 的配置。

它包括设置 PSTN 租户和关联的 SIP 配置文件(如有)以及编解码器首选项。 以下是特定于 PSTN 的示例配置:

!
voice class tenant 100 
 session transport udp
 url sip
 error-passthru
 bind control source-interface GigabitEthernet0/0/0
 bind media source-interface GigabitEthernet0/0/0
 no pass-thru content custom-sdp
!
6

配置入站 PSTN 拨号对等体。

它包括基于标头匹配的 PSTN 传入呼叫的拨号对等体选择。 以下是入站 PSTN 拨号对等体的配置示例:

!
voice class uri 100 sip
  host ipv4:192.168.80.13
!
dial-peer voice 100 voip
description Incoming dial-peer from PSTN
session protocol sipv2
incoming uri via 100
voice-class codec 99
dtmf-relay rtp-nte
voice-class sip tenant 100
emergency response callback
no vad
!
7

配置出站 Webex Calling 拨号对等体。

它包括基于拨号对等体组的出站 Webex Calling 中继的拨号对等体选择。 以下是出站 Webex Calling 拨号对等体的配置示例:

dial-peer voice 200201 voip
description Outbound Webex Calling
destination e164-pattern-map 100
preference 2
session protocol sipv2
session target sip-server
voice-class codec 99
dtmf-relay rtp-nte
voice-class stun-usage 200
no voice-class sip localhost
voice-class sip tenant 200
srtp
no vad
!
8

配置入站 Webex Calling 拨号对等体。

它包括 Webex Calling 传入呼叫的拨号对等体选择,基于与 Request-URI 标头中的 DPG 参数的匹配。 拨号对等体组用于将呼叫直接路由到出站 PSTN。 以下是入站 Webex Calling 拨号对等体的配置示例:

voice class dpg 200
 dial-peer 101 preference 1
!
!
voice class uri 200 sip
 pattern dtg=hussain2572
!
dial-peer voice 200201 voip
description Inbound Webex Calling
destination dpg 200
max-conn 250
incoming uri request 200
!
9

配置出站 PSTN 拨号对等体。

它用于在本地网关和存活网关模式下进行 PSTN 路由呼叫。 将目标模式从当前的 BAD 变更为适合 PSTN 呼叫的模式。 这是从本地注册的终端进行 PSTN 路由呼叫所必需的。 您可以直接使用目标模式或通过 E164 模式映射完成此操作。 以下是出站 PSTN 拨号对等体的配置示例:

!
voice class e164-pattern-map 100
  e164 +91.T
  e164 +1.T
  e164 +.T
 !

!
dial-peer voice 101 voip 
description Outgoing dial-peer to IP PSTN
destination e164-pattern-map 100
preference 3
session protocol sipv2
session target ipv4:192.168.80.13
voice-class sip options-keepalive
voice-class codec 99
dtmf-relay rtp-nte
voice-class sip tenant 100
no vad
!
10

在存活模式下为紧急呼叫配置出站 PSTN 拨号对等体。

它用于基于 E164 模式匹配的拨号对等体选择。 这些拨号对等体仅对源自终端的呼叫进行匹配,该终端在存活模式下直接注册到存活网关。 基于存活模式下支持的拨号方案和关联的呼叫权限,设置一个或多个拨号对等体。 以下是存活模式下紧急呼叫的出站 PSTN 拨号对等体配置示例:

!
voice class e164-pattern-map 300
  e164 911
 !
dial-peer voice 300 voip
 description Outbound PSTN dial-peer for E911 call in Survivability Mode
 emergency response zone 1
 session protocol sipv2
 session target ipv4:10.65.125.202:9089
 destination e164-pattern-map 300
 voice-class codec 99
 voice-class sip tenant 100
 dtmf-relay rtp-nte
!
11

配置拨号对等体寻线。

寻线用于根据拨号对等体的首选项设置选择进行路由的拨号对等体。

!
dial-peer hunt 2
!

为基于证书的中继配置主机托管

准备工作

除了特定于本地网关中继和租户的配置以外,基于证书的中继配置主机托管与基于注册的中继配置主机托管类似。

1

配置证书。

您必须使用由受信任的证书颁发机构签名的证书。 有关如何请求和创建证书的更多信息,请参阅配置证书

2

配置全局语音指令。

语音配置包括与本地网关和存活网关服务相关的通用设置。 以下是全局语音配置示例:

voice service voip
  ip address trusted list
    ipv4 x.x.x.x y.y.y.y
  allow-connections sip to sip
  media statistics
  media bulk-stats
  no supplementary-service sip refer
  no supplementary-service sip handle-replaces
  fax protocol t38 version 0 ls-redundancy 0 hs-redundancy 0 fallback none
  stun
   stun flowdata agent-id 1 boot-count 4
   stun flowdata shared-secret 0 Password123$
  sip
   g729 annexb-all
   early-offer forced
   asymmetric payload full
   registrar server
3

特定于存活网关的配置。

为注册到存活网关的终端设置语音注册全局配置、池和编解码器首选项。 以下是特定于存活网关的示例配置:

!
voice register global
 mode webex-sgw
 no allow-hash-in-dn
 max-dn 50
 max-pool 50
!
voice class codec 1
 codec preference 1 opus
 codec preference 2 g711ulaw
!
voice register pool  1
 id network 0.0.0.0 mask 0.0.0.0
 dtmf-relay rtp-nte
 voice-class codec 1
!
4

特定于本地网关的配置。 有关更多信息,请参阅基于证书的中继

它包括用于在本地网关中执行证书交换所需的中继和租户配置、关联的 SIP 配置文件和编解码器首选项。 以下是特定于本地网关的示例配置:

voice class codec 200
codec preference 1 g711ulaw
 codec preference 2 g711alaw
!
voice class sip-options-keepalive 200
 description Keepalive webex_mTLS
 up-interval 5
 transport tcp tls
!
voice class tls-profile 200
 description Webexcalling
 trustpoint sbc6
 cn-san validate bidirectional
 cn-san  1 us01.sipconnect.bcld.webex.com
!
voice class sip-profiles 200
 rule 10 request ANY sip-header Contact modify "@.*:" "@sbc6.tekvizionlabs.com:" 
 rule 20 response ANY sip-header Contact modify "@.*:" "@sbc6.tekvizionlabs.com:" 
!
voice class srtp-crypto 200
 crypto 1 AES_CM_128_HMAC_SHA1_80
!

voice class tenant 200
  no remote-party-id
  localhost sbc6.tekvizionlabs.com
  srtp-crypto 200
  session transport tcp tls 
  url sips 
  error-passthru
  asserted-id pai 
  bind control source-interface GigabitEthernet0/0/1
  bind media source-interface GigabitEthernet0/0/1
  no pass-thru content custom-sdp 
  sip-profiles 200 
  privacy-policy passthru
  tls-profile 200
!
5

特定于 PSTN 的配置。

它包括设置 PSTN 租户和关联的 SIP 配置文件(如有)以及编解码器首选项。 以下是特定于 PSTN 的示例配置:

!
voice class tenant 100 
 session transport udp
 url sip
 error-passthru
 bind control source-interface GigabitEthernet0/0/0
 bind media source-interface GigabitEthernet0/0/0
 no pass-thru content custom-sdp
!
6

配置入站 PSTN 拨号对等体。

它包括基于标头匹配的 PSTN 传入呼叫的拨号对等体选择。 以下是入站 PSTN 拨号对等体的配置示例:

!
voice class uri 100 sip
  host ipv4:192.168.80.13
!
dial-peer voice 100 voip
description Incoming dial-peer from PSTN
session protocol sipv2
incoming uri via 100
voice-class codec 99
dtmf-relay rtp-nte
voice-class sip tenant 100
emergency response callback
no vad
!
7

配置出站 Webex Calling 拨号对等体。

它包括基于拨号对等体组的出站 Webex Calling 中继的拨号对等体选择。 以下是出站 Webex Calling 拨号对等体的配置示例:

dial-peer voice 200201 voip
description OutBound Webex Calling
session protocol sipv2
session target dns:<insert us01.sipconnect.bcld.webex.com>
session transport tcp tls
destination e164-pattern-map 100
voice-class codec 200
voice-class stun-usage 200
voice-class sip asserted-id pai
voice-class sip tenant 200
voice-class sip options-keepalive profile 200
voice-class sip bind control source-interface GigabitEthernet 0/0/2
voice-class sip bind media source-interface GigabitEthernet 0/0/2
dtmf-relay rtp-nte
srtp
no vad
!
8

配置入站 Webex Calling 拨号对等体。

它包括 Webex Calling 传入呼叫的拨号对等体选择,基于与 Request-URI 标头中的 DPG 参数的匹配。 拨号对等体组用于将呼叫直接路由到出站 PSTN。 以下是入站 Webex Calling 拨号对等体的配置示例:

voice class dpg 200
 dial-peer 101 preference 1
!
!
voice class uri 200 sip
 pattern dtg=hussain2572
!
dial-peer voice 200201 voip
description Inbound Webex Calling
destination dpg 200
max-conn 250
incoming uri request 200
!
9

配置出站 PSTN 拨号对等体。

它用于在本地网关和存活网关模式下进行 PSTN 路由呼叫。 将目标模式从当前的 BAD 变更为适合 PSTN 呼叫的模式。 这是从本地注册的终端进行 PSTN 路由呼叫所必需的。 您可以直接使用目标模式或通过 E164 模式映射完成此操作。 以下是出站 PSTN 拨号对等体的配置示例:

!
voice class e164-pattern-map 100
  e164 +91.T
  e164 +1.T
  e164 +.T
 !

!
dial-peer voice 101 voip 
description Outgoing dial-peer to IP PSTN
destination e164-pattern-map 100
preference 3
session protocol sipv2
session target ipv4:192.168.80.13
voice-class sip options-keepalive
voice-class codec 99
dtmf-relay rtp-nte
voice-class sip tenant 100
no vad
!
10

在存活模式下为紧急呼叫配置出站 PSTN 拨号对等体。

它用于基于 E164 模式匹配的拨号对等体选择。 这些拨号对等体仅对源自终端的呼叫进行匹配,该终端在存活模式下直接注册到存活网关。 基于存活模式下支持的拨号方案和关联的呼叫权限,设置一个或多个拨号对等体。 以下是存活模式下紧急呼叫的出站 PSTN 拨号对等体配置示例:

!
voice class e164-pattern-map 300
  e164 911
 !
dial-peer voice 300 voip
 description Outbound PSTN dial-peer for E911 call in Survivability Mode
 emergency response zone 1
 session protocol sipv2
 session target ipv4:10.65.125.202:9089
 destination e164-pattern-map 300
 voice-class codec 99
 voice-class sip tenant 100
 dtmf-relay rtp-nte
!
11

配置拨号对等体寻线。

寻线用于根据拨号对等体的首选项设置选择进行路由的拨号对等体。

!
dial-peer hunt 2
!