[asterisk-users] Record in mp3

Danny Nicholas danny at debsinc.com
Thu Apr 23 15:33:22 CDT 2009


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.

 

  _____  

From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Jose Enes
Mateus
Sent: Thursday, April 23, 2009 3:28 PM
To: asterisk-users at lists.digium.com
Subject: [asterisk-users] Record in mp3

 


Somebody knows if I can save files in mp3 with the Record command on
Asterisk?
I try to recompile sox to suport mp3 but Asterisk return the folowing
message when I use the Record command:

- Executing [*40 at liberado15:15] Record("SIP/1201-083453c8",
"/var/spool/asterisk/alarme/alarme-1201-200905121212:mp3") in new stack
    -- <SIP/1201-083453c8> Playing 'beep' (language 'pt_BR')
[Apr 23 17:22:36] ERROR[4494]: format_mp3.c:283 mp3_rewrite: I Can't write
MP3 only read them.
[Apr 23 17:22:36] WARNING[4494]: file.c:378 fn_wrapper: Unable to rewrite
format mp3
[Apr 23 17:22:36] WARNING[4494]: file.c:1092 ast_writefile: Unable to
rewrite /var/spool/asterisk/alarme/alarme-1201-200905121212.mp3
[Apr 23 17:22:36] WARNING[4494]: app_record.c:272 record_exec: Could not
create file /var/spool/asterisk/alarme/alarme-1201-200905121212

I'am doing something wrong?

Thanks

 

  _____  

Veja quais são os assuntos do momento no Yahoo! + Buscados: Top
<http://br.rd.yahoo.com/mail/taglines/mail/*http:/br.maisbuscados.yahoo.com/
>  10 - Celebridades
<http://br.rd.yahoo.com/mail/taglines/mail/*http:/br.maisbuscados.yahoo.com/
celebridades/>  - Música
<http://br.rd.yahoo.com/mail/taglines/mail/*http:/br.maisbuscados.yahoo.com/
m%C3%BAsica/>  - Esportes
<http://br.rd.yahoo.com/mail/taglines/mail/*http:/br.maisbuscados.yahoo.com/
esportes/> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090423/c2ef6acb/attachment.htm 


More information about the asterisk-users mailing list