<div dir="ltr">Cool. Sounds like a great recipe to save on the wiki...<div><div><div dir="ltr"><span style="font-family:Verdana,Arial,Helvetica,sans-serif;font-size:small">-Avi</span></div></div><br><div class="gmail_quote">

On Thu, Jul 25, 2013 at 10:34 PM, Karl Schmidt <span dir="ltr">&lt;<a href="mailto:karl@xtronics.com" target="_blank">karl@xtronics.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

This turns out to be utterly simple - no need for an external script - much better than phone based<br>
voicemail:<br>
<br>
  &lt;include&gt;<br>
  &lt;extension name=&quot;my_voicemail&quot;&gt;<br>
     &lt;condition field=&quot;destination_number&quot; expression=&quot;^.*$&quot;&gt;<br>
       &lt;action application=&quot;playback&quot; data=&quot;mysounds/answer.wav&quot;/&gt;<br>
       &lt;action application=&quot;set&quot; data=&quot;file=/home/freeswitch/voicemail/${strepoch()}.wav&quot;/&gt;<br>
       &lt;action application=&quot;record&quot; data=&quot;${file} 300 100 5&quot;/&gt;<br>
       &lt;action application=&quot;sleep&quot; data=&quot;30&quot;/&gt;<br>
&lt;action application=&quot;system&quot; data=&#39;echo &quot;See attached Voice-mail message&quot; | mutt -a ${file} -s<br>
&quot;Voicemail Message&quot; -- <a href="mailto:user@example.com">user@example.com</a>&#39; /&gt;<br>
     &lt;/condition&gt;<br>
  &lt;/extension&gt;<br>
  &lt;/include&gt;<br>
<br>
You can add a second system call to delete after you send if it makes your day.<br>
<br>
&lt;action application=&quot;system&quot; data=&#39;rm -f ${file}&#39;/&gt;<br>
<div class="im"><br>
<br>
--------------------------------------------------------------------------------<br>
Karl Schmidt                                  EMail <a href="mailto:Karl@xtronics.com">Karl@xtronics.com</a><br>
Transtronics, Inc.                              WEB <a href="http://secure.transtronics.com" target="_blank">http://secure.transtronics.com</a><br>
3209 West 9th Street                             Ph <a href="tel:%28785%29%20841-3089" value="+17858413089">(785) 841-3089</a><br>
Lawrence, KS 66049                              FAX <a href="tel:%28785%29%20841-0434" value="+17858410434">(785) 841-0434</a><br>
<br>
</div>The only valid market survey is a signed purchase order. -- Jay Last<br>
<div class="HOEnZb"><div class="h5">--------------------------------------------------------------------------------<br>
<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><br>
</div></div></blockquote></div><br></div></div>