I realized today that ARI forwards voicemail between mailboxes by just copying files and not paying attention to the destination extension's voicemail settings. For example, if an extension is configured to delete voicemail after emailing it the result when forwarding email via ARI is:
- extension has voicemail put in it and the phone MWI goes on
- no email is generated to the owner of the extension
The lack of generated email is non-optimal as many people only deal with their voicemail via email and will then never know they have gotten a forwarded voicemail.
I am calling this a bug as I think people would expect forwarding in ARI to work the same as when using the phone interface to forward emails.
I have no idea if the ARI web interface could inject forwarded voicemails into asterisk so they would follow the same code path as one forwarding voicemails via a telephone.
One other way would be to read the destination's voicemail box configuration and duplicate the asterisk voicemail functions:
- is voicemail emailed
- is voicemail kept on the server after emailing