Can a call receiver direct a call to voicemail?


One task I’m trying to accomplish is for

1.) Users dial an extension and are prompted for their name which is recorded.
2.) The extension rings and the receiver is played the person’s name.
3.) The receiver can either press 1 to accept the call, or press 2 to direct to voicemail.

Can someone point me to some commands or macros on how to accomplish this?

Thanks in advance,
Peter Borghard