First create translation rules (in the global configuration menu).
Then in the ougoing dial-peer use the following commands:
translate-outgoing calling X
translate-outging called Y
(X and Y are numbers matching a translation rule)
with them you will be able to rewrite the ANI/DNIS values sent via the dial-peer to any desired value.