Noname is right. You can NOT do that with just a gatekeeper. In that case you need a combination of softswitch with calling card + IVR system.
Such one is AlterPSS (russian made).
It has a client softhpone, calling card system + IVR via IP, softswitch… All in one. Except the billing.