bigcappa1 Mon, 03/30/2009 - 00:44
User Badges:
  • Silver, 250 points or more

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

blackswans Mon, 03/30/2009 - 00:48
User Badges:

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?

bigcappa1 Mon, 03/30/2009 - 01:14
User Badges:
  • Silver, 250 points or more

You can do it on CallManager in the service Parameters, under the Clusterwide Paramters option either on the gateway or on the phone


This is where I normally do it with MGCP


Thanks

Paul



Attachment: 
husienlee Mon, 03/30/2009 - 01:17
User Badges:

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


Actions

This Discussion