You are on page 1of 4

SIP trunk

Between sipgate.co.uk and a Cisco 2811


I wasnt able to get Call Manager to work with a sip trunk directly to my sip provider, in this
case sipgate.co.uk so I looked at other methods of achieving this.
This configuration enables a SCCP phone to work with a Cisco router with internet
connectivity to my sipgate account, allowing me to place and receive calls.
Used the following device/IOS for this configuration:
Cisco2811#show ver
Cisco IOS Software, 2800 Software (C2800NM-ADVENTERPRISEK9-M), Version 15.1(4)M8, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2014 by Cisco Systems, Inc.
Compiled Fri 07-Mar-14 08:19 by prod_rel_team
ROM: System Bootstrap, Version 12.4(13r)T, RELEASE SOFTWARE (fc1)
Cisco2811 uptime is 2 hours, 4 minutes
System returned to ROM by reload at 11:03:36 GMT Fri Sep 5 2014
System restarted at 11:05:43 GMT Fri Sep 5 2014
System image file is "flash:c2800nm-adventerprisek9-mz.151-4.M8.bin"
Last reload type: Normal Reload
This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.
A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
If you require further assistance please contact us by sending email to
export@cisco.com.
Cisco 2811 (revision 1.0) with 249856K/12288K bytes of memory.
Processor board ID XXXXXXXXXX
2 FastEthernet interfaces
1 Virtual Private Network (VPN) Module
DRAM configuration is 64 bits wide with parity enabled.
239K bytes of non-volatile configuration memory.
250368K bytes of ATA CompactFlash (Read/Write)
License Info:
License UDI:
------------------------------------------------Device#
PID
SN
------------------------------------------------*0
CISCO2811
XXXXXXXXXX
Configuration register is 0x2102
Cisco2811#

Working Configuration on the router:


Cisco2811#sh run
Current configuration : 5124 bytes
!
! Last configuration change at 14:30:31 GMT Fri Sep 5 2014 by sam
! NVRAM config last updated at 14:30:32 GMT Fri Sep 5 2014 by sam
! NVRAM config last updated at 14:30:32 GMT Fri Sep 5 2014 by sam
version 15.1
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Cisco2811
!
boot-start-marker
boot-end-marker
!
logging buffered 4096
enable secret 5 $1$qPlR$dz1Q1asdNN8pUEY7S1L1W/
!
aaa new-model
!
aaa authentication login ssh local
!
aaa session-id common
!
clock timezone GMT 1 0
!
dot11 syslog
ip source-route
no ip icmp rate-limit unreachable
!
ip cef
!
ip domain name cisco.com
ip name-server x.x.x.x ! IP address of the dns server
no ipv6 cef
!
multilink bundle-name authenticated
!
voice service voip
ip address trusted list
ipv4 217.10.79.0 255.255.255.0 ! IP subnet for sipgate.co.uk trusted for incoming calls
allow-connections h323 to sip
allow-connections sip to h323
allow-connections sip to sip
no supplementary-service sip moved-temporarily
no supplementary-service sip refer
redirect ip2ip
sip
registrar server expires max 1200 min 60
!
voice class codec 1
codec preference 1 g729r8
!
voice translation-rule 1
rule 1 /^8/ //
!
voice translation-rule 2
rule 1 // /8/
!
voice translation-profile INCOMING
translate calling 2
!
voice translation-profile OUTGOING
translate called 1
!
voice-card 0
!
crypto pki token default removal timeout 0
!
crypto pki trustpoint TP-self-signed-960700599
enrollment selfsigned
subject-name cn=IOS-Self-Signed-Certificate-960700599
revocation-check none
rsakeypair TP-self-signed-960700599
!
license udi pid CISCO2811 sn XXXXXXXXXX
username cisco privilege 15 password 0 cisco123

!
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

Some references used:


Toll-Fraud Prevention Feature in IOS Release 15.1(2)T
http://www.cisco.com/c/en/us/support/docs/voice/call-routing-dial-plans/112083-tollfraud-ios.html
Vladimr Toncar VoIP Protocols: SIP Call Flow
http://toncar.cz/Tutorials/VoIP/VoIP_Protocols_SIP_Call_Flow.html
(CME) SIP Trunking Configuration Example
http://www.cisco.com/c/en/us/support/docs/voice-unified-communications/unified-communications-manager-express/91535cme-sip-trunking-config.html
Configuring SIP Trunk Registration
http://www.cisco.com/c/en/us/td/docs/ios-xml/ios/voice/cube_sipsip/configuration/xe-3s/asr1000/cube-sipsip-xe-3s-asr1000-book/voi-siptrunk-reg.html

You might also like