Here's the sample code. Observe that I took a number of shortcuts. What? No sign in dialog?
I've also left it as an exercise to the reader to populate the 'messages' array and increment the 'msg_index' to iterate through the user's mailbox.
xmlns="http://www.w3.org/2001/vxml">
quit
goodbye.
caught hangup
caught unexpected event
I'm sorry, but an error has occurred.
Please try again later.