现在非常流行voip技术,这技术能让企业节约电话费用。于是许多大企业都部署了voip网络,从而减少传统电话费用开销。现在我为大家介绍关于E1接入的voip—gateway的配置方法:

一、voip网络的部署规划(例如下图):

 

关于E1接入的voip—gateway的配置_voip

说明:分公司申请的是adsl网络接入,总部公司用的是静态公网ip地址。分公司的Cisco2611网关通过adsl接入,做NHRP over gre 隧道与总部Cisco3640设备相连。Cisco2611网关插有E1模块,E1口接IPBX设备的E1口,IPBX模拟端口接普通电话机。总部通过Cisco3640作为×××服务器连接各个分公司×××客户端设备,总部内部部署了callmanger软交换平台,总部部署了一台ASA5800语音网关,E1口连接IPBX设备。

今天简单为大家介绍怎么配置分公司的gateway设备,总部的软交换平台的配置以后会陆续公布。

hostname C2611_xxx

aaa  new-model
!
!
aaa authentication login default local
aaa session-id common
enable secret 5 $1$v20f$0aedAx9Qqo4Qm2xqA6s7d.
!
username solink password 7 120A0A1B1B05072479787170
clock timezone GMT 8
voice-card 0
 dspfarm
!
ip subnet-zero
!
!
!
vpdn enable                  !
vpdn-template
!
vpdn-group 1                              /配置vpdn组

 request-dialin
  protocol pppoe
!
!
isdn switch-type primary-net5       /启用ISDN 交换类型
!
!!
voice class codec 88                   /配置语音编码类型组
 codec preference 1 g729r8
 codec preference 2 g729br8
 codec preference 3 g723ar63
 codec preference 4 g723ar53
 codec preference 5 g723r63
 codec preference 6 g723r53
 codec preference 7 g711ulaw
 codec preference 8 g711alaw
!
!
!
controller E1 0/0                                    

 framing NO-CRC4                     / 不校验
 clock source internal                  /设置始终端,如果设置不对,电话传真会有问题
 pri-group timeslots 1-31           /设置E1通道
!
!
!
!
interface Tunnel13
 description link to HK-3640
 ip address 10.13.0.102 255.255.255.0            /配置隧道地址
 ip nhrp authentication test                                /设置NHRP验证
 ip nhrp map 10.13.0.1  x.x.x.x                        /设置NHRP单播映射视图
 ip nhrp map multicast  x.x.x.x                         /设置NHRP组播映射视图
 ip nhrp network-id 100000                           /设置网络id号
 ip nhrp holdtime 300                                     /设置超时时间
 ip nhrp nhs 10.13.0.1                                   /设置NHRP服务器地址
 tunnel source Dialer0                                    /设置源地址
 tunnel destination x.x.x.x                              /设置远端地址
 tunnel key 500                                             /设置隧道key
!
interface Ethernet0/0
 no ip address
 ip nat outside
 half-duplex
 pppoe enable
 pppoe-client dial-pool-number 1                /设置该端口pppoe拨号
!
interface Serial0/0:15                                  /设置虚拟ISDN接口
 no ip address
 no logging event link-status
 isdn switch-type primary-net5                     /设置ISDN 交换类型
 isdn overlap-receiving T302 3000               /设置逐位接收等待时间
 isdn not-end-to-end 64                               
 isdn incoming-voice network                      /设置端口为网络端
  isdn send-alerting                                     
 isdn sending-complete
 no cdp enable
!
interface Ethernet0/1
 ip address 192.167.102.1 255.255.255.0
 half-duplex
 ip nat inside
!
interface Dialer0                                   /设置虚拟模板
 ip address negotiated
 ip mtu 1492
 ip nat outside
 encapsulation ppp
 dialer pool 1
 dialer-group 1
 fair-queue 64 16 1
 ppp authentication pap callin
 ppp pap sent-username szDSL1111@16900.gd password 7 075E731F1A5C4F
 ip rtp reserve 2000 16383
!
router eigrp 2
 network 10.13.0.0 0.0.0.255
 network 192.167.102.0
 no auto-summary
 no eigrp log-neighbor-changes
!
ip nat inside source list 11 interface Dialer0 overload
ip classless
ip route 0.0.0.0 0.0.0.0 Dialer0
no ip http server
ip pim bidir-enable
!
!
access-list 11 permit 192.167.102.0 0.0.0.255
!
call rsvp-sync
!
voice-port 0/0:15                         
 cptone CN                         /设置编码为中国
 bearer-cap Speech          

!
dial-peer voice 8166 voip            /设置拨号对等体
 preference 1
 destination-pattern .T
 progress_ind alert enable 8
 progress_ind progress enable 8
 session target ipv4:10.10.10.28
 tech-prefix 7100
 dtmf-relay cisco-rtp rtp-nte h245-signal h245-alphanumeric         
 fax-relay ecm disable
 fax rate 9600
 fax protocol t38 ls-redundancy 1 hs-redundancy 1
!
dial-peer voice 15 voip
 incoming called-number 8166T
 voice-class codec 88
 dtmf-relay cisco-rtp rtp-nte h245-signal h245-alphanumeric
 fax-relay ecm disable
 fax rate 9600
 fax protocol t38 ls-redundancy 1 hs-redundancy 1
!
dial-peer voice 34 voip
 preference 2
 destination-pattern .T
 progress_ind alert enable 8
 progress_ind progress enable 8
 session target ipv4:10.10.10.8
 tech-prefix 7100
 dtmf-relay cisco-rtp rtp-nte h245-signal h245-alphanumeric
 fax-relay ecm disable
 fax rate 9600
 fax protocol t38 ls-redundancy 1 hs-redundancy 1
!
dial-peer voice 15 pots
 destination-pattern 1111T
 direct-inward-dial
 port 0/0:15
!
dial-peer voice 33 pots
 incoming called-number .T
 direct-inward-dial
 port 0/0:15
!