IP voice translation rule

From: love cisco (love_cisco@hotmail.com)
Date: Thu Mar 20 2003 - 17:53:35 GMT-3


How does the router distinguish you just pressed 1 digits number or 4
digits number?
For example, if I use my following config, I want use phone A dial phone C,
so I input 4 digits number of phone C (1003). Because the first number of
phone C is 1 and there is a translation rule under phone A voice-port (1 =>
1002). Is that phone A will dial phone B instead of phone C? How does the
router know you just pressed 1 or 1003?

hostname R4-voice
!
translation-rule 1
Rule 1 ^1 1002
!
translation-rule 2
Rule 1 ^2 2001
!
interface Loopback0
ip address 100.100.100.1 255.255.255.0
!
voice-port 1/1
translate called 1
description Phone A with phone#2001
!
voice-port 1/2
translate called 2
description Phone B with phone#1002
!
voice-port 1/3
description Phone C with phone#1003
!
dial-peer voice 10 pots
destination-pattern 2001
port 1/1
!
dial-peer voice 20 pots
destination-pattern 1002
port 1/2
!
dial-peer voice 30 pots
destination-pattern 1003
port 1/3
!
dial-peer voice 100 voip
destination-pattern 2001
session target ipv4:100.100.100.1
!
dial-peer voice 200 voip
destination-pattern 1002
session target ipv4:100.100.100.1
!
dial-peer voice 300 voip
destination-pattern 1003
session target ipv4:100.100.100.1



This archive was generated by hypermail 2.1.4 : Sat Apr 05 2003 - 08:51:42 GMT-3