Hey all, does anyone know how to grab a voicemail message file name based on the mailbox ID so it can be emailed as an attachment? I know Asterisk can natively email a voicemail as an attachment, but it is limited to a fixed email address in the config. In my situation there will be different users (email addresses) that would need to be emailed based on time of day/day of week depending on the contacts availability setting, so a fixed email address won’t work. A “shared” email box (forwarding group) also wont work for the same reasons. Contacts may be added/removed at any time, and unavailable contacts won’t want to receive emails. Anyone have any ideas how how this might be able to be done with an AGI script (maybe PHP) by passing it the mailbox ID and then returning the file name of the message back so it can then be used in a variable to add to the email as an attachment? TIA to all for any ideas!