一 组网需求:
IP电话通过VG2108的FXO接到PBX落地,PSTN侧电话也通过VG2108接入;
IP话机和VG2108都通过XE来定位号码,VG2108的第一和第二个FXO口要与IP电话802、803一一绑定(即:802拨出的电话只从VG2108的第一FXO口出局,pstn拨到第一FXO口的号码时802直接震铃)。
从IP侧拨出电话与普通的外线电话拨号规则相同,直接拨区号+市话号码或本地市话号码和手机号码,拨打外地手机加0,也支持拨打17909等号码。
二 组网图:
1 配置语音服务器XE2000
# 配置以太网接口
[XE] interface ethernet 0/0
[XE-Ethernet0/0] ip address 1.1.1.1 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
[XE-ps] ls-mode 0 local
[XE-ps] start
[XE-ps] gatekeeper
[XE-ps-gk] start
# 配置位置服务器
[XE] location-server
[XE-ls] ls-config interface Ethernet 0/0
[XE-ls] process-server gkserver
[XE-ls-ps-gkserver] heartbeat password xe
# 配置网关设备
[XE-ls] gate-way VG_21-08
[XE-ls-gw- VG_21-08] device-type h323
[XE-ls-gw- VG_21-08] dynamic-ip enable
[XE-ls-gw- VG_21-08] prefix.%
// 为VG_21-08下的所有实体做号码路由,允许所有号码路由到VG_21-08上
[XE-ls-gw- VG_21-08] priority 5
// 降低该网关的优先级别,让所有号码最后匹配该网关
[XE-ls-gw- VG_21-08] quit
[XE-ls] gate-way gejipphone
// IP电话1,号码802
[XE-ls-gw- gejipphone] device-type h323
[XE-ls-gw- gejipphone] dynamic-ip enable
[XE-ls-gw- gejipphone] quit
[XE-ls] gate-way segipphone
// IP电话2,号码803
[XE-ls-gw- segipphone] device-type h323
[XE-ls-gw- segipphone] dynamic-ip enable
[XE-ls-gw- segipphone] quit
2 配置语音网关VG B
# 配置全局模式下的语音编解码协议
[VGB] voice-setup
[VGB-voice] dial-program
[VGB-voice-dial] entity 8 voip
[VGB-voice-dial-entity8] match-template 8.T
[VGB-voice-dial-entity8] address ras
[VGB-voice-dial-entity8] quit
[VGB-voice-dial] entity 1802 pots
[VGB-voice-dial-entity1802] match-template .T
[VGB-voice-dial-entity1802] caller-permit 802
//只允许主叫号码为802的电话出局到pstn
[VGB-voice-dial-entity1802] send-number all
//将xe送来的所有号码都送给pbx
[VGB-voice-dial-entity1802] quit
[VGB-voice-dial] entity 1803 pots
[VGB-voice-dial-entity1803] match-template .T
[VGB-voice-dial-entity1803] caller-permit 803
//只允许主叫号码为803的电话出局到pastn
[VGB-voice-dial-entity1802] send-number all
//将xe送来的所有号码都送给pbx
[VGB-voice-dial-entity1803] quit
[VGB-voice-dial] gk-client
[VGB-voice-gk] gk-id XE_200 gk-addr 1.1.1.1 1719
[VGB-voice-gk] gk-id XE_200 gk-addr 192.168.16.252
[VGB-voice-gk] gw-address ip 1.1.1.2
[VGB-voice-gk] gw-id VG_21-08
[VGB-voice-gk] ras-on
[VGB-voice-gk] quit
[VGB-voice] subscriber-line 0
[VGB-voice-line0] area custom
[VGB-voice-line0] private-line 802
[VGB-voice-line0] quit
[VGB-voice] subscriber-line 1
[VGB-voice-line1] area custom
[VGB-voice-line1] private-line 803
四 配置关键点:XE号码路由的方式只有三种,一种是vg动态号码注册,第二种是xe自己放号,最后一种就是网关下用prefix命令来配置一条静态路由号码。
该案例暂时没有网友评论
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作