本文档讨论如何了解 Cisco IOS® 平台上拨号对等体的运行状态。
本文档的读者应掌握以下这些主题的相关知识:
如果语音网络(VoIP、VoFR 和 VoATM)和 POTS 拨号对等体无效且处于“运行状态”,则在 Cisco IOS 路由器/网关入站和出站拨号对等体匹配过程中不会将其考虑在内。拨号对等体必须满足以下标准之一,才能认为其有效/运行:
配置了目的地模式Destination-pattern 和话音端口 voice-port 或会话目标 session target
配置了 Incoming called-number。
配置了 Answer-address。
本文档不限于特定的软件和硬件版本。
有关文件规则的更多信息请参见“ Cisco技术提示规则”。
基于上述三条原则,此表列出了运行状态为 down 的拨号对等体配置示例。
Dial Peer示例 |
---|
dial-peer voice 1 pots port 1/0:23 !--- Invalid dial-peer (rule 1): Has voice-port configured only. ! dial-peer voice 2 pots destination-pattern 1T !--- Invalid dial-peer (rule 1): Has destination-pattern configured only. ! dial-peer voice 6 voip session target ipv4:172.16.13.111 !--- Invalid dial-peer (rule 1): Has session target configured only. ! dial-peer voice 7 voip destination-pattern 83... !--- Invalid dial-peer (rule 1): Has destination-pattern configured only. ! |
注意:如果违反1、2和3,则没有任何子命令的拨号对等体配置语句被视为无效。
基于上述三条原则,此表列出了运行状态为 up 的拨号对等体配置示例。
有效对等体示例 |
---|
dial-peer voice 3 pots destination-pattern 1T port 1/0:23 prefix 1 !--- Valid dial-peer (rule 1): Has voice-port and destination-pattern configured. ! dial-peer voice 4 pots incoming called-number 83. !--- Valid dial-peer (rule 2): Has incoming called-number configured. ! dial-peer voice 5 pots answer-address 408 !--- Valid dial-peer (rule 2): Has answer-address configured. ss configured. ! dial-peer voice 8 voip destination-pattern 83... session target ipv4:172.16.13.111 !--- Valid dial-peer (rule 1): Has session target and destination-pattern configured. ! dial-peer voice 9 voip incoming called-number . !--- Valid dial-peer (rule 2): Has incoming called-number configured. ! dial-peer voice 10 voip answer-address 6666 !--- Valid dial-peer (rule 2): Has answer-address configured. ! |
注意:假设用于入站匹配的拨号对等体已配置了传入的被叫号码或应答地址,并添加了destination-pattern命令。在您添加 destination-pattern string 命令之后,拨号对等体将停止运行。原因是路由器为出站拨号对等体匹配将 destination-pattern 映射到某个地址 (session target) 或语音端口 (port)。在此方案中不存在映射目标。例如,如果您在拨号对等体 4、5、9 和 10 上添加 destination-pattern,则其运行状态将会变为 down。
注意:在拨号对等体4和5上,如果删除destination-pattern并添加port命令,拨号对等体将保持有效。同样,如果在 9 和 10 上删除 destination-pattern 并添加 session-target 命令,则它们也将保持运行。
要检查拨号对等体配置的有效性,请使用 Cisco IOS 命令 show dial-peer voice summary。
检查拨号对等体配置 |
---|
2600#show dial-peer voice summary dial-peer hunt 0 PASS TAG TYPE ADMIN OPER PREFIX DEST-PATTERN PREF THRU SESS-TARGET PORT 1 pots up down 0 1/0:23 2 pots up down 1T 0 3 pots up up 1 1T 0 1/0:23 4 pots up up 0 5 pots up up 0 6 voip up down 0 syst ipv4:172.16.13.111 7 voip up down 83... 0 syst 8 voip up up 83... 0 syst ipv4:172.16.13.111 9 voip up up 0 syst 10 voip up up 0 syst |