一个典型的PRI信令落地网关的配置(基于AS5300)
sunspirit0(sunspirit)
gw#sh run
Building configuration...
Current configuration:
!
version 12.0
service timestamps debug datetime msec
service timestamps log datetime msec
no service passWord-encryption
!
hostname gw
!
logging buffered 512000 debugging
aaa new-model
aaa authentication login h323 group radius
aaa authorization exec h323 group radius
aaa accounting connection h323 start-stop group radius
enable secret 5 $1$aMLK$zXdTpKewvyZ/H4pNGMTEr.
!
username cisco password 0 cisco
!
!
resource-pool disable
resource-pool call treatment resource channel-not-available
!
!
!
!
!
clock timezone beijing 8
clock calendar-valid
ip subnet-zero
no ip domain-lookup
ip domain-name x.net.cn
ip name-server x.x.x.x
!
isdn switch-type primary-net5
isdn voice-call-failure 0
mta receive maximum-recipients 1
!
dial-control-mib retain-timer 60
dial-control-mib max-size 1200
!
controller E1 0
framing NO-CRC4
clock source line primary
pri-group timeslots 1-31
!
controller E1 1
framing NO-CRC4
clock source line secondary 1
pri-group timeslots 1-31
!
controller E1 2
framing NO-CRC4
clock source line secondary 2
pri-group timeslots 1-31
!
controller E1 3
framing NO-CRC4
clock source line secondary 3
pri-group timeslots 1-31
!
!
voice-port 0:D
cptone GB
timeouts call-disconnect 0
!
voice-port 1:D
cptone GB
timeouts call-disconnect 0
!
voice-port 2:D
cptone GB
timeouts call-disconnect 0
!
voice-port 3:D
cptone GB
timeouts call-disconnect 0
gw-accounting h323 vsa
!
voice class codec 88
codec preference 1 g729br8 bytes 50
codec preference 3 g729r8 bytes 50
codec preference 5 g723ar53
codec preference 6 g723ar63 bytes 144
codec preference 7 g723r53
codec preference 8 g723r63 bytes 120
!
!
dial-peer voice 500021 pots
destination-pattern 021T
port 0:D
!
dial-peer voice 502110 pots
destination-pattern 021T
port 1:D
!
dial-peer voice 502021 pots
destination-pattern 021T
port 2:D
!
dial-peer voice 503021 pots
destination-pattern 021T
port 3:D
!
dial-peer voice 510021 pots
destination-pattern 8621T
port 0:D
!
dial-peer voice 511021 pots
destination-pattern 8621T
port 1:D
!
dial-peer voice 512021 pots
destination-pattern 8621T
port 2:D
!
dial-peer voice 513021 pots
destination-pattern 8621T
port 3:D
!
gateway
!
interface Loopback0
ip address x.x.x.x 255.255.255.255
no ip directed-broadcast
h323-gateway voip interface
h323-gateway voip id xxxx ipaddr x.x.x.x 1719
h323-gateway voip h323-id xxxx
h323-gateway voip tech-prefix x#
!
interface Ethernet0
no ip address
no ip directed-broadcast
no ip route-cache
no ip mroute-cache
shutdown
!
interface Serial0
no ip address
no ip directed-broadcast
no ip route-cache
no ip mroute-cache
shutdown
no fair-queue
clockrate 2015232
!
interface Serial1
no ip address
no ip directed-broadcast
no ip route-cache
no ip mroute-cache
shutdown
no fair-queue
clockrate 2015232
!
interface Serial2
no ip address
no ip directed-broadcast
no ip route-cache
no ip mroute-cache
shutdown
no fair-queue
clockrate 2015232
!
interface Serial3
no ip address
no ip directed-broadcast
no ip route-cache
no ip mroute-cache
shutdown
no fair-queue
clockrate 2015232
!
interface Serial0:15
no ip address
no ip directed-broadcast
isdn switch-type primary-net5
isdn incoming-voice modem
isdn T203 30000
isdn send-alerting
isdn sending-complete
fair-queue 64 256 0
no cdp enable
!
interface Serial1:15
no ip address
no ip directed-broadcast
isdn switch-type primary-net5
isdn incoming-voice modem
isdn T203 30000
isdn send-alerting
isdn sending-complete
fair-queue 64 256 0
no cdp enable
!
interface Serial2:15
no ip address
no ip directed-broadcast
isdn switch-type primary-net5
isdn incoming-voice modem
isdn T203 30000
isdn send-alerting
isdn sending-complete
fair-queue 64 256 0
no cdp enable
!
interface Serial3:15
no ip address
no ip directed-broadcast
isdn switch-type primary-net5
isdn incoming-voice modem
isdn T203 30000
isdn send-alerting
isdn sending-complete
fair-queue 64 256 0
no cdp enable
!
interface FastEthernet0
no ip address
no ip directed-broadcast
no ip route-cache
no ip mroute-cache
duplex auto
speed auto
!
ip classless
ip route 0.0.0.0 0.0.0.0 x.x.x.x
ip http server
!
ip radius source-interface Loopback0
logging trap errors
logging x.x.x.x
snmp-server engineID local 00000009020000024B00107A
snmp-server community public view v1default RO
snmp-server community snmp view v1default RO
snmp-server packetsize 4096
snmp-server enable traps syslog
snmp-server enable traps voice poor-qov
snmp-server host x.x.x.x public
snmp-server host x.x.x.x public
snmp-server host x.x.x.x snmp
snmp-server host x.x.x.x snmp
!
radius-server host x.x.x.x auth-port 1645 acct-port 1646
radius-server host x.x.x.x auth-port 1675 acct-port 1676
radius-server timeout 3
radius-server deadtime 5
radius-server key xxxx
radius-server vsa send accounting
radius-server vsa send authentication
!
line con 0