×

Warning message

  • Cisco Support Forums is in Read Only mode while the site is being migrated.
  • Cisco Support Forums is in Read Only mode while the site is being migrated.

Add Prefix to local extension when making VOIP calls

Answered Question
Feb 24th, 2014
User Badges:

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 .

Correct Answer by Carlo Poggiarelli about 3 years 5 months ago

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"

Correct Answer by Carlo Poggiarelli about 3 years 5 months ago

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"

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
Loading.
Correct Answer
Carlo Poggiarelli Mon, 02/24/2014 - 08:07
User Badges:
  • Green, 3000 points or more

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"

aadhu1 Mon, 02/24/2014 - 23:45
User Badges:

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

Manish Prasad Tue, 02/25/2014 - 00:16
User Badges:

Hi ,


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


Thanks

Manish

aadhu1 Tue, 02/25/2014 - 00:37
User Badges:

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

Correct Answer
Carlo Poggiarelli Tue, 02/25/2014 - 01:02
User Badges:
  • Green, 3000 points or more

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"

aadhu1 Tue, 02/25/2014 - 01:12
User Badges:

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



Thanks All for the help .

Actions

This Discussion