...
HOW IT WORKS
Access to voicemail can be handled by using ivr script and a custom application (VoiceMailMain).
You need to set two different dial plans:
- An internal DID that need to execute the custom application (VoiceMailMain). The application VoiceMailMain allows you to manage the voicemail messages.
...
- An external DID to access to the ivr script. The ivr asks the voicemail extension you want to check and performs the query to xcally db to retrieve the voicemail name (sip name). Then the call goes to the internal dialplan to execute the VoiceMailMain application.
THE IVR SCRIPT
Variables
Add two channel variables: VM_EXT and VM_USER
...
The internal inbound dialplan
Add an internal inbound dial plan and set the DID *1000 (or the same you use in the GOTO block).
In the advanced settings add a Custom Application:
Application name: VoiceMailMain
Params: ${VM_USER[0][name]}@from-voicemail
Your remote access to check the voicemails is ready!