SRST Template

If 9 for outside line is been removed on CUCM then need to add TP on GW to remove it in SRST Mode
voice translation-rule 50
rule 1 /^9\([2-8].....$\)/ /\1/
rule 2 /^9\(0[12].........\)/ /\1/
rule 3 /^9\(07.........\)/ /\1/
rule 4 /^9\(00\)/ /\1/
rule 5 /^9\(0800\)/ /\1/
rule 6 /^\([578]...$\)/ /++44123333\1/
voice translation-profile FailoverOperator
translate called 50

Internal range is either 5XXX 7XXX 8XXX and E164 reg phone are +44123333[578]XXX
voice translation-rule 60
rule 1 /^\([578]...$\)/ /+44123333\1/
rule 2 /^0$/ /+441233335000/
voice translation-profile SRST_FWDALL_4DIGIT
translate called 60

Dial peer when user dials 4 digit extension in SRST expand to E164
dial-peer voice 1005 voip
description SRST_FWDALL_4DIGIT
translation-profile outgoing SRST_FWDALL_4DIGIT
preference 5 !We route base on preference not longest digit match.
service session
destination-pattern [578]...$
progress_ind progress enable 8
modem passthrough nse codec g711ulaw
session protocol sipv2
session target ipv4:10.1.1.1
voice-class codec 1
dtmf-relay rtp-nte
fax rate 14400
ip qos dscp cs3 signaling
no vad

Dial peer when user press 0 in SRST
dial-peer voice 1011 voip
description SRST_Recepcion_4Digit
translation-profile outgoing SRST_FWDALL_4DIGIT
preference 1
service session
destination-pattern ^0$
progress_ind progress enable 8
modem passthrough nse codec g711ulaw
session protocol sipv2
session target ipv4:10.64.128.20
voice-class codec 1
dtmf-relay rtp-nte
fax rate 14400
ip qos dscp cs3 signaling
no vad

Route base on preference not longest digit match. After SRST mode not all ephone/ephone-dn un-register and call gets router to there dial-peers were no phones are registered with them. This gets round that
dial-peer hunt ?
dial-peer hunt 2

If extension number has not been allocated stop hunting through dial-peers. Stops it matching .T pattern on dialpeer and call going out to the PSTN
no voice hunt unassigned-number

interface Loopback0
ip address 10.1.1.1 255.255.255.255
!
call-manager-fallback
max-conferences 8 gain -6
transfer-system full-consult
timeouts interdigit 5
ip source-address 10.1.1.1 port 2000
max-ephones 500
max-dn 4 preference 9
system message primary IN SRST MODE
system message secondary IN SRST MODE
transfer-pattern ....
translation-profile incoming FailoverOperator
moh "SilenceAudioSource.wav"
multicast moh 239.1.1.1 port 16384 route 10.1.1.1

About Alexis Katsavras

Working as Freelance Cisco Unified Communications Consultant in the UK. www.NetPacket.co.uk