關於E1接入的voip—gateway的配置

現在非常流行voip技術,這技術能讓企業節約電話費用。於是許多大企業都部署了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 [email protected] 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
!

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章