<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><br>But have you tried to record directly in mp3, without to covert the file?<br><br><br>--- Em <b>qui, 23/4/09, Danny Nicholas <i><danny@debsinc.com></i></b> escreveu:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>De: Danny Nicholas <danny@debsinc.com><br>Assunto: Re: [asterisk-users] Record in mp3<br>Para: "'Asterisk Users Mailing List - Non-Commercial Discussion'" <asterisk-users@lists.digium.com><br>Data: Quinta-feira, 23 de Abril de 2009, 17:33<br><br><div id="yiv1271658881">
<style>
<!--
#yiv1271658881
_filtered #yiv1271658881 {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}
#yiv1271658881
#yiv1271658881 p.MsoNormal, #yiv1271658881 li.MsoNormal, #yiv1271658881 div.MsoNormal
        {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman";}
#yiv1271658881 a:link, #yiv1271658881 span.MsoHyperlink
        {color:blue;text-decoration:underline;}
#yiv1271658881 a:visited, #yiv1271658881 span.MsoHyperlinkFollowed
        {color:blue;text-decoration:underline;}
#yiv1271658881 span.EmailStyle17
        {font-family:Arial;color:navy;}
_filtered #yiv1271658881 {margin:1.0in 1.25in 1.0in 1.25in;}
#yiv1271658881 div.Section1
        {}
-->
</style>
<div class="Section1">
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">The way I read to do this is to use sox to
create a wav file, then use lame to convert the wav to mp3. I did this for
some MOH files.</span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>
<div>
<div class="MsoNormal" style="text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">
<hr tabindex="-1" align="center" size="2" width="100%">
</span></font></div>
<p class="MsoNormal"><b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;">
asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] <b><span style="font-weight: bold;">On Behalf Of </span></b>Jose Enes Mateus<br>
<b><span style="font-weight: bold;">Sent:</span></b> Thursday, April 23, 2009
3:28 PM<br>
<b><span style="font-weight: bold;">To:</span></b>
asterisk-users@lists.digium.com<br>
<b><span style="font-weight: bold;">Subject:</span></b> [asterisk-users] Record
in mp3</span></font></p>
</div>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>
<table class="MsoNormalTable" border="0" cellpadding="0" cellspacing="0">
<tbody><tr>
<td style="padding: 0in;" valign="top">
<p class="MsoNormal"><u><font face="Times New Roman" size="3"><span style="font-size: 12pt;">Somebody knows</span></font></u> if I can save files
in mp3 with the Record command on Asterisk?<br>
I try to recompile sox to suport mp3 but Asterisk return the folowing message
when I use the Record command:<br>
<br>
- Executing [*40@liberado15:15] Record("SIP/1201-083453c8",
"/var/spool/asterisk/alarme/alarme-1201-200905121212:mp3") in new
stack<br>
-- <SIP/1201-083453c8> Playing 'beep' (language
'pt_BR')<br>
[Apr 23 17:22:36] ERROR[4494]: format_mp3.c:283 mp3_rewrite: I Can't write
MP3 only read them.<br>
[Apr 23 17:22:36] WARNING[4494]: file.c:378 fn_wrapper: Unable to rewrite
format mp3<br>
[Apr 23 17:22:36] WARNING[4494]: file.c:1092 ast_writefile: Unable to rewrite
/var/spool/asterisk/alarme/alarme-1201-200905121212.mp3<br>
[Apr 23 17:22:36] WARNING[4494]: app_record.c:272 record_exec: Could not
create file /var/spool/asterisk/alarme/alarme-1201-200905121212<br>
<br>
I'am doing something wrong?<br>
<br>
Thanks</p>
</td>
</tr>
</tbody></table>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>
<div class="MsoNormal" style="text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">
<hr align="center" size="1" width="100%">
</span></font></div>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">Veja quais são os assuntos do momento no Yahoo! + Buscados: <a rel="nofollow" target="_blank" href="http://br.rd.yahoo.com/mail/taglines/mail/*http:/br.maisbuscados.yahoo.com/">Top
10</a> - <a rel="nofollow" target="_blank" href="http://br.rd.yahoo.com/mail/taglines/mail/*http:/br.maisbuscados.yahoo.com/celebridades/">Celebridades</a>
- <a rel="nofollow" target="_blank" href="http://br.rd.yahoo.com/mail/taglines/mail/*http:/br.maisbuscados.yahoo.com/m%C3%BAsica/">Música</a>
- <a rel="nofollow" target="_blank" href="http://br.rd.yahoo.com/mail/taglines/mail/*http:/br.maisbuscados.yahoo.com/esportes/">Esportes</a></span></font></p>
</div>
</div><br>-----Anexo incorporado-----<br><br><div class="plainMail">_______________________________________________<br>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</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" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></div></blockquote></td></tr></table><br>
<hr size=1>Veja quais são os assuntos do momento no Yahoo! + Buscados: <a href="http://br.rd.yahoo.com/mail/taglines/mail/*http://br.maisbuscados.yahoo.com/">Top 10</a> - <a href="http://br.rd.yahoo.com/mail/taglines/mail/*http://br.maisbuscados.yahoo.com/celebridades/">Celebridades</a> - <a href="http://br.rd.yahoo.com/mail/taglines/mail/*http://br.maisbuscados.yahoo.com/m%C3%BAsica/">Música</a> - <a href="http://br.rd.yahoo.com/mail/taglines/mail/*http://br.maisbuscados.yahoo.com/esportes/">Esportes</a>