Here's what I have setup on a cme box:
voice translation-rule 1
rule 1 /5551111/ /1234/
rule 2 /5552222/ /1234/
rule 15 /*/ /9999/
voice translation-rule 2
rule 1 /7771111/ /1234/
rule 2 /7772222/ /1234/
rule 15 /*/ /9999/
voice translation-profile 1_in
translate called 1
voice translation-profile 2_in
translate called 2
dial-peer voice 1 pots
translation-profile incoming 1_in
incoming called-number 555....
direct-inward-dial
port 0/0/0:23
dial-peer voice 2 pots
translation-profile incoming 2_in
incoming called-number 777....
direct-inward-dial
port 0/0/0:23
Is there a cleaner or easier way to do this without having 20 or so dial-peers?