Hello,

I need to send a customized voicemail notification based on certain condition once a voicemail is recorded.

1- How can I retrieve the voicemail filename?
2- Is api_hangup_hook a proper way to detect if a voicemail was left?
3- How can I assign custom variables to the channel so at api_hangup_hook I know what I needed to do?

Please help.

Thanks,
Ali