cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
689
Views
0
Helpful
2
Replies

Applying translation rules and profiles

nitesz010
Level 1
Level 1

I have four digits extension. What are the translation rules and profiles are needed and how they are applied to the dial-peers so that I will be able to make calls to the PSTN number. In my understanding, I would create two translation rules: One for incoming call and one for outgoing call.

voice translation-rule 1        **This will convert 10 digits number 4 digit**             
 rule 1 /^702.../ //
!
voice translation-profile 1     
translate called 1         
!
dial-peer voice 1 pots
translation-profile incoming 1
incoming called number .%

Will this configuration cause my 1234 extension to ring if a PSTN caller calls 7023451234??

For outgoing calls:

voice translation-rule 2                    
 rule 1 /^12\(..$\)/ /70234512\1/  **convert 4 digit extension (1234) to 7022451234**
!
Voice translation-profile 2
translate calling 2
!
dial-peer voice 2 pots
translation-profile outgoing 2

Will I be able to dial the PSTN callers?

Please help I'm noob in this topic.
 

2 Replies 2

Deepak Rawat
Cisco Employee
Cisco Employee

Your rules are all over the place, it will not give you anything in terms of what you are looking to achieve


voice translation-rule 1                
 rule 1 /^702.../ //

The above rule will check for 6 digit number starting from 702 and will not convert anything. It should be like below:

rule 1 /^702345\(....$\)/ /\1/

voice translation rule 2 will indeed convert 1234 to 7022451234 or 1289 to 7023451289. So basically any number starting from 12 will be converted to 70224512 and the next two numbers will remain as it is. I will highly recommend you to go through the below document in order to understand all this:

https://supportforums.cisco.com/document/31816/custom-made-guide-translation-rulesprofiles-and-some-common-uses

Below is a golden command to test the rules yourself on the router

test voice translation-rule <rule number> <number>

Regards

Deepak

Vivek Batra
VIP Alumni
VIP Alumni

Hi,

Configuration seems good as per your requirement. Please let us know if you face any issue while testing.

- Vivek