Add Prefixes with Translation Rule

Unanswered Question
May 25th, 2007
User Badges:

Hi,can somebody help me with translation-rule.


I need add prefixes to individual called numbers.


My scheme:CCM4(77xxx dial plan)<->7204VXR<->Meridian(72xxx,73xxx dial plan)


Example:

Number from ccm 77001 calls to some numbers 72001 73001,call go thrue 7204VXR were to the called numbers add prefixe "6",like 672001 673001.


If I use something like this, it works,but for all who go thrue dial-peer 10.

-------------------------------------

voice translation-rule 1

rule 1 /^/ /6/


voice translation-profile profile1

translate calling 1


dial-peer voice 10 pots

translation-profile outgoing profile1

--------------------------------------


And I need to add prefixes only to individual numbers.


Thanks

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 4 (2 ratings)
Loading.
Aaron Harrison Fri, 05/25/2007 - 04:44
User Badges:
  • Super Bronze, 10000 points or more
  • Community Spotlight Award,

    Member's Choice, May 2015

Hi


You can be more specific on the numbers matched:


rule 1 /^\(7....$\)/ /6\1/


Would prefix a 6 to any 5-digit number starting with a 7.


Regards


Aaron


Please rate helpful posts...

Brandon Buffin Fri, 05/25/2007 - 04:46
User Badges:
  • Purple, 4500 points or more

If you only want to translate calls to 72001 and 73001, you could use a configuration like:


voice translation-rule 1

rule 1 /^72001$/ /672001/

rule 2 /^73001$/ /673001/


voice translation-profile profile1

translate called 1


dial-peer voice 10 pots

translation-profile outgoing profile1


Hope this helps. If so, please rate the post.


Brandon

kavalsky_a Sun, 05/27/2007 - 21:53
User Badges:

--------------------------------------------

voice translation-rule 2

rule 1 /^\(77555$\)/ /6\1/

!

voice translation-profile 2

translate called 2

!

dial-peer voice 77 voip

tone ringback alert-no-PI

destination-pattern 77...

progress_ind setup enable 1

voice-class codec 1

session target ipv4:10.10.0.50

no vad

!

dial-peer voice 72 pots

tanslation-profile incoming 2

translation-profile outgoing 2

preference 1

destination-pattern 72...

progress_ind setup enable 3

progress_ind alert enable 8

direct-inward-dial

port 1/1:15

prefix 72

--------------------------------------------


Here is my config,but it dont do what I need.

If I understand correct "translation-rule 2"

adds prefix 6 to number 77555 when someone called on 77555 (if 72001 call to 77555 it calls to 677555)


I try to explain what I need again.Here my Scheme.


CCM4(77...)<-->7204(dial-peer 72... ,73...)<-->Meridian(72... , 73...)


If I call "ONLY" from number 77555 to 72001,73002,73002... I need add prefixes to numbers where I calls from 77555(672001,673002,673002...)



Actions

This Discussion