Pass variables/data to voicemail email

I’m wondering if it’s possible to pass data to the voicemail function to modify the email before it’s sent. In the extensions.conf, I can set a variable to the message I want to include in the email (preferably the subject).

Any ideas?