Voice mail application

Is it possible to modify how the voicemail application works to add additional options? For example, I need to have the capability to call an extension when in the voice mail application. Preferably, I would like a pin to be entered before that happened. Your help and pointers are much appreciated.