cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1142
Views
0
Helpful
7
Replies

Add Prefix to local extension when making VOIP calls

aadhu1
Level 1
Level 1

Hi Guys,

  i would need help on the transilation rules for eg. the ip phone extension of mine which is 86128 should be seen to other end as 12386128 and that too i need only for one site office , i had tried transilation-rule which says rule 1 /^86.../ /123/ and added to dial-peer as transilation-profile outgoing "name" . could you please help on this one , cant figure out how to change the local extension .

2 Accepted Solutions

Accepted Solutions

Hi.

Another way to translate could be

voice translation-rule 100

rule 1 /^5...$/ /123\0/

HTH

Regards

Carlo

Please rate all helpful posts

"The more you help the more you learn"

Please rate all helpful posts "The more you help the more you learn"

View solution in original post

Hi Adarsh.

voice translation-profile AUH-Test

you have

translate called 3

should be

translate calling 3

HTH

Regards

Carlo

Please rate all helpful posts

"The more you help the more you learn"

Please rate all helpful posts "The more you help the more you learn"

View solution in original post

7 Replies 7

Dragan Ilic
Level 4
Level 4

http://draganchilly.blogspot.com/2009/11/call-manager-and-call-manager-express.html

especially this:

CME advanced examples:

/^\(5..\)/ /1234\1/

- match numbers in 500-599 range and transform it in 1234500-1234599

HTH,
Dragan

HTH,
Dragan

Hi.

Another way to translate could be

voice translation-rule 100

rule 1 /^5...$/ /123\0/

HTH

Regards

Carlo

Please rate all helpful posts

"The more you help the more you learn"

Please rate all helpful posts "The more you help the more you learn"

aadhu1
Level 1
Level 1

Hi Dragan/Carlo,

I had tried both of ur transilation rules but its the same , my extension no: is not getting changed with the added prefix 123 to the other side call ... is there any other rule u guys can think of ....


Sent from Cisco Technical Support Android App

Hi ,

Can you paste the section of config which contains translation rule , profile and dial-peer.

Thanks

Manish

Hi Manish,

This is the config , you can see the translation rule 3 is the one for this purpose and is named as AUH-Test , and the profile have been added to dial-peer to where the prefix of the local extension should be changed and shown to the remote end with the added prefix .

voice translation-rule 1

rule 1 /^30/ /9/

rule 2 /973/ /9/

rule 3 /111/ /91/

rule 4 /444/ /90/

rule 5 /20/ /99/

rule 6 /^968/ /9/

!        

voice translation-rule 2

rule 1 /44/ //

!        

voice translation-rule 3

rule 1 /^86...$/ /123\1/

!        

!        

voice translation-profile AUH-Test

translate called 3

!        

voice translation-profile remove-prefix

translate called 1

!        

voice translation-profile uk-prefix

translate called 2

!        

!        

dial-peer voice 72000 voip

translation-profile outgoing AUH-Test

destination-pattern 72...

session target ipv4:10.28.2.2

codec g711ulaw

Thanks

Adarsh

Hi Adarsh.

voice translation-profile AUH-Test

you have

translate called 3

should be

translate calling 3

HTH

Regards

Carlo

Please rate all helpful posts

"The more you help the more you learn"

Please rate all helpful posts "The more you help the more you learn"

Many Thanks Carlo , that did worked , missed out the "calling" on that translate rule .

Thanks All for the help .

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: