It doesn’t appear that FreePBX uses VM_INFO that way. The only occurrences of VM_INFO in the entire dialplan are in [app-dialvm] and [app-vmmain] which are for *98 and *97 dialing, respectively. In extensions_additional.conf:
Where do you imagine FreePBX using VM_INFO to retrieve the email address for a voicemail box? Regular Voicemail to Email is handled by the Asterisk Voicemail App. For other stuff, FreePBX normally uses the userman email address.
It most certainly is. You just can’t throw dialplan into extensions_custom.conf and expect it to be used. Sure it will be loaded but nothing, so far, indicates how it will be used. If your goal is to get the email account(s) associated with a voicemail user via dialplan then asking “how does it get called?” is 100% relevant.
Correct, they figured out how to get the email via dialplan with the dialplan they posted they put in extensions_custom.conf. I must be the only one that noticed the lack of a context, a lack of a proper extension to match, a lack of proper priorities and actual dialplan to execute after getting the email. The dialplan, alone, won’t work because it has issues. Fixing those issues will still mean it won’t work because there’s nothing here that shows how it would be called by the call logic within FreePBX.
I mean the Set() command and calling on the VM_INFO variables are correct as is the Macro call. Everything else needs to be corrected which would include how it would actually be used.