原创:CISCO语音网关配置

来源:本站原创 Voice 超过4,058 views围观 0条评论

xx#show run
hostname xx
!
boot-start-marker
boot-end-marker
!
enable password 
!
no aaa new-model
!
dot11 syslog
ip source-route
!
!        
ip cef
ip dhcp excluded-address  .9.1  .9.10
!
ip dhcp pool 1
   network  .8.0 255.255.255.0
   default-router  .8.253
   dns-server .65.70
   lease 365
!
!
ip domain name yourdomain.com
no ipv6 cef
multilink bundle-name authenticated
!
!
!
!
!
!
!
!
!
voice translation-rule 1
rule 1 /9400\(.*$\)/ /400\1/
!
!
voice translation-profile 1
translate called 1
!
!
voice-card 0
!
!
application
service aa flash:its-CISCO.2.0.1.0.tcl
  param operator 5502
  paramspace english index 1
  paramspace english languege en
  paramspace english location flash:
  paramspace english prefix en
  param welcome-prompt welcome.au
  param aa-pilot 1000
!
!
!
crypto pki certificate chain TP-self-signed-1171818841
certificate self-signed 01
        quit
!
!
license udi pid CISCO2821 sn 
username   password 0 
!
!
!
!
!
!
!
interface GigabitEthernet0/0
description $ETH-LAN$$ETH-SW-LAUNCH$$INTF-INFO-GE 0/0$
ip address  .8.253 255.255.255.128
duplex auto
speed auto
!
interface GigabitEthernet0/1
ip address  .8.253 255.255.255.0
duplex auto
speed auto
h323-gateway voip interface
h323-gateway voip bind srcaddr  .8.253
!
interface Async1
ip unnumbered GigabitEthernet0/1
encapsulation ppp
dialer in-band
dialer-group 1
peer default ip address pool aux
async mode dedicated
no keepalive
ppp authentication chap
routing dynamic
!
ip local pool aux  .8.200  .8.210
ip forward-protocol nd
ip http server
ip http authentication local
ip http secure-server
ip http timeout-policy idle 60 life 86400 requests 10000
ip http path flash:gui
!
!
ip route 0.0.0.0 0.0.0.0  .8.129
!
access-list 23 permit  .10.0 0.0.0.7
!
!
tftp-server flash:phone/7940-7960/P00308000500.bin alias P00308000500.bin
tftp-server flash:phone/7940-7960/P00308000500.loads alias P00308000500.loads
tftp-server flash:phone/7940-7960/P00308000500.sb2 alias P00308000500.sb2
tftp-server flash:phone/7940-7960/P00308000500.sbn alias P00308000500.sbn
!
control-plane
!
!
voice-port 0/2/0
timeouts call-disconnect 0
timeouts wait-release 1
connection plar 5502
caller-id enable
!
voice-port 0/2/1
timeouts call-disconnect 0
timeouts wait-release 1
connection plar 5502
caller-id enable
!
voice-port 0/2/2
timeouts call-disconnect 0
timeouts wait-release 1
connection plar 5502
caller-id enable
!
voice-port 0/2/3
timeouts call-disconnect 0
timeouts wait-release 1
connection plar 5502
caller-id enable
!
!
!
!
dial-peer cor custom
name local
name pstn
!
!
dial-peer cor list local
member local
!
dial-peer cor list css-local
member local
!
dial-peer cor list block
!
dial-peer cor list pstn
member pstn
!
!
dial-peer voice 55 voip
corlist incoming local
corlist outgoing local
preference 1
destination-pattern 55..
session target ipv4: .8.253
dtmf-relay h245-alphanumeric
codec g711ulaw
!        
dial-peer voice 9 pots
corlist outgoing pstn
destination-pattern 9T
progress_ind alert enable 8
progress_ind progress enable 8
progress_ind connect enable 8
translate-outgoing calling 1
port 0/2/0
!
dial-peer voice 99 pots
corlist outgoing pstn
destination-pattern 9T
progress_ind alert enable 8
progress_ind progress enable 8
progress_ind connect enable 8
translate-outgoing calling 1
direct-inward-dial
port 0/2/1
!
dial-peer voice 999 pots
corlist outgoing pstn
destination-pattern 9T
progress_ind alert enable 8
progress_ind progress enable 8
progress_ind connect enable 8
translate-outgoing calling 1
direct-inward-dial
port 0/2/2
!
dial-peer voice 9999 pots
corlist outgoing pstn
destination-pattern 9T
progress_ind alert enable 8
progress_ind progress enable 8
progress_ind connect enable 8
translate-outgoing calling 1
direct-inward-dial
port 0/2/3
!
dial-peer voice 8 pots
corlist outgoing pstn
preference 1
service aa
destination-pattern 90T
progress_ind alert enable 8
progress_ind progress enable 8
progress_ind connect enable 8
translate-outgoing calling 1
direct-inward-dial
port 0/2/0
prefix 179090
!
dial-peer voice 88 pots
corlist outgoing pstn
preference 1
service aa
destination-pattern 90T
progress_ind alert enable 8
progress_ind progress enable 8
progress_ind connect enable 8
translate-outgoing calling 1
direct-inward-dial
port 0/2/1
prefix 179090
!
dial-peer voice 888 pots
corlist outgoing pstn
preference 1
service aa
destination-pattern 90T
progress_ind alert enable 8
progress_ind progress enable 8
progress_ind connect enable 8
translate-outgoing calling 1
direct-inward-dial
port 0/2/2
prefix 179090
!
dial-peer voice 8888 pots
corlist outgoing pstn
preference 1
service aa
destination-pattern 90T
progress_ind alert enable 8
progress_ind progress enable 8
progress_ind connect enable 8
translate-outgoing calling 1
direct-inward-dial
port 0/2/3
prefix 179090
!
dial-peer voice 10 voip
corlist outgoing local
translation-profile incoming local
translation-profile outgoing local
service aa
destination-pattern 1000
session target ipv4:.8.253
dtmf-relay h245-alphanumeric
codec g711ulaw
no vad
!
!
!
telephony-service
max-ephones 30
max-dn 30
ip source-address .8.253 port 2000
auto assign 2 to 9
auto assign 2 to 11
load 7960-7940 P00308000500
time-format 24
max-conferences 8 gain -6
call-forward pattern T
call-forward pattern .T
web admin system name cmeadmin password  ,123
time-webedit
transfer-system full-consult
transfer-pattern .T
create cnf-files version-stamp Jan 01 2999 00:00:00
!
!
ephone-dn  1  dual-line
!
!
ephone-dn  2  dual-line
number 5502
!
!
ephone-dn  3  dual-line
number 5503
call-forward busy 5502
call-forward noan 5502 timeout 10
!
!
ephone-dn  4  dual-line
number 5501
call-forward busy 5502
call-forward noan 5502 timeout 10
!
!
ephone-dn  5  dual-line
number 5505
call-forward busy 5502
call-forward noan 5502 timeout 10
!
!
ephone-dn  6  dual-line
number 5500
call-forward busy 5502
call-forward noan 5502 timeout 10
!
!
ephone-dn  7  dual-line
number 5507
call-forward busy 5502
call-forward noan 5502 timeout 10
!
!
ephone-dn  8  dual-line
number 5504
call-forward busy 5502
call-forward noan 5502 timeout 10
!
!
ephone-dn  9  dual-line
number 5509
call-forward busy 5502
call-forward noan 5502 timeout 10
!
!
ephone-dn  10  dual-line
number 5506
call-forward busy 5502
call-forward noan 5502 timeout 10
!
!
ephone-dn  11  dual-line
number 5508
call-forward busy 5502
call-forward noan 5502 timeout 10
!
!
ephone-dn  12  dual-line
number 5509
!
!
ephone  1
mac-address 9991.55D4.0139
type 7940
button  1:3
!
!
!
ephone  2
mac-address 999D.55D4.0303
paging-dn 1
type 7940
button  1:4
!
!
!
ephone  3
mac-address 9991.55D5.5CBD
paging-dn 10
type 7940
button  1:6 2:2
!
!
!
ephone  4
mac-address 9991.55D4.012C
type 7940
button  1:5
!
!
!
ephone  5
mac-address 9991.55D5.6281
type 7940
button  1:2 2:12
!
!
!
ephone  6
mac-address 9991.55D4.B023
type 7940
button  1:7
!
!        
!
ephone  7
mac-address 9991.55D4.0243
type 7940
button  1:8
!
!
!
ephone  8
mac-address 9991.5555.DA2B
type 7940
button  1:9
!
!
!
ephone  9
mac-address 9991.5555.DA7F
type 7940
button  1:10
!
!
!
ephone  10
mac-address 999D.041B.9270
type CIPC
!
!
!
ephone  11
mac-address 9991.55D4.0303
type 7940
button  1:11
!
!
!
ephone  12

文章出自:CCIE那点事 http://www.jdccie.com/ 版权所有。本站文章除注明出处外,皆为作者原创文章,可自由引用,但请注明来源。 禁止全文转载。
本文链接:http://www.jdccie.com/?p=1813转载请注明转自CCIE那点事
如果喜欢:点此订阅本站