Voicemail hang up problem

hello to all
I need help to set up the voicemail
basically I need to work with DND there is only the welcome message and then hang up immediately, but I can not find this function if you can help me
thank you very much