I am trying to make a generic answering mailbox for different clients in case their internet connection goes down at their site. This would force the numbers to fail over to my generic system, and take calls from any number. I would like to add the number called to my e-mails with the voicemail attachments, so I can properly forward the voicemail to the correct client.
I do not want to set-up a separate voicemail box for each client, as this is something that should only be used as a back-up, and there are a lot of different clients.
Is there a variable to add this to the Email Subject or Email Body?
Annoyingly, Comedian Mail does not give you access to the Asterisk Channel variables, only certain special voicemail variables:
; Change the from, body and/or subject, variables:
; VM_NAME, VM_DUR, VM_MSGNUM, VM_MAILBOX, VM_CALLERID, VM_CIDNUM,
; VM_CIDNAME, VM_DATE
; Additionally, on forwarded messages, you have the variables:
; ORIG_VM_CALLERID, ORIG_VM_CIDNUM, ORIG_VM_CIDNAME, ORIG_VM_DATE
; You can select between two variables by using dialplan functions, e.g.
How much programming experience and control over the system do you have?
If you are processing this “post call”, you could get most of the information from the CDR/CEL database. It might take a little dredging around in the table to find your information, but it should be possible to cross-link the voicemail to the CDR record to get the information from the original call.