SIP Trunk
SIP Trunk
SIP Trunk
!
redundancy
!
ip ssh version 2
!
interface FastEthernet0/0
ip address x.x.x.x 255.255.255.0 ! IP address on local network
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
ip forward-protocol nd
no ip http server
no ip http secure-server
!
ip route 0.0.0.0 0.0.0.0 x.x.x.x ! Default route out of default gateway to get internet access
!
control-plane
!
mgcp profile default
!
dial-peer voice 1 voip
description *Incoming from Sipgate*
translation-profile incoming INCOMING
session protocol sipv2
session target sip-server
incoming called-number .
voice-class codec 1
voice-class sip dtmf-relay force rtp-nte
dtmf-relay rtp-nte
ip qos dscp cs5 media
ip qos dscp cs4 signaling
no vad
!
dial-peer voice 3 voip
description *Outbound to Sipgate*
translation-profile outgoing OUTGOING
destination-pattern 8.T ! Number to dial for an outside line, Ive used an 8
session protocol sipv2
session target dns:sipgate.co.uk
session transport udp
voice-class codec 1
voice-class sip dtmf-relay force rtp-nte
dtmf-relay rtp-nte
clid network-number xxxxxxx ! Replace with your sipgate ID
no vad
!
sip-ua
credentials username xxxxxxx password 7 xxxxxxx realm sipgate.co.uk ! Replace with sipgate ID and password
authentication username xxxxxxx password 7 xxxxxxx ! Replace with sipgate ID and password
no remote-party-id
retry invite 5
retry register 10
timers connect 100
registrar dns:sipgate.co.uk:5060 expires 3600
sip-server dns:sipgate.co.uk:5050
!
telephony-service
srst mode auto-provision none
max-ephones 10
max-dn 20
ip source-address x.x.x.x port 2000 ! I used the IP address assigned above to fa0/0
system message Cisco Test Lab ! Message is displayed on the phone
network-locale GB
time-zone 22
date-format dd-mm-yy
max-conferences 4 gain -6
dn-webedit
time-webedit
transfer-system full-consult
create cnf-files version-stamp 7960 Sep 03 2014 15:44:37
!
ephone-dn 1 dual-line
number xxxxxxx ! Sipgate username / phone id
!
ephone 1
device-security-mode none
mac-address XXXX.XXXX.XXXX ! mac address of my IP phone
type CIPC
button 1:1
!
line con 0
line aux 0
line vty 0 4
password xxxxxxxxx
transport input ssh
!
scheduler allocate 20000 1000
ntp server 192.168.5.1
end