<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=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        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:"Verdana","sans-serif";
        color:#44546A;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@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-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#44546A">OK, what are those args?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#44546A"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;"> freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org]
<b>On Behalf Of </b>Russell Treleaven<br>
<b>Sent:</b> Thursday, April 24, 2014 4:57 PM<br>
<b>To:</b> FreeSWITCH Users Help<br>
<b>Subject:</b> Re: [Freeswitch-users] Send users wav of voicemail via sendmail<o:p></o:p></span></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div>
<p class="MsoNormal">configure to execute a script like the following in switch.conf.xml<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">just have the script log the args it receives then make that script call sendmail<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Then should help you debug the problem<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">&lt;param name=&quot;mailer-app&quot; value=&quot;/usr/local/freeswitch/scripts/sendemail.py&quot;/&gt;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">&lt;param name=&quot;mailer-app-args&quot; value=&quot;-i -d -t&quot;/&gt;<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">On Thu, Apr 24, 2014 at 4:49 PM, Lloyd Aloysius &lt;<a href="mailto:lloyd.aloysius@gmail.com" target="_blank">lloyd.aloysius@gmail.com</a>&gt; wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">Did you reload the configuration. May be restart the freeswitch service?<o:p></o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">OS ?<o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><o:p>&nbsp;</o:p></span></p>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">On Thu, Apr 24, 2014 at 4:41 PM, Sean Devoy &lt;<a href="mailto:sdevoy@bizfocused.com" target="_blank">sdevoy@bizfocused.com</a>&gt; wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal">Thanks for the replies.<br>
@Jason - yes sendmail works from a shell prompt just fine sending to the same address as the FS test.<br>
@Lloyd - same answer - it works from shell, but not from freeswitch. &nbsp;It is not the receiving mail server.<br>
<br>
There is NOTHING in the debug logs. &nbsp;It is like EMAIL is not a feature that is turned on or configured.<br>
<br>
Here is the log from my latest test:<br>
<a href="http://pastebin.freeswitch.org/22446" target="_blank">http://pastebin.freeswitch.org/22446</a><o:p></o:p></p>
<div>
<div>
<p class="MsoNormal"><br>
-----Original Message-----<br>
From: <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">
freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] On Behalf Of
<a href="mailto:covici@ccs.covici.com" target="_blank">covici@ccs.covici.com</a><br>
Sent: Thursday, April 24, 2014 3:20 PM<br>
To: FreeSWITCH Users Help<br>
Subject: Re: [Freeswitch-users] Send users wav of voicemail via sendmail<br>
<br>
In your logs, you should (at the debug level) see it trying to send or something. &nbsp;I have done this and am using:<br>
&nbsp; &nbsp; &nbsp; &lt;email&gt;<br>
&nbsp; &nbsp; &nbsp;&lt;param name=&quot;template-file&quot; value=&quot;voicemail.tpl&quot;/&gt;<br>
&nbsp; &nbsp; &nbsp;&lt;param name=&quot;notify-template-file&quot; value=&quot;notify-voicemail.tpl&quot;/&gt;<br>
&nbsp; &nbsp; &nbsp;&lt;!-- this is the format voicemail_time will have --&gt;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &lt;param name=&quot;date-fmt&quot; value=&quot;%A, %B %d %Y, %I %M %p&quot;/&gt;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &lt;param name=&quot;email-from&quot;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;value=&quot;${voicemail_account}@${voicemail_domain}&quot;/&gt;<br>
&nbsp; &nbsp; &nbsp; &lt;/email&gt;<br>
and in<br>
switch.conf.xml I have<br>
&nbsp; &nbsp; &lt;param name=&quot;mailer-app&quot; value=&quot;sendmail&quot;/&gt;<br>
&nbsp; &nbsp; &lt;param name=&quot;mailer-app-args&quot; value=&quot;-t&quot;/&gt;<br>
<br>
You need to check those debug logs.<br>
<br>
Sean Devoy &lt;<a href="mailto:sdevoy@bizfocused.com" target="_blank">sdevoy@bizfocused.com</a>&gt; wrote:<br>
<br>
&gt; I tried<br>
&gt; &lt;param name=&quot;mailer-app&quot; value=&quot;/usr/sbin/sendmail&quot; /&gt;<br>
&gt;<br>
&gt; And then I changed args to:<br>
&gt; &lt;param name=&quot;mailer-app-args&quot; value=&quot;&quot;/&gt;<br>
&gt;<br>
&gt; Then: service freeswitch restart<br>
&gt;<br>
&gt; Still no errors, but no email gets sent.<br>
&gt;<br>
&gt;<br>
&gt; From: <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">
freeswitch-users-bounces@lists.freeswitch.org</a><br>
&gt; [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] On Behalf Of<br>
&gt; Abaci<br>
&gt; Sent: Thursday, April 24, 2014 1:59 PM<br>
&gt; To: FreeSWITCH Users Help<br>
&gt; Subject: Re: [Freeswitch-users] Send users wav of voicemail via<br>
&gt; sendmail<br>
&gt;<br>
&gt; try with empty mail-app-args<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On 4/24/2014 1:44 PM, Sean Devoy wrote:<br>
&gt; [<a href="cid:image001.gif@01CF5FC9.5B957360">cid:image001.gif@01CF5FC9.5B957360</a>]<br>
&gt; Hi All,<br>
&gt;<br>
&gt; Can someone explain (or point to documentation) to get voice mail messages emailed to the end user. &nbsp;I have been over and over the mod_voicemail wiki page at
<a href="https://wiki.freeswitch.org/wiki/Mod_voicemail" target="_blank">https://wiki.freeswitch.org/wiki/Mod_voicemail</a>. It is a nice reference page as it lists lots and lots of voicemail variables and parameters. &nbsp;However, I cannot determine what the minimum
 rwquirements are.<br>
&gt;<br>
&gt; Here is what I have so far:<br>
&gt; In /usr/local/freeswitch/conf/autoload_configs/switch.conf.xml I have:<br>
&gt; &lt;param name=&quot;mailer-app&quot; value=&quot;sendmail&quot;/&gt; &lt;param<br>
&gt; name=&quot;mailer-app-args&quot; value=&quot;-t&quot;/&gt; &lt;param name=&quot;dump-cores&quot;<br>
&gt; value=&quot;yes&quot;/&gt;<br>
&gt;<br>
&gt; In the user directory entry I have:<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;param name=&quot;vm-mailto&quot; value=&quot;<a href="mailto:sdevoy@bizfocused.com" target="_blank">sdevoy@bizfocused.com</a>&lt;mailto:<a href="mailto:sdevoy@bizfocused.com" target="_blank">sdevoy@bizfocused.com</a>&gt;&quot;/&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;param name=&quot;vm-mailfrom&quot; value=&quot;<a href="mailto:voicemail@bizfocused.com" target="_blank">voicemail@bizfocused.com</a>&lt;mailto:<a href="mailto:voicemail@bizfocused.com" target="_blank">voicemail@bizfocused.com</a>&gt;&quot;/&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;param name=&quot;vm-email-all-messages&quot; value=&quot;true&quot;/&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;param name=&quot;vm-attach-file&quot; value=&quot;true&quot; /&gt;<br>
&gt;<br>
&gt; I can send emails from SSH when logged in as root.<br>
&gt; mail -s &quot;Test mail from testuser1&quot; <a href="mailto:sdevoy@bizfocused.com" target="_blank">
sdevoy@bizfocused.com</a>&lt;mailto:<a href="mailto:sdevoy@bizfocused.com" target="_blank">sdevoy@bizfocused.com</a>&gt;<br>
&gt; &nbsp; &nbsp;Hello this is the test mail<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; .<br>
&gt;<br>
&gt; I can't find any errors in the console log, but no email gets sent.<br>
&gt;<br>
&gt; Have I missed something about creating a freeswitch user in sendmail???<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Sean<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; ______________________________________________________________________<br>
&gt; ___<br>
&gt;<br>
&gt; Professional FreeSWITCH Consulting Services:<br>
&gt;<br>
&gt; <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>&lt;mailto:<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>&gt;<br>
&gt;<br>
&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt;<br>
&gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Official FreeSWITCH Sites<br>
&gt;<br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt; <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt;<br>
&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; FreeSWITCH-users mailing list<br>
&gt;<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>&lt;mailto:<a href="mailto:FreeSWITCH-users@lists.fr" target="_blank">FreeSWITCH-users@lists.fr</a><br>
&gt; <a href="http://eeswitch.org" target="_blank">eeswitch.org</a>&gt;<br>
&gt;<br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;<br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-use" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-use</a><br>
&gt; rs<br>
&gt;<br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
&gt; ----------------------------------------------------<br>
&gt; Alternatives:<br>
&gt;<br>
&gt; ----------------------------------------------------<br>
&gt; ______________________________________________________________________<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal">&gt; ___ Professional FreeSWITCH Consulting Services:<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal">&gt; <a href="mailto:consulting@freeswitch.org" target="_blank">
consulting@freeswitch.org</a><br>
&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;<br>
&gt; Official FreeSWITCH Sites<br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-use" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-use</a><br>
&gt; rs<br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
--<br>
Your life is like a penny. &nbsp;You're going to lose it. &nbsp;The question is:<br>
How do<br>
you spend it?<br>
<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;John Covici<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:covici@ccs.covici.com" target="_blank">covici@ccs.covici.com</a><br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server <a href="http://www.cudatel.com" target="_blank">
http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><o:p></o:p></p>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</div>
</body>
</html>