[Home]

Summary:ASTERISK-09472: when using RECORD FILE mp3, * is crashing
Reporter:Clod Patry (junky)Labels:
Date Opened:2007-05-18 22:29:00Date Closed:2007-07-11 19:59:17
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) record_file_mp3.txt
Description:I know we're not supposed to RECORD FILE mp3, but if you do, you will get a lot of:
[May 18 23:19:50] ERROR[2264]: format_mp3.c:250 mp3_write: I Can't write MP3 only read them.
[May 18 23:19:50] WARNING[2264]: file.c:176 ast_writestream: Natural write failed
[May 18 23:19:50] ERROR[2264]: format_mp3.c:250 mp3_write: I Can't write MP3 only read them.
[May 18 23:19:50] WARNING[2264]: file.c:176 ast_writestream: Natural write failed
[May 18 23:19:50] ERROR[2264]: format_mp3.c:250 mp3_write: I Can't write MP3 only read them.
[May 18 23:19:50] WARNING[2264]: file.c:176 ast_writestream: Natural write failed
[May 18 23:19:50] ERROR[2264]: format_mp3.c:250 mp3_write: I Can't write MP3 only read them.
[May 18 23:19:50] WARNING[2264]: file.c:176 ast_writestream: Natural write failed
[May 18 23:19:50] ERROR[2264]: format_mp3.c:250 mp3_write: I Can't write MP3 only read them.
[May 18 23:19:50] WARNING[2264]: file.c:176 ast_writestream: Natural write failed
[May 18 23:19:50] ERROR[2264]: format_mp3.c:292 mp3_trunc: I Can't write MP3 only read them.
AGI Tx >> 200 result=0 (timeout) endpos=0



Then * will segfaults.

****** ADDITIONAL INFORMATION ******

This is really easy to reproduce:
   -- Executing [122@default:1] Record("SIP/10-006cbee0", "filename.mp3") in new stack
   -- <SIP/10-006cbee0> Playing 'beep' (language 'fr')
[May 18 23:32:46] ERROR[25375]: format_mp3.c:285 mp3_rewrite: I Can't write MP3 only read them.
[May 18 23:32:46] WARNING[25375]: file.c:313 fn_wrapper: Unable to rewrite format mp3
[May 18 23:32:46] WARNING[25375]: file.c:941 ast_writefile: Unable to rewrite /var/lib/asterisk/sounds/filename.mp3
[May 18 23:32:46] ERROR[25375]: format_mp3.c:250 mp3_write: I Can't write MP3 only read them.
[May 18 23:32:46] WARNING[25375]: file.c:199 ast_writestream: Translated frame write failed
[May 18 23:32:46] WARNING[25375]: app_record.c:303 record_exec: Problem writing frame
[May 18 23:32:46] ERROR[25375]: format_mp3.c:292 mp3_trunc: I Can't write MP3 only read them.
troy*CLI>
Disconnected from Asterisk server
Attempting to reconnect for 30 seconds


(when using * 1.4.2 and addons 1.4.1 for troy)


Comments:By: Russell Bryant (russell) 2007-06-06 17:34:44

I am changing this to minor since the crash can be very easily avoided since the output tells you exactly what is wrong.

By: Joshua C. Colp (jcolp) 2007-06-06 18:41:21

Fixed in 1.4 as of revision 67924 and trunk as of revision 67925.