<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"><<a href="mailto:karl@xtronics.com" target="_blank">karl@xtronics.com</a>></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>
<include><br>
<extension name="my_voicemail"><br>
<condition field="destination_number" expression="^.*$"><br>
<action application="playback" data="mysounds/answer.wav"/><br>
<action application="set" data="file=/home/freeswitch/voicemail/${strepoch()}.wav"/><br>
<action application="record" data="${file} 300 100 5"/><br>
<action application="sleep" data="30"/><br>
<action application="system" data='echo "See attached Voice-mail message" | mutt -a ${file} -s<br>
"Voicemail Message" -- <a href="mailto:user@example.com">user@example.com</a>' /><br>
</condition><br>
</extension><br>
</include><br>
<br>
You can add a second system call to delete after you send if it makes your day.<br>
<br>
<action application="system" data='rm -f ${file}'/><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>