<div dir="ltr">This is what comes with voicemail.conf.sample - works for me!<br><br><div><font face="monospace, monospace">; Change the from, body and/or subject, variables:</font></div><div><font face="monospace, monospace">;     VM_NAME, VM_DUR, VM_MSGNUM, VM_MAILBOX, VM_CALLERID, VM_CIDNUM,</font></div><div><font face="monospace, monospace">;     VM_CIDNAME, VM_DATE</font></div><div><font face="monospace, monospace">; Additionally, on forwarded messages, you have the variables:</font></div><div><font face="monospace, monospace">;     ORIG_VM_CALLERID, ORIG_VM_CIDNUM, ORIG_VM_CIDNAME, ORIG_VM_DATE</font></div><div><font face="monospace, monospace">; You can select between two variables by using dialplan functions, e.g.</font></div><div><font face="monospace, monospace">;     ${IF(${ISNULL(${ORIG_VM_DATE})}?${VM_DATE}:${ORIG_VM_DATE})}</font></div><div><font face="monospace, monospace">;</font></div><div><font face="monospace, monospace">; Note: The emailbody config row can only be up to 512 characters due to a</font></div><div><font face="monospace, monospace">;       limitation in the Asterisk configuration subsystem.</font></div><div><font face="monospace, monospace">;emailsubject=[PBX]: New message ${VM_MSGNUM} in mailbox ${VM_MAILBOX}</font></div><div><font face="monospace, monospace">; The following definition is very close to the default, but the default shows</font></div><div><font face="monospace, monospace">; just the CIDNAME, if it is not null, otherwise just the CIDNUM, or "an unknown</font></div><div><font face="monospace, monospace">; caller", if they are both null.</font></div><div><font face="monospace, monospace">;emailbody=Dear ${VM_NAME}:\n\n\tjust wanted to let you know you were just left a ${VM_DUR} long message (number ${VM_MSGNUM})\nin mailbox ${VM_MAILBOX} from ${VM_CALLERID}, on ${VM_DATE}, so you might\nwant to check it when you get a chance.  Thanks!\n\n\t\t\t\t--Asterisk\n</font></div><div><font face="monospace, monospace">;</font></div><div><font face="monospace, monospace">; Note: ${IF()} strips spacing at the beginning and end of its true and false</font></div><div><font face="monospace, monospace">; values, so a newline cannot be placed at either location.  The word 'so' is</font></div><div><font face="monospace, monospace">; therefore duplicated, in order for the newline to be interpreted correctly.</font></div><div><font face="monospace, monospace">;emailbody=Dear ${VM_NAME}:\n\n\tjust wanted to let you know you were just ${IF($["${VM_CIDNUM}" = "${ORIG_VM_CIDNUM}"]?left:forwarded)} a ${VM_DUR} long message (number ${VM_MSGNUM})\nin mailbox ${VM_MAILBOX} from ${VM_CALLERID}, on ${VM_DATE},\n${IF($["${VM_CIDNUM}" = "${ORIG_VM_CIDNUM}"]?so:(originally sent by ${ORIG_VM_CALLERID} on ${ORIG_VM_DATE})\nso)} you might want to check it when you get a chance.  Thanks!\n\n\t\t\t\t--Asterisk\n</font></div><div><br></div>On 18 February 2017 at 16:35, Tech Support <<a href="mailto:asterisk@voipbusiness.us">asterisk@voipbusiness.us</a>> wrote:<br>> All;<br>><br>>     I am running Asterisk 11.6-cert16 and I have voicemail setup so<br>> voicemail messages are sent as email attachments. That works fine. However,<br>> the body of the email contains the CallerID(name), but is missing the<br>> CallerID(num). For example, the email body looks like this:<br>><br>><br>><br>>       Just wanted to let you know you were just left a 0:21 long message<br>> (number 13) in mailbox 101 from WIRELESS CALLER, on Friday, February 17,<br>> 2017 at 04:48:38 PM so you might want to check it when you get a chance.<br>> Thanks!<br>><br>><br>><br>> Checking the CDR’s shows that both the name and number were recorded by<br>> Asterisk. Am I missing something obvious? Is it a simple config option in<br>> voicemail.conf? Any insight at all would be greatly appreciated.<br>><br>> Thanks;<br>><br>> John V.<br>><br>><br>><br>><br>> --<br>> _____________________________________________________________________<br>> -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com">http://www.api-digital.com</a> --<br>><br>> Check out the new Asterisk community forum at:<br>> <a href="https://community.asterisk.org/">https://community.asterisk.org/</a><br>><br>> New to Asterisk? Start here:<br>>       <a href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started">https://wiki.asterisk.org/wiki/display/AST/Getting+Started</a><br>><br>> asterisk-users mailing list<br>> To UNSUBSCRIBE or update options visit:<br>>    <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></div>