[cisco-voip] Difference between "voice translation-rule" and "translation-rule"
Robin Clayton
Robin.Clayton at rrca.org.uk
Tue Apr 28 09:37:11 EDT 2009
Hmm
I wonder how it works now then for the 860 translation.
Does it actually change the number as I have no dial-peer that matches
600 ( 600 being the unity pilot )
Full Config..
—-----------
Current configuration : 3887 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname CARL-VG2811-1
!
boot-start-marker
boot-end-marker
!
enable secret "it's quite secure realy"
!
no aaa new-model
!
resource policy
!
network-clock-participate wic 0
ip subnet-zero
!
!
ip cef
!
!
isdn switch-type primary-net5
!
voice-card 0
no dspfarm
!
!
voice call send-alert
voice call convert-discpi-to-prog
voice call carrier capacity active
voice rtp send-recv
!
voice service voip
allow-connections h323 to h323
allow-connections h323 to sip
allow-connections sip to h323
allow-connections sip to sip
h323
!
!
!
voice class codec 1
codec preference 1 g711ulaw
codec preference 2 g729r8
!
!
!
voice class h323 1
h225 timeout tcp establish 3
h225 timeout setup 3
!
!
!
!
!
!
voice translation-rule 1
rule 1 /^8220/ /8/
!
!
voice translation-profile frompstn
translate called 1
!
!
!
!
username "yes we have these too!"
!
!
controller E1 0/0/0
pri-group timeslots 1-16
!
translation-rule 2
Rule 1 ^. 0 national national
Rule 2 ^. 00 international international
!
!
translation-rule 5
Rule 0 860 600
!
!
!
!
interface FastEthernet0/0
ip address xxx.xxx.xxx.254 255.255.255.0
duplex auto
speed auto
h323-gateway voip interface
h323-gateway voip bind srcaddr xxx.xxx.xxx.254
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/0/0:15
no ip address
isdn switch-type primary-net5
isdn incoming-voice voice
no cdp enable
!
ip default-gateway xx.xx.xx.1
ip classless
ip route 0.0.0.0 0.0.0.0 xx.xx.xx.1
!
!
ip http server
no ip http secure-server
!
!
!
!
control-plane
!
!
!
voice-port 0/0/0:15
!
!
!
!
!
dial-peer voice 1 pots
translation-profile incoming frompstn
incoming called-number .
direct-inward-dial
!
dial-peer voice 2 pots
destination-pattern 999
progress_ind alert enable 8
progress_ind progress enable 8
progress_ind connect enable 8
port 0/0/0:15
forward-digits all
!
dial-peer voice 3 pots
destination-pattern 9999
progress_ind alert enable 8
progress_ind progress enable 8
progress_ind connect enable 8
port 0/0/0:15
forward-digits 3
!
dial-peer voice 4 pots
destination-pattern 112
progress_ind alert enable 8
progress_ind progress enable 8
progress_ind connect enable 8
port 0/0/0:15
forward-digits all
!
dial-peer voice 6 pots
destination-pattern 9112
progress_ind alert enable 8
progress_ind progress enable 8
progress_ind connect enable 8
port 0/0/0:15
forward-digits 3
!
dial-peer voice 10 voip
description INCOMING DDI RANGE 01228 822 060 --- 080
preference 2
destination-pattern 8..
progress_ind setup enable 3
voice-class codec 1
voice-class h323 1
session target ipv4:xx.xx.xx.11
dtmf-relay h245-alphanumeric
ip qos dscp cs5 media
no vad
!
dial-peer voice 11 voip
description INCOMING DDI RANGE 01228 822 060 --- 080
preference 2
destination-pattern 8..
progress_ind setup enable 3
voice-class codec 1
voice-class h323 1
session target ipv4:xx.xx.xx.10
dtmf-relay h245-alphanumeric
ip qos dscp cs5 media
no vad
!
dial-peer voice 15 voip
destination-pattern 860
progress_ind setup enable 3
translate-outgoing called 5
voice-class codec 1
voice-class h323 1
session target ipv4:xx.xx.xx.10
dtmf-relay h245-alphanumeric
ip qos dscp cs5 media
no vad
!
dial-peer voice 16 voip
destination-pattern 860
progress_ind setup enable 3
translate-outgoing called 5
voice-class codec 1
voice-class h323 1
session target ipv4:xx.xx.xx.11
dtmf-relay h245-alphanumeric
ip qos dscp cs5 media
no vad
!
dial-peer voice 99 pots
description Dial Peer to PSTN
destination-pattern 9.T
progress_ind alert enable 8
progress_ind progress enable 8
progress_ind connect enable 8
port 0/0/0:15
!
!
!
line con 0
login local
line aux 0
line vty 0 4
login local
!
scheduler allocate 20000 1000
!
end
—----------------------------------------
Rob
Richard Rose Central Academy
Edgehill Road
Carlisle
Cumbria
CA1 3SL
Tel: 01228 822060
Fax: 01228 822061
http://www.richardroseacademies.org/
>>> Paul <asobihoudai at yahoo.com> 28/04/2009 13:30 >>>
translation-rule is a deprecated command. don't use it unless you want
to go bald.
Just use
- voice translation-rule
- voice translation-profile
and then apply the profile where you need it
________________________________
From: Robin Clayton <Robin.Clayton at rrca.org.uk>
To: cisco-voip at puck.nether.net
Sent: Tuesday, April 28, 2009 4:05:11 AM
Subject: [cisco-voip] Difference between "voice translation-rule" and
"translation-rule"
Hi Everyone.
What's the difference between a
voice translation-rule
and
translation-rule
on the gateway?
I have the following
—--SNIP-----
voice translation-rule 1
rule 1 /^8220/ /8/
!!
voice translation-profile frompstn
translate called 1
!
controller E1 0/0/0
pri-group timeslots 1-16
!
translation-rule 2
Rule 1 ^. 0 national national
Rule 2 ^. 00 international international
!
!
translation-rule 5
Rule 0 860 600
!
!
translation-rule 6
Rule 0 875 850
!
---SNIP----
I have just added "translation-rule 6" but it seems to have no effect.
Additionally I don't have a dial-peer for 600 ( does the dial peer take
the pre-translated number 860? )
translation-rule 5 does 'SEEM' to work ok.
Rob
===============================
Robin Clayton
Network Manager
Tel: 01228822075
Richard Rose Central Academy
Edgehill Road
Carlisle
Cumbria
CA1 3SL
Tel: 01228 822060
Fax: 01228 822061
http://www.richardroseacademies.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://puck.nether.net/pipermail/cisco-voip/attachments/20090428/07a5b675/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 7338 bytes
Desc: CompuServe GIF graphic
URL: <https://puck.nether.net/pipermail/cisco-voip/attachments/20090428/07a5b675/attachment.gif>
More information about the cisco-voip
mailing list