Print

MSR路由器基础VoIP功能的配置

2006-09-22 发表

MSR路由器

基础VoIP功能的配置

 

关键词:MSR;VoIP;SIP;H.323;VE1;PRI

 

一、组网需求

其中一台MSR路由器充当PBX,另外2台作为语音网关,GWA通过VE1与PBX相连,使用PRI信令,当GWA侧拨打GWB侧时使用H323,GWB拨打GWA时使用SIP

设备清单:MSR路由器3台

二、组网图:

三、配置步骤:

适用设备和版本:MSR、Version 5.20, Beta 1105后所有版本。

GWA配置

#

controller E1 5/0

 pri-set                          //使用PRI

#

interface Serial 5/0:15

 link-protocol ppp

#

interface E0/0

 port link-mode route

 description connects to gwb

 ip address 1.2.0.1 255.255.255.0

#

voice-setup

 vga dscp signal 0

#

 dial-program

  #

  entity 1 pots                 //pots实体

   line 5/0:15                  //使用VE1PRI信道

   send-number all              //发送完整号码,必配

   match-template 1...          //匹配1开头的4位号码

  #

  entity 2 voip                 //voip实体

   address ip 1.2.0.2           //使用H.323建立呼叫

   match-template 2...          //匹配2开头的4位号码

#

GWB配置

#

interface E0/0

 port link-mode route

 description connects to gwa

 ip address 1.2.0.2 255.255.255.0

#

voice-setup

 vga dscp signal 0

#

 dial-program

  #

  entity 2 pots                  //匹配2001电话号码的pots实体

   line 1/0                      //该号码接在line1/0FXS口上

   match-template 2001           //匹配号码2001

  #

  entity 1 voip                  //voip实体

   address sip ip 1.2.0.1        //使用sip建立呼叫

   match-template 1...           //匹配1开头的4位号码

#

PBX配置

#

controller E1 5/0

 pri-set                         //使用PRI信令

#

interface Serial 5/0:15

 link-protocol ppp

 isdn protocol-type network      //配置成为网络侧

#

voice-setup

 vga dscp signal 0

 #

 dial-program

  #

  entity 1001 pots                //匹配1001电话号码的pots实体

   line1/0                        //该号码接在line1/0FXS口上

   match-template 1001            //匹配号码1001

  #

  entity 1002 pots                //匹配1002电话号码的pots实体

   line1/1                        //该号码接在line1/1FXS口上

   match-template 1002            //匹配号码1002

  #

  entity 2 pots                   //外线pots实体

   line5/0:15                     //该号码从line5/0:15VE1出去

   send-number all                //发送完整号码,必配

   match-template 2...            //匹配2开头的4位号码

#

四、配置关键点

1) VE1的controller视图下要配置pri-set;

2) VE1使用pri对接时,必须有一方在pri-set的信令接口上配置isdn protocol-mode network;

3) 使用VE1的pri信道传送号码时必须要配置send-number all;

4) GWA和GWB要注意号码的匹配。