03-16-2009 12:00 AM - edited 03-15-2019 04:52 PM
How can I add 9 to incoming calls (calling party) with the translation pattern?
Thanks
03-30-2009 12:44 AM
Hi, Used this on CCME in the past
Two Options but both do the job
The second option is dependant on the country dial pattern.
This is based on the uk where local calls had 6 digits (some areas have 7) and then 10, 11 and 12 digits for national and international etc
Option 1 is more straightforward
voice translation-rule 90
rule 1 /^0./ /90/
rule 2 /^1/ /901/
rule 3 /^2/ /902/
rule 4 /^3/ /903/
rule 5 /^4/ /904/
rule 6 /^5/ /905/
rule 7 /^6/ /906/
rule 8 /^7/ /907/
rule 9 /^8/ /908/
rule 10 /^9/ /909/
rule 11 /^00/ /900/
voice translation-profile Prefix_9
translate calling 90
voice-port 0/0/0:15
translation-profile incoming Prefix_9
Option 2 is a little more complex
voice translation-rule 2
rule 1 /\(^......$\)/ /9\1/
rule 2 /\(^..........$\)/ /9\1/
rule 3 /\(^...........$\)/ /9\1/
rule 4 /\(^............$\)/ /9\1/
voice translation-profile 1
translate calling 2
voice-port 0/0/0:15
translation-profile incoming 1
You could also apply to the incoming dial-peers
Hope this helps
Paul
03-30-2009 12:48 AM
ok thats fine, another question if we use CM and MGCP how can we do this? With the help of translation patterns or something else?
03-30-2009 01:14 AM
03-30-2009 01:17 AM
Hi
You set it on Service parametre for CallMnaager service under MGCP section (MGCP Prefix) .
you need to know when you debug the incoming call is an :
1. Subscdriber,
2. Unknow,
3. International
Or you can append 9 suing translation pattern but make sure that only the E1/T1 endpoint hit this translatation pattern by using Partition and CSS
Regards,
Husien
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