Number conversion


im trying to implement a number conversion.

i want to use the AGI for the conversion.

Number conversion?

I want to change the source number and the destination of any call. The conversion rules shall be configurable on a “conversion.conf” or something.
if the destination is converted, the new number shall be called. if the source number is changed, the callee shall see the new number as caller.

Now my questions:
is AGI the right thing to do that?
is this maybe available yet?

thanks for your answers.