• 全部
  • 经验案例
  • 典型配置
  • 技术公告
  • FAQ
  • 漏洞说明
  • 全部
  • 全部
  • 大数据引擎
  • 知了引擎
产品线
搜索
取消
案例类型
发布者
是否解决
是否官方
时间
搜索引擎
匹配模式
高级搜索

XE200/2000基于地理位置的号码变换与语音VPN配合使用的配置

2006-07-04 发表
  • 0关注
  • 0收藏 809浏览
粉丝: 关注:

XE200/2000基于地理位置的号码变换与语音VPN配合使用的配置

  

一、组网:

 

二、问题描述:

    一台XE 200语音服务器采用集中式组网,进行H.323呼叫。有两家公司AB,总部都设在北京,同时A公司在杭州有分公司,B公司在深圳有分公司,两个公司之间有通话需求。以4台网关设备为例,其中H.323 Gateway 1 H.323 Gateway 3A公司服务,地区码分别为0100571H.323 Gateway2 H.323 Gateway 4B公司服务,地区码分别为0100755A公司的语音VPNvpn01,语音VPN前缀为222B公司的语音VPNvpn02,语音VPN前缀为333

    当gateway1下的phone1拨打gateway3 下的phone1,由于同属于一个vpn下,只需要拨打05718801;但拨打gateway4下面的phone2时,需要拨打33307559901

 

三、解决方法:

     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

[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   

# 启用基于地理位置的号码变换功能#

[XE-ls] policy area-code-substitute enable 

# 启用语音VPN功能#

[XE-ls] policy voice-vpn enable 

# 配置语音VPN#

[XE-ls] voice-vpn vpn01 

#创建语音vpn01,并设置其拨打前缀222#

[XE-ls-vpn01] prefix 222

[XE-ls-vpn01] quit

[XE-ls] voice-vpn vpn02  

#创建语音vpn02,并设置其拨打前缀333#

[XE-ls-vpn02] prefix 333

[XE-ls-vpn02] quit

# 配置网关设备

[XE-ls] gateway gw01

[XE-ls-gw-gw01] device-type h323

[XE-ls-gw-gw01] dynamic-ip enable

[XE-ls-gw-gw01] area-code 010            

#为网关gw01下面的所有pots实体增加区号010 #   

[XE-ls-gw-gw01] default-vpn vpn01       

#将网关gw01下面的所有pots实体划入语音vpn01#

[XE-ls-gw-gw01] quit

[XE-ls] gateway gw02

[XE-ls-gw-gw02] device-type h323

[XE-ls-gw-gw02] dynamic-ip enable

[XE-ls-gw-gw02] area-code 010           

#为网关gw02下面的所有pots实体增加区号010#    

[XE-ls-gw-gw02] default-vpn vpn02      

#将网关gw01下面的所有pots实体划入语音vpn02#

[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 0571          

#为网关gw02下面的所有pots实体增加区号0571#    

[XE-ls-gw-gw03] default-vpn vpn01      

#将网关gw01下面的所有pots实体划入语音vpn01#

[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 0755          

#为网关gw02下面的所有pots实体增加区号0755#   

[XE-ls-gw-gw04] default-vpn vpn02     

#将网关gw01下面的所有pots实体划入语音vpn02#

[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

[VG1-voice-dial-entity1] match-template 0571....

[VG1-voice-dial-entity1] address ras

[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 333....

[VG1-voice-dial-entity3] address ras

[VG1-voice-dial-entity3] quit

[VG1-voice-dial] entity 4 voip

[VG1-voice-dial-entity4] match-template 3330755....

[VG1-voice-dial-entity4] address ras

[VG1-voice-dial-entity4] 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

      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 0755....

[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 222....

[VG2-voice-dial-entity3] address ras

[VG2-voice-dial-entity3] quit

[VG2-voice-dial] entity 4 voip

[VG2-voice-dial-entity4] match-template 2220571....

[VG2-voice-dial-entity4] address ras

[VG2-voice-dial-entity4] 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 010....

[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 333010....

[VG3-voice-dial-entity3] address ras

[VG3-voice-dial-entity3] quit

[VG3-voice-dial] entity 4 voip

[VG3-voice-dial-entity4] match-template 3330755....

[VG3-voice-dial-entity4] address ras

[VG3-voice-dial-entity4] 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 010....

[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 222010....

[VG4-voice-dial-entity3] address ras

[VG4-voice-dial-entity3] quit

[VG4-voice-dial] entity 4 voip

[VG4-voice-dial-entity4] match-template 2220571....

[VG4-voice-dial-entity4] address ras

[VG4-voice-dial-entity4] 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. 配置关键点

          7.1 在xe上启动号码变换功能,并为每个注册网关分配area-code

          7.2 启用vpn功能,创建vpn后,将网关包括到各个定义好的vpn中。

          7.3 相同vpn内互打,不用加前缀,不同vpn互打,必须加前缀,直接拨打区

           号+区内号码不能打通。

 

 

 

 

若您有关于案例的建议,请反馈:

作者在2006-07-12对此案例进行了修订
0 个评论

该案例暂时没有网友评论

编辑评论

举报

×

侵犯我的权益 >
对根叔知了社区有害的内容 >
辱骂、歧视、挑衅等(不友善)

侵犯我的权益

×

泄露了我的隐私 >
侵犯了我企业的权益 >
抄袭了我的内容 >
诽谤我 >
辱骂、歧视、挑衅等(不友善)
骚扰我

泄露了我的隐私

×

您好,当您发现根叔知了上有泄漏您隐私的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您认为哪些内容泄露了您的隐私?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)

侵犯了我企业的权益

×

您好,当您发现根叔知了上有关于您企业的造谣与诽谤、商业侵权等内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到 pub.zhiliao@h3c.com 邮箱,我们会在审核后尽快给您答复。
  • 1. 您举报的内容是什么?(请在邮件中列出您举报的内容和链接地址)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
  • 3. 是哪家企业?(营业执照,单位登记证明等证件)
  • 4. 您与该企业的关系是?(您是企业法人或被授权人,需提供企业委托授权书)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

抄袭了我的内容

×

原文链接或出处

诽谤我

×

您好,当您发现根叔知了上有诽谤您的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您举报的内容以及侵犯了您什么权益?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

对根叔知了社区有害的内容

×

垃圾广告信息
色情、暴力、血腥等违反法律法规的内容
政治敏感
不规范转载 >
辱骂、歧视、挑衅等(不友善)
骚扰我
诱导投票

不规范转载

×

举报说明

提出建议

    +

亲~登录后才可以操作哦!

确定

亲~检测到您登陆的账号未在http://hclhub.h3c.com进行注册

注册后可访问此模块

跳转hclhub

你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作