RE: num-exp v/s translation rules

From: Scott Morris (swm@emanon.com)
Date: Thu Apr 17 2003 - 09:34:32 GMT-3


The translation rule as it is will translate a series of 100 numbers
beginning with 2 to begin with 12. That (IMHO) is akin to writing an
ACL that permits more than you are supposed to.

The num-exp as you have listed will translate a single entry and that
only.

Yes, for that one example, they both accomplish the same thing, but
otherwise you are having the CPU manipulate digits on things that won't
get called anyway (no dial-peer). Just my opinion.

Scott

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
Cristian Henry H
Sent: Wednesday, April 16, 2003 9:29 PM
To: ccielab@groupstudy.com
Subject: num-exp v/s translation rules

Hi everybody,

What is the difference between the following configuratios?

Configuration 1:

translation-rule 1
  rule 1 ^2.. 12
!
voice-port 1/0
   translate called 1
!
dial-peer voice 100 voip
 destination-pattern 1222
 session target ipv:10.1.2.2
!

Configuration 2:

num-exp 222 1222
!
voice-port 1/0
!
dial-peer voice 100 voip
 destination-pattern 1222
 session target ipv:10.1.2.2
!

In both cases I can dial 222 from telephone connected to voice-port 1/0,
and the router will convert the dial number to 1222 so it will send the
call to 10.1.2.2, right?

-- 
Cristian E. Henry
REUNA

E-mail: chenry@reuna.cl Fono: 56-2-3370336



This archive was generated by hypermail 2.1.4 : Thu May 01 2003 - 13:35:55 GMT-3