<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
.MsoPapDefault
        {mso-style-type:export-only;
        text-align:justify;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I’ll go through it and see what I missed. I can't thank you enough!<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>John<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] <b>On Behalf Of </b>Jonathan H<br><b>Sent:</b> Saturday, February 18, 2017 11:50 AM<br><b>To:</b> Asterisk Users Mailing List - Non-Commercial Discussion<br><b>Subject:</b> Re: [asterisk-users] Voicemail notification by email is missing CallerID info<o:p></o:p></span></p></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal style='margin-bottom:12.0pt;text-align:justify'>This is what comes with voicemail.conf.sample - works for me!<o:p></o:p></p><div><p class=MsoNormal style='text-align:justify'><span style='font-family:"Courier New"'>; Change the from, body and/or subject, variables:</span><o:p></o:p></p></div><div><p class=MsoNormal style='text-align:justify'><span style='font-family:"Courier New"'>;     VM_NAME, VM_DUR, VM_MSGNUM, VM_MAILBOX, VM_CALLERID, VM_CIDNUM,</span><o:p></o:p></p></div><div><p class=MsoNormal style='text-align:justify'><span style='font-family:"Courier New"'>;     VM_CIDNAME, VM_DATE</span><o:p></o:p></p></div><div><p class=MsoNormal style='text-align:justify'><span style='font-family:"Courier New"'>; Additionally, on forwarded messages, you have the variables:</span><o:p></o:p></p></div><div><p class=MsoNormal style='text-align:justify'><span style='font-family:"Courier New"'>;     ORIG_VM_CALLERID, ORIG_VM_CIDNUM, ORIG_VM_CIDNAME, ORIG_VM_DATE</span><o:p></o:p></p></div><div><p class=MsoNormal style='text-align:justify'><span style='font-family:"Courier New"'>; You can select between two variables by using dialplan functions, e.g.</span><o:p></o:p></p></div><div><p class=MsoNormal style='text-align:justify'><span style='font-family:"Courier New"'>;     ${IF(${ISNULL(${ORIG_VM_DATE})}?${VM_DATE}:${ORIG_VM_DATE})}</span><o:p></o:p></p></div><div><p class=MsoNormal style='text-align:justify'><span style='font-family:"Courier New"'>;</span><o:p></o:p></p></div><div><p class=MsoNormal style='text-align:justify'><span style='font-family:"Courier New"'>; Note: The emailbody config row can only be up to 512 characters due to a</span><o:p></o:p></p></div><div><p class=MsoNormal style='text-align:justify'><span style='font-family:"Courier New"'>;       limitation in the Asterisk configuration subsystem.</span><o:p></o:p></p></div><div><p class=MsoNormal style='text-align:justify'><span style='font-family:"Courier New"'>;emailsubject=[PBX]: New message ${VM_MSGNUM} in mailbox ${VM_MAILBOX}</span><o:p></o:p></p></div><div><p class=MsoNormal style='text-align:justify'><span style='font-family:"Courier New"'>; The following definition is very close to the default, but the default shows</span><o:p></o:p></p></div><div><p class=MsoNormal style='text-align:justify'><span style='font-family:"Courier New"'>; just the CIDNAME, if it is not null, otherwise just the CIDNUM, or "an unknown</span><o:p></o:p></p></div><div><p class=MsoNormal style='text-align:justify'><span style='font-family:"Courier New"'>; caller", if they are both null.</span><o:p></o:p></p></div><div><p class=MsoNormal style='text-align:justify'><span style='font-family:"Courier New"'>;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</span><o:p></o:p></p></div><div><p class=MsoNormal style='text-align:justify'><span style='font-family:"Courier New"'>;</span><o:p></o:p></p></div><div><p class=MsoNormal style='text-align:justify'><span style='font-family:"Courier New"'>; Note: ${IF()} strips spacing at the beginning and end of its true and false</span><o:p></o:p></p></div><div><p class=MsoNormal style='text-align:justify'><span style='font-family:"Courier New"'>; values, so a newline cannot be placed at either location.  The word 'so' is</span><o:p></o:p></p></div><div><p class=MsoNormal style='text-align:justify'><span style='font-family:"Courier New"'>; therefore duplicated, in order for the newline to be interpreted correctly.</span><o:p></o:p></p></div><div><p class=MsoNormal style='text-align:justify'><span style='font-family:"Courier New"'>;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</span><o:p></o:p></p></div><div><p class=MsoNormal style='text-align:justify'><o:p> </o:p></p></div><p class=MsoNormal style='text-align:justify'>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><o:p></o:p></p></div></div></body></html>