I came across this several days ago.....
By adding a translation rule to correct incoming calls caller ID information, you can remove the area code for local calls, and add a 1 for long distance calls. Add the following translation rule to your configuration then apply it to your incoming voice ports (i.e. FXO or PRI). This will enable you to correctly be able to place outgoing calls from the Missed Call/Received Calls directory. Replace 559 in the example with your area code. Remove the 9 if you don't need an outbound dial number.
voice translation-rule 1
rule 1 /^559\(.*\)/ /9\1/
rule 2 /\(..........\)/ /91\1/
!
voice translation-profile filter_559
translate calling 1
!
voice-port 1/0
translation-profile incoming filter_559
!
voice-port 1/1
translation-profile incoming filter_559
To test and troubleshoot the proper operation of the translation-rule, use the "test voice translation-rule 1 <number>" command. An example below shows the area code being removed, and a 9 correctly being added.
CCME30-1751V#test voice translation-rule 1 5591234567
Matched with rule 1
Original number: 5591234567
Translated number: 91234567
Original number type: none
Translated number type: none
Original number plan: none
Translated number plan: none
Some people are like slinkies. Not really good for anything but they bring a smile to your face when pushed down the stairs.
Tek-TIP Member 19,650
![[americanflag] [americanflag] [americanflag]](/data/assets/smilies/americanflag.gif)