...
Provided by: Staffan Kerker
xecsuser:Configuring a Cisco 2811 Router for use as a PSTN gateway with sipXecs
Cisco Configuration Info for IOS 12.2
...
Enabling FXS interface registration on Cisco SIP Gateway: clock timezone GMT -5
ip subnet-zero
!
!
ip tcp path-mtu-discovery
ip domain list pingtel.com
ip domain name pingtel.com
ip name-server 10.1.#.##
!
!
!
template mon
!
!
voice call carrier capacity active
!
voice service voip
sip
!
voice class codec 1
codec preference 1 g711ulaw
codec preference 2 g711alaw
codec preference 3 g729br8
!
!
!
!
!
!
!
!
voice source-group secured
access-list 1
disconnect-cause call-reject
!
!
fax interface-type fax-mail
mta receive maximum-recipients 0
!
!
!
!
interface Ethernet0/0
ip address 10.1.##.# 255.255.###.#
no ip mroute-cache
half-duplex
!
interface Ethernet0/1
ip address 10.1.##.# 255.255.###.#
no ip mroute-cache
shutdown
full-duplex
!
ip default-gateway 10.1.##.#
ip classless
ip route 0.0.0.0 0.0.0.0 10.1.##.#
ip route 10.1.#.# 255.255.###.# 10.1.##.#
no ip http server
!
!
logging 10.1.#.##
!
snmp-server packetsize 4096
snmp-server enable traps tty
call rsvp-sync
!
voice-port 1/0/0
input gain 8
no vad
connection plar 100
description SIPxchange1
caller-id enable
supervisory disconnect dualtone pre-connect
supervisory answer dualtone
!
voice-port 1/0/1
input gain 8
no vad
connection plar 100
description SIPxchange2
caller-id enable
supervisory disconnect dualtone pre-connect
supervisory answer dualtone
!
voice-port 1/1/0
input gain 8
no vad
connection plar 100
description SIPxchange3
caller-id enable
supervisory disconnect dualtone pre-connect
supervisory answer dualtone
!
voice-port 1/1/1
input gain 8
no vad
connection plar 100
description SIPxchange4
caller-id enable
supervisory disconnect dualtone pre-connect
supervisory answer dualtone
!
!
mgcp profile default
!
dial-peer cor custom
!
!
!
dial-peer voice 100 voip
huntstop
application session
destination-pattern ...
rtp payload-type nte 98
voice-class codec 1
session protocol sipv2
session target sip-server
dtmf-relay rtp-nte
!
dial-peer voice 10 pots
huntstop
application session
destination-pattern 1..........
port 1/0/0
forward-digits all
!
dial-peer voice 11 pots
huntstop
application session
destination-pattern 1..........
port 1/0/1
forward-digits all
!
dial-peer voice 12 pots
huntstop
application session
destination-pattern 1..........
port 1/1/0
forward-digits all
!
dial-peer voice 13 pots
huntstop
application session
destination-pattern 1..........
port 1/1/1
forward-digits all
!
dial-peer voice 30 pots
huntstop
application session
destination-pattern 911$
port 1/0/0
forward-digits all
!
dial-peer voice 31 pots
huntstop
application session
destination-pattern 911$
port 1/1/0
forward-digits all
!
dial-peer voice 32 pots
huntstop
application session
destination-pattern 911$
port 1/0/1
forward-digits all
!
dial-peer voice 33 pots
huntstop
application session
destination-pattern 911$
port 1/1/1
forward-digits all
!
dial-peer voice 40 pots
huntstop
application session
destination-pattern 411$
port 1/0/0
forward-digits all
!
dial-peer voice 41 pots
huntstop
application session
destination-pattern 411$
port 1/1/0
forward-digits all
!
dial-peer voice 50 pots
huntstop
application session
destination-pattern 9...$
port 1/0/0
forward-digits 3
!
dial-peer voice 51 pots
huntstop
application session
destination-pattern 9...$
port 1/0/1
forward-digits 3
!
dial-peer voice 52 pots
huntstop
application session
destination-pattern 9...$
port 1/1/0
forward-digits 3
! dial-peer voice 53 pots
huntstop
application session
destination-pattern 9...$
port 1/1/1
forward-digits 3
!
dial-peer voice 20 pots
huntstop
application session
destination-pattern .......$
port 1/0/0
forward-digits all
prefix 1781
!
dial-peer voice 21 pots
huntstop
application session
destination-pattern .......$
port 1/0/1
forward-digits all
prefix 91781
!
dial-peer voice 22 pots
huntstop
application session
destination-pattern .......$
port 1/1/0
forward-digits all
prefix 91781
!
dial-peer voice 23 pots
huntstop
application session
destination-pattern .......$
no digit-strip
port 1/1/1
forward-digits all
prefix 91781
!
dial-peer voice 14 pots
huntstop
application session
destination-pattern ..........
port 1/0/0
forward-digits all
prefix 1
!
dial-peer voice 15 pots
huntstop
application session
destination-pattern ..........
port 1/0/1
forward-digits all
prefix 1
!
dial-peer voice 16 pots
huntstop
application session
destination-pattern ..........
port 1/1/0
forward-digits all
prefix 1
!
dial-peer voice 17 pots
huntstop
application session
destination-pattern ..........
port 1/1/1
forward-digits all
prefix 1
!
dial-peer voice 60 pots
huntstop
application session
destination-pattern 011.+
port 1/0/0
forward-digits all
!
dial-peer voice 61 pots
huntstop
application session
destination-pattern 011.+
port 1/0/1
forward-digits all
!
dial-peer voice 62 pots
huntstop
application session
destination-pattern 011.+
port 1/1/0
forward-digits all
!
dial-peer voice 63 pots
huntstop
application session
destination-pattern 011.+
port 1/1/1
forward-digits all
!
dial-peer voice 70 pots
huntstop
application session
destination-pattern 00$
port 1/0/0
forward-digits all
!
dial-peer voice 71 pots
huntstop
application session
destination-pattern 00$
port 1/1/0
forward-digits all
!
dial-peer voice 72 pots
huntstop
application session
destination-pattern 00$
port 1/0/1
forward-digits all
!
dial-peer voice 73 pots
huntstop
application session
destination-pattern 00$
port 1/1/1
forward-digits all
!
dial-peer voice 101 voip
huntstop
application session
destination-pattern [xecsuser:A-Z].....................
rtp payload-type nte 98
voice-class codec 1
session protocol sipv2
session target sip-server
dtmf-relay rtp-nte
!
dial-peer voice 130 pots
huntstop
application session
destination-pattern 0$
port 1/0/0
forward-digits all
!
dial-peer voice 131 pots
huntstop
application session
destination-pattern 0$
port 1/1/0
forward-digits all
!
dial-peer voice 132 pots
huntstop
application session
destination-pattern 0$
port 1/0/1
forward-digits all
!
dial-peer voice 133 pots
huntstop
application session
destination-pattern 0$
port 1/1/1
forward-digits all
!
gateway
timer receive-rtcp 5
!
sip-ua
max-forwards 15
no oli
sip-server dns:pingtel.com
!
!
line con 0
exec-timeout 0 0
line aux 0
exec-timeout 0 0
line vty 0 4
exec-timeout 0 0
password sip
login
line vty 5 15
login
!
ntp clock-period 17181250
ntp source Ethernet0/0
ntp server 192.43.244.18
!
end
...