What is the voice mail you use?
This example is for SCCS with Meridian Mail system.
Apart from Access ACD-DN, you also need to have IVR ACD-DN for the GIVE IVR command.
On the MM, you need to define an Express Messaging direct to the mailbox. Then, you need to create a new entry (1234) in the VSDN Table pointing to the Express Messaging you created earlier.
I'm not sure about statistic. Last time I implement this, the call will be shown as abandon when you go to mailbox using this method (You might need to verify this when you implement the script).
ASSIGN 0 TO choice_cv
OPEN VOICE SESSION
PLAY PROMPT VOICE SEGMENT mailbox_menu_gv
COLLECT 1 DIGITS INTO choice_cv INTER DIGIT TIMER 4
END VOICE SESSION
WHERE choice_cv EQUALS
VALUE 1: EXECUTE voice_mail
DEFAULT: EXECUTE something_else
END WHERE
END IF
SECTION voice_mail
GIVE IVR ivr_queue_gv WITH TREATMENT 1234
DISCONNECT
SECTION something_else
-> What will callers get if they don't press anything or press other number?