Original Extension in VM Email


I’m running Asterisk as VoIP-PBX for a small company. What I’d like to do is to setup a voicemail box for every employee that will take messages when the person is not at his/her desk. For matters of simplicity, my plan was to just create a single mailbox where calls are redirected when they have been ringing for a while. Our office manager would then get a mail and notify the called employee or call back himself for urgent matters.

However, in order to do this, there should be an indication of the originally called extension in the notification email (in order for the office manager to be able to tell whom the call was for). As far as I can see, there is no corresponding variable for the email body template in voicemail.conf. Is there any other way to do what I described above? I would prefer not having to create a separate mailbox for every extension because the greeting should always be the same (as I understand it, this would mean to manually copy the sound file into every /var/spool/asterisk/voicemail/default/ directory).
Any pointers would be much appreciated.

Thanks and best regards,

What if you took the extension and, before putting the call through to the voicemail application, modified the callerid number to include that extension as a prefix?

Excellent idea, and it appears to work perfectly.
Many thanks for the suggestion!