02-16-2016 02:36 PM - edited 03-17-2019 05:54 AM
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.
02-17-2016 01:18 AM
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
02-17-2016 01:23 AM
Hi,
Configuration seems good as per your requirement. Please let us know if you face any issue while testing.
- Vivek
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide