Remove digits when dialing

Is it possible to make a call egg:

001#27213351711 save the call as 001#0213351711 in the call logs. And then only send 0215531711 on a digital trunk

What we are trying to do is to group calls going to certain groups of clients. This will help with the billing to bill a client on the services rendered.

I have seen that you can add the codes like 2721 (27 is South Africa 21 is Cape Town area)

I looked but could not see this