<html><body bgcolor="#FFFFFF"><div>The smart way to do it, would be to look for a text pattern that resembles a phone number (regex) so this info could be pulled from the email. You will also need a predefined table of extensions and email addresses somewhere (DB) <br></div><div><br class="webkit-block-placeholder"></div><div>You can measure the length of a soundfile using sox ;)</div><div><br class="webkit-block-placeholder"></div><div>The timestamp is a standard unix timestamp, I would fake the channel name and other things.</div><div><br class="webkit-block-placeholder"></div><div>It is quite a project, hope you have some programming experience.</div><div><br class="webkit-block-placeholder"></div><div>N8<br></div><div><br>On Nov 13, 2007, at 7:52 PM, Luisa Peralta <<a href="mailto:urdead4me@hotmail.com">urdead4me@hotmail.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div><div style="text-align: left;">yea... i know its like... stup.&^&... but my teacher want me to do that... i told him that it doesnt make sence.... BUT... he want it.. bad for me...<br><br><br><br><br></div><div><div style="text-align: left;">
<span style="color: rgb(51, 51, 153); font-weight: bold;">Luisa Peralta J.</span><br></div><span style="font-size: 12pt; font-family: 'Times New Roman';"><font color="#9900ff" face="Verdana, Geneva, Arial, Sans-serif" size="7"><span style="font-size: 12pt; font-family: 'Times New Roman';"><span style="text-decoration: underline;"></span><br></span></font></span>
<div align="center"><span style="" 12pt="" font-family="" times="" new="" roman="" ;="" mso-far=""></span></div></div><br><br><hr id="stopSpelling">> From: <a href="mailto:r.neese@gmail.com"><a href="mailto:r.neese@gmail.com">r.neese@gmail.com</a></a><br>> To: <a href="mailto:asterisk-bsd@lists.digium.com"><a href="mailto:asterisk-bsd@lists.digium.com">asterisk-bsd@lists.digium.com</a></a><br>> Date: Tue, 13 Nov 2007 16:14:34 -0800<br>> Subject: Re: [Asterisk-bsd] Asterisk/voicemail<br>> <br>> you dont have to convert it to gsm for it to play. asterisk can play wv files. <br>> and why waste the time when you just play the wav on your pc<br>> <br>> this would also takealot of scripting <br>> <br>> <br>> On November 13, 2007 02:07:26 pm Luisa Peralta wrote:<br>> > Nop.<br>> ><br>> > EXAPLE: You Send me an EMAIL with an SOUND ATTACHMENT with (Like a .WAV<br>> > file). I nedd to get THAT attachment from the EMAIL, and PUT that SOUND<br>> > FILE in the VOICEMAIL FOLDER, and hear it in my PHONE.<br>> ><br>> > So i need to find a way that asterisk recognize that new file like a<br>> > VOICEMAIL ....<br>> ><br>> > get it?? mmmm its like.. dificult.... (Sorry)<br>> ><br>> ><br>> ><br>> > Luisa Peralta J.<br>> ><br>> > > From: <a href="mailto:r.neese@gmail.com"><a href="mailto:r.neese@gmail.com">r.neese@gmail.com</a></a><br>> > > To: <a href="mailto:asterisk-bsd@lists.digium.com"><a href="mailto:asterisk-bsd@lists.digium.com">asterisk-bsd@lists.digium.com</a></a><br>> > > Date: Tue, 13 Nov 2007 13:02:32 -0800<br>> > > Subject: Re: [Asterisk-bsd] Asterisk/voicemail<br>> > ><br>> > > what are you trying to do you have not explaind it properly.. are you<br>> > > trying to send the same vm to multi users ?<br>> > ><br>> > > On November 13, 2007 12:43:50 pm Luisa Peralta wrote:<br>> > > > Hello!<br>> > > ><br>> > > > I am doing this thing.. i have to take one attachment .WAV from an<br>> > > > email, and take it an put it in the folder that correspond to it<br>> > > > extention... (/var/spool/asterisk/voicemail/default/105/INBOX for<br>> > > > example..) i could get the .wav with this thing.. ripMIME... an whith<br>> > > > sox i convert it to .gsm, but my problem is that i have to create the<br>> > > > .txt that the asterisk voicemail needs to interpret the message, i mean<br>> > > > there is all the information about the mess... i mean, from who, what<br>> > > > time, etc etc,,,,<br>> > > ><br>> > > > example: (this is a real thing.. ... i have 6 mes...each one have a<br>> > > > .txt file....)<br>> > > ><br>> > > > root@central:/var/spool/asterisk/voicemail/default/107/INBOX# ls<br>> > > > msg0000.gsm msg0001.gsm msg0002.gsm msg0003.gsm msg0004.gsm<br>> > > > msg0005.gsm msg0000.txt msg0001.txt msg0002.txt <br>> > > > msg0003.txt msg0004.txt msg0005.txt msg0000.wav msg0001.wav <br>> > > > msg0002.wav msg0003.wav msg0004.wav msg0005.wav msg0000.WAV <br>> > > > msg0001.WAV msg0002.WAV msg0003.WAV msg0004.WAV msg0005.WAV<br>> > > ><br>> > > > this is msg0004.txt<br>> > > > root@central:/var/spool/asterisk/voicemail/default/107/INBOX# cat<br>> > > > msg0004.txt ;<br>> > > > ; Message Information file<br>> > > > ;<br>> > > > [message]<br>> > > > origmailbox=107<br>> > > > context=macro-stdexten<br>> > > > macrocontext=DefaultOutgoingRule<br>> > > > exten=s-BUSY<br>> > > > priority=6<br>> > > > callerchan=SIP/107-b6b00468<br>> > > > callerid="Aneury Disipulo" <107><br>> > > > origdate=Tue Oct 30 06:210:10 PM AST 2007<br>> > > > origtime=1193782870<br>> > > > category=<br>> > > > duration=47<br>> > > ><br>> > > ><br>> > > > ------------------<br>> > > > I need to find a way to generate this file for files.wav that i want to<br>> > > > put into this folder....<br>> > > ><br>> > > > CAN SOMEONE HELP???<br>> > > ><br>> > > ><br>> > > ><br>> > > > Luisa Peralta J.<br>> > > ><br>> > > ><br>> > > ><br>> > > ><br>> > > > _________________________________________________________________<br>> > > > Express yourself instantly with MSN Messenger! Download today it's<br>> > > > FREE! <a href="http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/"><a href="http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/">http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/</a></a><br>> > ><br>> > > --<br>> > > Welcome to the World. An the World gets smaller.<br>> > ><br>> > > _______________________________________________<br>> > > --Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--"><a href="http://www.api-digital.com--">http://www.api-digital.com--</a></a><br>> > ><br>> > > Asterisk-BSD mailing list<br>> > > To UNSUBSCRIBE or update options visit:<br>> > > <a href="http://lists.digium.com/mailman/listinfo/asterisk-bsd"><a href="http://lists.digium.com/mailman/listinfo/asterisk-bsd">http://lists.digium.com/mailman/listinfo/asterisk-bsd</a></a><br>> ><br>> > _________________________________________________________________<br>> > Express yourself instantly with MSN Messenger! Download today it's FREE!<br>> > <a href="http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/"><a href="http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/">http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/</a></a><br>> <br>> <br>> <br>> -- <br>> Welcome to the World. An the World gets smaller.<br>> <br>> _______________________________________________<br>> --Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--"><a href="http://www.api-digital.com--">http://www.api-digital.com--</a></a><br>> <br>> Asterisk-BSD mailing list<br>> To UNSUBSCRIBE or update options visit:<br>> <a href="http://lists.digium.com/mailman/listinfo/asterisk-bsd"><a href="http://lists.digium.com/mailman/listinfo/asterisk-bsd">http://lists.digium.com/mailman/listinfo/asterisk-bsd</a></a><br><br><hr>Express yourself instantly with MSN Messenger! <a href="http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/" target="_new">MSN Messenger</a>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>--Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--"><a href="http://www.api-digital.com--">http://www.api-digital.com--</a></a></span><br><span></span><br><span>Asterisk-BSD mailing list</span><br><span>To UNSUBSCRIBE or update options visit:</span><br><span> <a href="http://lists.digium.com/mailman/listinfo/asterisk-bsd"><a href="http://lists.digium.com/mailman/listinfo/asterisk-bsd">http://lists.digium.com/mailman/listinfo/asterisk-bsd</a></a></span></div></blockquote></body></html>