!
version 15.1
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname CS5-3845-GW1
!
boot-start-marker
boot system flash:c3845-ipvoice-mz.151-0.24.T
boot-end-marker
!
card type t1 1 0
card type t1 1 1
card type t1 2 1
card type t1 3 1
card type t1 4 1
logging buffered 99999999
no logging console
!
no aaa new-model
clock timezone GMT -5
network-clock-participate slot 1 
network-clock-participate slot 2 
network-clock-participate slot 3 
network-clock-participate slot 4 
network-clock-participate wic 0 
network-clock-participate wic 1 
!
ip source-route
ip cef
!
!
!
!
ip domain name rtp.com
ip name-server 10.12.3.67
ip name-server 10.12.6.67
no ipv6 cef
multilink bundle-name authenticated
!
!
!
isdn switch-type primary-ni
!
voice-card 0
!
voice-card 1
!
voice-card 2
!
voice-card 3
!
voice-card 4
!
!
!
voice service voip
 cpa threshold noise-level max -45dBm0
 allow-connections sip to sip
 h323
 sip
  min-se 360 
  header-passing
!
voice class codec 1
 codec preference 1 g711ulaw
 codec preference 2 g729r8
!
!
!
!
voice translation-rule 1
 rule 1 /51......../ /5111111111/
 rule 2 /52......../ /5222222222/
 rule 3 /53......../ /5333333333/
!
!
voice translation-profile OO
 translate called 1
!
!
!
!
controller T1 0/0/0
 shutdown
 clock source internal
 pri-group timeslots 1-24
!
controller T1 0/0/1
 shutdown
 clock source internal
 pri-group timeslots 1-24
!
controller T1 0/1/0
 shutdown
 clock source internal
 pri-group timeslots 1-24
!
controller T1 0/1/1
 shutdown
 clock source internal
 pri-group timeslots 1-24
!
controller T1 1/0
 clock source internal
 pri-group timeslots 1-24
!
controller T1 1/1
 clock source internal
 pri-group timeslots 1-24
!
controller T1 1/0/0
 clock source internal
 cablelength long 0db
 pri-group timeslots 1-24
!
controller T1 1/0/1
 clock source internal
 cablelength long 0db
 pri-group timeslots 1-24
!
controller T1 2/0
 clock source internal
 pri-group timeslots 1-24
!
controller T1 2/1
 clock source internal
 pri-group timeslots 1-24
!
controller T1 2/0/0
 clock source internal
 pri-group timeslots 1-24
!
controller T1 2/0/1
 clock source internal
 pri-group timeslots 1-24
!
controller T1 3/0
 clock source internal
 pri-group timeslots 1-24
!
controller T1 3/1
 clock source internal
 pri-group timeslots 1-24
!
controller T1 3/0/0
 clock source internal
 pri-group timeslots 1-24
!
controller T1 3/0/1
 clock source internal
 pri-group timeslots 1-24
!
controller T1 4/0
 clock source internal
 pri-group timeslots 1-24
!
controller T1 4/1
 clock source internal
 pri-group timeslots 1-24
!
controller T1 4/0/0
 clock source internal
 pri-group timeslots 1-24
!
controller T1 4/0/1
 clock source internal
 pri-group timeslots 1-24
!
!
!
!
!
!
interface GigabitEthernet0/0
 ip address 10.12.7.178 255.255.255.248
 duplex full
 speed auto
 media-type rj45
!
interface GigabitEthernet0/1
 no ip address
 shutdown
 duplex auto
 speed auto
 media-type rj45
!
interface Serial0/0/0:23
 no ip address
 encapsulation hdlc
 isdn switch-type primary-ni
 isdn incoming-voice voice
 no cdp enable
!
interface Serial0/0/1:23
 no ip address
 encapsulation hdlc
 isdn switch-type primary-ni
 isdn incoming-voice voice
 no cdp enable
!
interface Serial0/1/0:23
 no ip address
 encapsulation hdlc
 isdn switch-type primary-ni
 isdn incoming-voice voice
 no cdp enable
!
interface Serial0/1/1:23
 no ip address
 encapsulation hdlc
 isdn switch-type primary-ni
 isdn incoming-voice voice
 no cdp enable
!
interface Serial1/0:23
 no ip address
 encapsulation hdlc
 isdn switch-type primary-ni
 isdn incoming-voice voice
 no cdp enable
!
interface Serial1/1:23
 no ip address
 encapsulation hdlc
 isdn switch-type primary-ni
 isdn incoming-voice voice
 no cdp enable
!
interface Serial1/0/0:23
 no ip address
 encapsulation hdlc
 isdn switch-type primary-ni
 isdn incoming-voice voice
 no cdp enable
!
interface Serial1/0/1:23
 no ip address
 encapsulation hdlc
 isdn switch-type primary-ni
 isdn incoming-voice voice
 no cdp enable
!
interface Serial2/0:23
 no ip address
 encapsulation hdlc
 isdn switch-type primary-ni
 isdn incoming-voice voice
 no cdp enable
!
interface Serial2/1:23
 no ip address
 encapsulation hdlc
 isdn switch-type primary-ni
 isdn incoming-voice voice
 no cdp enable
!
interface Serial2/0/0:23
 no ip address
 encapsulation hdlc
 isdn switch-type primary-ni
 isdn incoming-voice voice
 no cdp enable
!
interface Serial2/0/1:23
 no ip address
 encapsulation hdlc
 isdn switch-type primary-ni
 isdn incoming-voice voice
 no cdp enable
!
interface Serial3/0:23
 no ip address
 encapsulation hdlc
 isdn switch-type primary-ni
 isdn incoming-voice voice
 no cdp enable
!
interface Serial3/1:23
 no ip address
 encapsulation hdlc
 isdn switch-type primary-ni
 isdn incoming-voice voice
 no cdp enable
!
interface Serial3/0/0:23
 no ip address
 encapsulation hdlc
 isdn switch-type primary-ni
 isdn incoming-voice voice
 no cdp enable
!
interface Serial3/0/1:23
 no ip address
 encapsulation hdlc
 isdn switch-type primary-ni
 isdn incoming-voice voice
 no cdp enable
!
interface Serial4/0:23
 no ip address
 encapsulation hdlc
 isdn switch-type primary-ni
 isdn incoming-voice voice
 no cdp enable
!
interface Serial4/1:23
 no ip address
 encapsulation hdlc
 isdn switch-type primary-ni
 isdn incoming-voice voice
 no cdp enable
!
interface Serial4/0/0:23
 no ip address
 encapsulation hdlc
 isdn switch-type primary-ni
 isdn incoming-voice voice
 no cdp enable
!
interface Serial4/0/1:23
 no ip address
 encapsulation hdlc
 isdn switch-type primary-ni
 isdn incoming-voice voice
 no cdp enable
!
ip forward-protocol nd
!
!
no ip http server
ip route 0.0.0.0 0.0.0.0 10.12.7.177
!
!
!
!
control-plane
!
!
voice-port 0/0/0:23
!
voice-port 0/1/0:23
!
voice-port 0/0/1:23
!
voice-port 0/1/1:23
!
voice-port 1/0:23
!
voice-port 1/0/0:23
!
voice-port 1/1:23
!
voice-port 1/0/1:23
!
voice-port 2/0:23
!
voice-port 2/0/0:23
!
voice-port 2/1:23
!
voice-port 2/0/1:23
!
voice-port 3/0:23
!
voice-port 3/0/0:23
!
voice-port 3/1:23
!
voice-port 3/0/1:23
!
voice-port 4/0:23
!
voice-port 4/0/0:23
!
voice-port 4/1:23
!
voice-port 4/0/1:23
!
!
mgcp fax t38 ecm
!
!
dial-peer voice 1000 pots
 preference 1
 destination-pattern 5111111111
 no digit-strip
 direct-inward-dial
 port 1/0:23
!
dial-peer voice 1001 pots
 preference 1
 destination-pattern 5111111111
 no digit-strip
 direct-inward-dial
 port 1/1:23
!
dial-peer voice 1002 pots
 preference 1
 destination-pattern 5111111111
 no digit-strip
 direct-inward-dial
 port 2/0:23
!
dial-peer voice 1003 pots
 preference 1
 destination-pattern 5111111111
 no digit-strip
 direct-inward-dial
 port 2/1:23
!
dial-peer voice 1004 pots
 preference 1
 destination-pattern 5111111111
 no digit-strip
 direct-inward-dial
 port 3/0:23
!
dial-peer voice 1005 pots
 preference 1
 destination-pattern 5111111111
 no digit-strip
 direct-inward-dial
 port 3/1:23
!
dial-peer voice 1006 pots
 preference 1
 destination-pattern 5111111111
 no digit-strip
 direct-inward-dial
 port 4/0:23
!
dial-peer voice 1007 pots
 preference 1
 destination-pattern 5111111111
 no digit-strip
 direct-inward-dial
 port 4/1:23
!
dial-peer voice 1 voip
 translation-profile incoming OO
 session protocol sipv2
 incoming called-number 5.........
 codec g711ulaw
!
dial-peer voice 2 voip
 description catch all for refer
 destination-pattern 160....
 session protocol sipv2
 session target ipv4:1.1.1.1
 session transport udp
 dtmf-relay xyz-nte
 codec g711ulaw
 no vad
!
dial-peer voice 3 voip
 description catch all for refer
 destination-pattern 150....
 session protocol sipv2
 session target ipv4:1.1.1.1
 session transport udp
 dtmf-relay xyz-nte
 codec g711ulaw
 no vad
!
dial-peer voice 1008 pots
 preference 1
 destination-pattern 5111111111
 no digit-strip
 direct-inward-dial
 port 4/0/1:23
!
dial-peer voice 1009 pots
 preference 1
 destination-pattern 5111111111
 no digit-strip
 direct-inward-dial
 port 4/0/0:23
!
dial-peer voice 1010 pots
 preference 1
 destination-pattern 5111111111
 no digit-strip
 direct-inward-dial
 port 2/0/0:23
!
dial-peer voice 1011 pots
 preference 1
 destination-pattern 5111111111
 no digit-strip
 direct-inward-dial
 port 2/0/1:23
!
dial-peer voice 1012 pots
 preference 1
 destination-pattern 5111111111
 no digit-strip
 direct-inward-dial
 port 3/0/0:23
!
dial-peer voice 1013 pots
 preference 1
 destination-pattern 5111111111
 no digit-strip
 direct-inward-dial
 port 3/0/1:23
!
dial-peer voice 1022 pots
 preference 1
 destination-pattern 5111111111
 no digit-strip
 direct-inward-dial
 port 1/0/0:23
!
dial-peer voice 1023 pots
 preference 1
 destination-pattern 5111111111
 no digit-strip
 direct-inward-dial
 port 1/0/1:23
!
!
dial-peer hunt 1
gateway 
 timer receive-xyz 1200
!
sip-ua 
!
!
line con 0
line aux 0
line vty 0 4
 session-timeout 120 
 privilege level 15
 password xxxx
 no login
 transport input telnet
line vty 5 15
 privilege level 15
 login local
 transport input all
!
exception data-corruption buffer truncate
scheduler allocate 20000 1000
ntp server 10.12.7.98
end
