Sample Config


hostname "Customer_Name_PRI"

enable password Ironton3131

!

clock timezone -5-Eastern-Time

!

ip subnet-zero

ip classless

ip default-gateway X.X.X.X

ip routing

!

!

domain-proxy

name-server 8.8.8.8

!

!

no auto-config

!

no event-history

no logging forwarding

no logging email

!

no service password-encryption

!

username "admin" password "Ironton3131"

!

banner motd #

Access to this network is allowed only by authorized Ironton Telephone Personnel

.

Violators will be punished to the full extent of the law.

#

!

!

no ip firewall nat-preserve-source-port

no ip firewall alg msn

no ip firewall alg mszone

no ip firewall alg h323

!

!

!

!

!

no dot11ap access-point-control

!

!

!

!

!

!

!

!

!

!

!

!

!

!

interface eth 0/1

 ip address X.X.X.X 255.255.255.0

 media-gateway ip primary

 no shutdown

!

!

!

!

interface t1 0/1

 shutdown

!

interface t1 0/2

 tdm-group 1 timeslots 1-24 speed 64

 no shutdown

!

!

interface pri 1

 description pri 1

 isdn name-delivery setup

 connect t1 0/2 tdm-group 1

 digits-transferred 4 

 no shutdown

!

!

interface fxs 0/1

 shutdown

!

interface fxs 0/2

 shutdown

!

interface fxs 0/3

 shutdown

!

interface fxs 0/4

 shutdown

!

!

isdn-group 1

 connect pri 1

!

!

!

!

timing-source internal

!

!

!

!

!

!

ip route 0.0.0.0 0.0.0.0 10.0.10.1

!

no tftp server

no tftp server overwrite

http server

no http secure-server

no snmp agent

no ip ftp server

no ip scp server

no ip sntp server

!

!

!

!

!

!

!

!

sip

sip udp 5060

no sip tcp

!

!

!

voice feature-mode network

voice flashhook mode transparent

voice forward-mode network

voice call-appearance-mode single

voice conferencing-mode local

!

!

!

!

voice spre 1 *XX

!

!

!

!

voice dial-plan 1 local NXX-NXX-XXXX

voice dial-plan 2 long-distance 1-NXX-NXX-XXXX

voice dial-plan 3 international 011$

!

!

!

!

voice codec-list ITCGN_Default

 default

 codec g711ulaw

 codec g729

!

!

!

voice trunk T01 type sip

 description "VoIP Trunk To ITCGN"

 match dnis "NXXNXXXXXX" substitute "1NXXNXXXXXX"

 sip-server primary 204.186.16.118

 sip-server secondary 204.186.16.116

 registrar primary 204.186.16.118

 dial-string source to

 register 16105551212

 codec-list ITCGN_Default both

 authentication username "16105551212" password "xxxxx"

!

voice trunk T02 type isdn

 description "TDM Trunk To CPE"

 resource-selection linear ascending

 connect isdn-group 1

 early-cut-through

 match dnis "1NXXNXXXXXX" substitute "NXXNXXXXXX"

 modem-passthrough

 t38

 rtp delay-mode adaptive

 codec-list ITCGN_Default

!

!

voice grouped-trunk ITCGNVOIPTRUNKGROUP

 trunk T01

 accept $ cost 0

!

!

voice grouped-trunk CPETDMTRUNKGROUP

 trunk T02

 accept $ cost 0

!

!

voice grouped-trunk ITCGN_VOIPTRUNKGROUP

 trunk T01

 accept $ cost 0

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

sip proxy allowed-servers 204.186.16.116

sip proxy allowed-servers 204.186.16.118

sip proxy allowed-servers 207.44.66.249

!

!

!

!

!

!

!

!

!

!

!

ip rtp udp 19560

!

!

!

line con 0

 login

!

line telnet 0 4

 login

 password Ironton3131

 no shutdown

line ssh 0 4

 login local-userlist

 no shutdown

!

sntp server pool.ntp.org

!

!

!

!

end