If you are only talking about a few DIDs, just create a Misc Appliation for each and point them to the desired internal destination.
A loopback trunk will work too, essentially you create a trunk of type custom, with a dial string of:
local/$OUTNUM$@from-trunk
Then create an outbound route will all the dial patterns you want to loop back and point them to this trunk.