Summary: | ASTERISK-11466: crash when trying to record unkonwn format | ||
Reporter: | jakepdev (jakepdev) | Labels: | |
Date Opened: | 2008-02-18 13:42:28.000-0600 | Date Closed: | 2008-02-18 14:50:00.000-0600 |
Priority: | Critical | Regression? | No |
Status: | Closed/Complete | Components: | Applications/app_voicemail |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) bt.txt | |
Description: | I set format = ogg inside voicemail.conf. As soon as someone tries to record a voicemail, Asterisk seg faults. | ||
Comments: | By: jakepdev (jakepdev) 2008-02-18 13:45:13.000-0600 This error is displayed in the asterisk logs: [Feb 18 13:18:14] WARNING[21410] app.c: Error creating writestream '/var/spool/asterisk/voicemail/default/8816/tmp/vMIYqe', format 'ogg' By: Digium Subversion (svnbot) 2008-02-18 14:48:42.000-0600 Repository: asterisk Revision: 103786 U branches/1.4/main/app.c ------------------------------------------------------------------------ r103786 | mmichelson | 2008-02-18 14:48:42 -0600 (Mon, 18 Feb 2008) | 10 lines There was an invalid assumption when calculating the duration of a file that the filestream in question was created properly. Unfortunately this led to a segfault in the situation where an unknown format was specified in voicemail.conf and a voicemail was recorded. Now, we first check to be sure that the stream was written correctly or else assume a zero duration. (closes issue ASTERISK-11466) Reported by: jakep Tested by: putnopvut ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=103786 By: Digium Subversion (svnbot) 2008-02-18 14:50:00.000-0600 Repository: asterisk Revision: 103787 _U trunk/ U trunk/main/app.c ------------------------------------------------------------------------ r103787 | mmichelson | 2008-02-18 14:49:59 -0600 (Mon, 18 Feb 2008) | 18 lines Merged revisions 103786 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r103786 | mmichelson | 2008-02-18 14:52:09 -0600 (Mon, 18 Feb 2008) | 10 lines There was an invalid assumption when calculating the duration of a file that the filestream in question was created properly. Unfortunately this led to a segfault in the situation where an unknown format was specified in voicemail.conf and a voicemail was recorded. Now, we first check to be sure that the stream was written correctly or else assume a zero duration. (closes issue ASTERISK-11466) Reported by: jakep Tested by: putnopvut ........ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=103787 |