<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:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:inherit;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I’m sure someone will correct this
if I’m wrong – Asterisk can’t make direct mp3 records because
it’s not a supported codec. Typically Asterisk records anything as a
gsm, ulaw or alaw file, depending on the codec used to run the connection to
the phone.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;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> Friday, April 24, 2009 12:30
PM<br>
<b><span style='font-weight:bold'>To:</span></b> Asterisk Users Mailing List -
Non-Commercial Discussion<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [asterisk-users]
Record in mp3</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0>
<tr>
<td valign=top style='padding:0in 0in 0in 0in'>
<p class=MsoNormal><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><br>
The recording I want is to save some reminders that my users can record. It
is not to save a conversation. So I think that there is not an overhead in
converting the audio on the fly in this case.But the question is: Asterisk
suport generate mp3 files directly?<br>
<br>
<br>
<br>
--- Em <b><span style='font-weight:bold'>sex, 24/4/09, Geraint Lee <i><span
style='font-style:italic'><geraint@gmail.com></span></i></span></b>
escreveu:<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><br>
De: Geraint Lee <geraint@gmail.com><br>
Assunto: Re: [asterisk-users] Record in mp3<br>
<st1:place w:st="on">Para</st1:place>: "Asterisk Users Mailing List -
Non-Commercial Discussion" <asterisk-users@lists.digium.com><br>
Data: Sexta-feira, 24 de Abril de 2009, 11:50<o:p></o:p></span></font></p>
<div id=yiv600508904>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>you probably don't want
to record directly to mp3 as there will be an overhead in converting the
audio on the fly and this will probably break your call recordings... you
should either record in the codec you are using for phone calls (i think?) or
in .wav and then convert afterwards (correct me if i'm wrong someone!).<o:p></o:p></span></font></p>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>2009/4/24 Jose Enes Mateus <<a
href="/mc/compose?to=jemateus@yahoo.com.br" target="_blank"
ymailto="mailto:jemateus@yahoo.com.br">jemateus@yahoo.com.br</a>><o:p></o:p></span></font></p>
<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0>
<tr>
<td valign=top style='padding:0in 0in 0in 0in;font-style:inherit;
font-variant:inherit;font-weight:inherit;font-size:inherit;line-height:
inherit;font-size-adjust: inherit;font-stretch: inherit'>
<p class=MsoNormal><font size=3 face=inherit><span style='font-size:12.0pt;
font-family:inherit'><br>
But have you tried to record directly in mp3, without to covert the file?<br>
<br>
<br>
--- Em <b><span style='font-weight:bold'>qui, 23/4/09, Danny Nicholas <i><span
style='font-style:italic'><<a href="/mc/compose?to=danny@debsinc.com"
target="_blank" ymailto="mailto:danny@debsinc.com">danny@debsinc.com</a>></span></i></span></b>
escreveu:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face=inherit><span style='font-size:12.0pt;
font-family:inherit'><br>
De: Danny Nicholas <<a href="/mc/compose?to=danny@debsinc.com"
target="_blank" ymailto="mailto:danny@debsinc.com">danny@debsinc.com</a>><br>
Assunto: Re: [asterisk-users] Record in mp3<br>
<st1:place w:st="on">Para</st1:place>: "'Asterisk Users Mailing List -
Non-Commercial Discussion'" <<a
href="/mc/compose?to=asterisk-users@lists.digium.com" target="_blank"
ymailto="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</a>><br>
Data: Quinta-feira, 23 de Abril de 2009, 17:33<o:p></o:p></span></font></p>
<div>
<div>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3 face=inherit><span
style='font-size:12.0pt;font-family:inherit'><o:p> </o:p></span></font></p>
<div>
<div>
<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;
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><font face=inherit><span
style='font-family:inherit'><o:p></o:p></span></font></p>
<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:navy'> </span></font><font face=inherit><span
style='font-family:inherit'><o:p></o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center>
</span></font></div>
<p><b><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:
Tahoma;font-weight:bold'>From:</span></font></b><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'> <a
href="/mc/compose?to=asterisk-users-bounces@lists.digium.com"
target="_blank" ymailto="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a>
[mailto:<a href="/mc/compose?to=asterisk-users-bounces@lists.digium.com"
target="_blank" ymailto="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a>]
<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> <a
href="/mc/compose?to=asterisk-users@lists.digium.com" target="_blank"
ymailto="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</a><br>
<b><span style='font-weight:bold'>Subject:</span></b> [asterisk-users]
Record in mp3</span></font><font face=inherit><span style='font-family:
inherit'><o:p></o:p></span></font></p>
</div>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> </span></font><font
face=inherit><span style='font-family:inherit'><o:p></o:p></span></font></p>
<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0>
<tr>
<td valign=top style='padding:0in 0in 0in 0in'>
<p><u><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>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<o:p></o:p></p>
</td>
</tr>
</table>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> </span></font><font
face=inherit><span style='font-family:inherit'><o:p></o:p></span></font></p>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=1 width="100%" align=center>
</span></font></div>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>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/"
target="_blank">Top 10</a> - <a
href="http://br.rd.yahoo.com/mail/taglines/mail/*http:/br.maisbuscados.yahoo.com/celebridades/"
target="_blank">Celebridades</a> - <a
href="http://br.rd.yahoo.com/mail/taglines/mail/*http:/br.maisbuscados.yahoo.com/m%C3%BAsica/"
target="_blank">Música</a> - <a
href="http://br.rd.yahoo.com/mail/taglines/mail/*http:/br.maisbuscados.yahoo.com/esportes/"
target="_blank">Esportes</a></span></font><font face=inherit><span
style='font-family:inherit'><o:p></o:p></span></font></p>
</div>
</div>
<p class=MsoNormal><font size=3 face=inherit><span style='font-size:12.0pt;
font-family:inherit'><o:p> </o:p></span></font></p>
</div>
</div>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3 face=inherit><span
style='font-size:12.0pt;font-family:inherit'>-----Anexo incorporado-----<o:p></o:p></span></font></p>
<div>
<p class=MsoNormal><font size=3 face=inherit><span style='font-size:12.0pt;
font-family:inherit'>_______________________________________________<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><o:p></o:p></span></font></p>
</div>
</td>
</tr>
</table>
<div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=1 width="100%" align=center>
</span></font></div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>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/"
target="_blank">Top 10</a> - <a
href="http://br.rd.yahoo.com/mail/taglines/mail/*http:/br.maisbuscados.yahoo.com/celebridades/"
target="_blank">Celebridades</a> - <a
href="http://br.rd.yahoo.com/mail/taglines/mail/*http:/br.maisbuscados.yahoo.com/m%C3%BAsica/"
target="_blank">Música</a> - <a
href="http://br.rd.yahoo.com/mail/taglines/mail/*http:/br.maisbuscados.yahoo.com/esportes/"
target="_blank">Esportes</a><o:p></o:p></span></font></p>
</div>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><br>
_______________________________________________<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><o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><o:p> </o:p></span></font></p>
</div>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><br>
-----Anexo incorporado-----<o:p></o:p></span></font></p>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>_______________________________________________<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><o:p></o:p></span></font></p>
</div>
</td>
</tr>
</table>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=1 width="100%" align=center>
</span></font></div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>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><o:p></o:p></span></font></p>
</div>
</body>
</html>