XE200/2000基于地理位置的号码变换功能的配置
一、组网需求:
一台XE 200语音服务器采用集中式组网,进行H.323呼叫,共有4个网关设备,其中GW01和GW02的地区码分别为010和020,国家码为86,GW03和GW04的地区码分别为030和040,国家码为49。
二、组网图:
三、配置步骤:
1. 配置H.323网守
# 配置以太网接口
[XE] interface Ethernet 0/0
[XE-Ethernet0/0] ip address 192.168.80.50 255.255.255.0
[XE-Ethernet0/0] quit
# 配置网守
[XE] process-server
[XE-ps] ps-config gkserver interface Ethernet 0/0
[XE-ps] heartbeat password xe
#配置PS的心跳密码#
[XE-ps] ls-mode 0 local
#指定使用本地位置服务器#
[XE-ps] start
[XE-ps] gatekeeper
[XE-ps-gk] start
2. 配置位置服务器
# 配置位置服务器
[XE] location-server
[XE-ls] ls-config interface Ethernet 0/0
[XE-ls] process-server gkserver
[XE-ls-ps-gkserver] heartbeat password xe
#配置位置服务器LS的心跳密码#
# 启用基于地理位置的号码变换功能
[XE-ls] policy area-code-substitute enable
# 配置网关设备
[XE-ls] gateway gw01
[XE-ls-gw-gw01] device-type h323
[XE-ls-gw-gw01] dynamic-ip enable
#允许gw01的IP地址动态更新#
[XE-ls-gw-gw01] area-code 010 86
#配置国家码为86和地区码为010#
[XE-ls-gw-gw01] quit
[XE-ls] gateway gw02
[XE-ls-gw-gw02] device-type h323
#设置语音设备gw02为H323类型#
[XE-ls-gw-gw02] dynamic-ip enable
[XE-ls-gw-gw02] area-code 020 86
#配置gw02的国家码为86,地区码为020#
[XE-ls-gw-gw02] quit
[XE-ls] gateway gw03
[XE-ls-gw-gw03] device-type h323
[XE-ls-gw-gw03] dynamic-ip enable
[XE-ls-gw-gw03] area-code 030 49
[XE-ls-gw-gw03] quit
[XE-ls] gateway gw04
[XE-ls-gw-gw04] device-type h323
[XE-ls-gw-gw04] dynamic-ip enable
[XE-ls-gw-gw04] area-code 040 49
[XE-ls-gw-gw04] quit
# 启用位置服务器
[XE-ls] start
3. 配置H.323 Gateway 1
# 配置以太网接口
[VG1] interface ethernet 0
[VG1-Ethernet0] ip address 192.168.80.10 255.255.255.0
[VG1-Ethernet0] quit
# 配置语音实体
[VG1] voice-setup
[VG1-voice] dial-program
[VG1-voice-dial] entity 1 voip
#配置IP语音实体1#[VG1-voice-dial-entity1] match-template 0......
#配置任意四位号码作为语音实体1被叫号码模板#
[VG1-voice-dial-entity1] address ras
#配置动态路由策略,GW和GK SERVER通过交互RAS信令,由GK SERVER 动态返回与被叫号码匹配的对端GW 地址#
[VG1-voice-dial-entity1] quit
[VG1-voice-dial] entity 2 voip
[VG1-voice-dial-entity2] match-template 66..
[VG1-voice-dial-entity2] address ras
[VG1-voice-dial-entity2] quit
[VG1-voice-dial] entity 3 voip
[VG1-voice-dial-entity3] match-template 49......
[VG1-voice-dial-entity3] address ras
[VG1-voice-dial-entity3] quit
[VG1-voice-dial] entity 6601 pots
[VG1-voice-dial-entity6601] match-template 6601
[VG1-voice-dial-entity6601] line 0
[VG1-voice-dial-entity6601] return
# 配置GK-Client
[VG1-voice] gk-client
[VG1-voice-gk] gw-id gw01
[VG1-voice-gk] gw-address ip 192.168.80.10
[VG1-voice-gk] gk-id gkserver gk-addr 192.168.80.50 1719
[VG1-voice-gk] ras-on
#激活GK-Client#
4. 配置H.323 Gateway 2
# 配置以太网接口
[VG2] interface ethernet 0
[VG2-Ethernet0] ip address 192.168.80.20 255.255.255.0
[VG2-Ethernet0] quit
# 配置语音实体
[VG2] voice-setup
[VG2-voice] dial-program
[VG2-voice-dial] entity 1 voip
[VG2-voice-dial-entity1] match-template 0......
[VG2-voice-dial-entity1] address ras
[VG2-voice-dial-entity1] quit
[VG2-voice-dial] entity 2 voip
[VG2-voice-dial-entity2] match-template 77..
[VG2-voice-dial-entity2] address ras
[VG2-voice-dial-entity2] quit
[VG2-voice-dial] entity 3 voip
[VG2-voice-dial-entity3] match-template 49......
[VG2-voice-dial-entity3] address ras
[VG2-voice-dial-entity3] quit
[VG2-voice-dial] entity 7701 pots
[VG2-voice-dial-entity7701] match-template 7701
[VG2-voice-dial-entity7701] line 0
[VG2-voice-dial-entity7701] return
# 配置GK-Client
[VG2-voice] gk-client
[VG2-voice-gk] gw-id gw02
[VG2-voice-gk] gw-address ip 192.168.80.20
[VG2-voice-gk] gk-id gkserver gk-addr 192.168.80.50 1719
[VG2-voice-gk] ras-on
5. 配置H.323 Gateway 3
# 配置以太网接口
[VG3] interface ethernet 0
[VG3-Ethernet0] ip address 192.168.80.30 255.255.255.0
[VG3-Ethernet0] quit
# 配置语音实体
[VG3] voice-setup
[VG3-voice] dial-program
[VG3-voice-dial] entity 1 voip
[VG3-voice-dial-entity1] match-template 0......
[VG3-voice-dial-entity1] address ras
[VG3-voice-dial-entity1] quit
[VG3-voice-dial] entity 2 voip
[VG3-voice-dial-entity2] match-template 88..
[VG3-voice-dial-entity2] address ras
[VG3-voice-dial-entity2] quit
[VG3-voice-dial] entity 3 voip
[VG3-voice-dial-entity3] match-template 86......
[VG3-voice-dial-entity3] address ras
[VG3-voice-dial-entity3] quit
[VG3-voice-dial] entity 8801 pots
[VG3-voice-dial-entity8801] match-template 8801
[VG3-voice-dial-entity8801] line 0
[VG3-voice-dial-entity8801] return
# 配置GK-Client
[VG3-voice] gk-client
[VG3-voice-gk] gw-id gw03
[VG3-voice-gk] gw-address ip 192.168.80.30
[VG3-voice-gk] gk-id gkserver gk-addr 192.168.80.50 1719
[VG3-voice-gk] ras-on
6. 配置H.323 Gateway 4
# 配置以太网接口
[VG4] interface ethernet 0
[VG4-Ethernet0] ip address 192.168.80.40 255.255.255.0
[VG4-Ethernet0] quit
#配置语音实体
[VG4] voice-setup
[VG4-voice] dial-program
[VG4-voice-dial] entity 1 voip
[VG4-voice-dial-entity1] match-template 0......
[VG4-voice-dial-entity1] address ras
[VG4-voice-dial-entity1] quit
[VG4-voice-dial] entity 2 voip
[VG4-voice-dial-entity2] match-template 99..
[VG4-voice-dial-entity2] address ras
[VG4-voice-dial-entity2] quit
[VG4-voice-dial] entity 3 voip
[VG4-voice-dial-entity3] match-template 86......
[VG4-voice-dial-entity3] address ras
[VG4-voice-dial-entity3] quit
[VG4-voice-dial] entity 9901 pots
[VG4-voice-dial-entity9901] match-template 9901
[VG4-voice-dial-entity9901] line 0
[VG4-voice-dial-entity9901] return
# 配置GK-Client
[VG4-voice] gk-client
[VG4-voice-gk] gw-id gw04
[VG4-voice-gk] gw-address ip 192.168.80.40
[VG4-voice-gk] gk-id gkserver gk-addr 192.168.80.50 1719
[VG4-voice-gk] ras-on
7. 配置关键点
1) 启用基于地理位置的号码变换功能
[XE-ls] policy area-code-substitute enable
2) 配置国家码和地区码
[XE-ls-gw-gw01] area-code 010 86
3) 配置LS和PS的心跳密码要保持一致
[XE-ls-ps-gkserver] heartbeat password xe
[XE-ps] heartbeat password xe
该案例暂时没有网友评论
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作