Summary: | ASTERISK-10870: setting voicemail greeting when using IMAP backend causes zero byte messages to be left | ||
Reporter: | Simon P. Ditner (spditner) | Labels: | |
Date Opened: | 2007-11-23 11:16:25.000-0600 | Date Closed: | 2007-11-28 11:34:47.000-0600 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | Applications/app_voicemail |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | If you are using an imap server for storage, a zero-byte message is left on the IMAP server every time you set a voicemail greeting. I created these by dialing into the voicemail manager, and going to the prompt recording: - option 0, - option 1, - record a prompt, # - accept 1, check your email for a new zero-byte wav file. The following error message will also appear on the console: [Nov 23 12:06:28] WARNING[6032]: app_voicemail.c:1632 base_encode: Failed to open file: /var/spool/asterisk/voicemail/default/8080/unavail/msg-001.WAV: No such file or directory These zero byte wav files also cause the voicemail manager to hangup when it comes across one, making them impossible to delete from the voicemail manager You will see the following message on the console whwen you attempt to remove it: [Nov 23 12:04:25] WARNING[6029]: format_wav_gsm.c:109 check_header: Read failed (type) [Nov 23 12:04:25] WARNING[6029]: file.c:316 fn_wrapper: Unable to open format wav49 [Nov 23 12:04:25] WARNING[6029]: format_wav_gsm.c:109 check_header: Read failed (type) [Nov 23 12:04:25] WARNING[6029]: file.c:316 fn_wrapper: Unable to open format wav49 [Nov 23 12:04:25] WARNING[6029]: file.c:866 ast_streamfile: Unable to open /var/spool/asterisk/voicemail/default/8080/tmp/msg0000 (format 0x4 (ulaw)): No such file or directory This may be related to ticket ASTERISK-1102083, however the patch posted there did not help. | ||
Comments: | By: Mark Michelson (mmichelson) 2007-11-28 09:31:11.000-0600 I have reproduced this issue locally and will work on a fix as soon as I can. By: Digium Subversion (svnbot) 2007-11-28 11:28:48.000-0600 Repository: asterisk Revision: 89999 U branches/1.4/apps/app_voicemail.c ------------------------------------------------------------------------ r89999 | mmichelson | 2007-11-28 11:28:47 -0600 (Wed, 28 Nov 2007) | 6 lines Recording greetings when using IMAP storage was causing zero-length files to be stored. Since greetings are not retrieved from IMAP anyway, it is pointless to attempt storing them there. (closes issue ASTERISK-10870, reported by spditner, patched by me) ------------------------------------------------------------------------ By: Digium Subversion (svnbot) 2007-11-28 11:34:47.000-0600 Repository: asterisk Revision: 90000 _U trunk/ ------------------------------------------------------------------------ r90000 | mmichelson | 2007-11-28 11:34:45 -0600 (Wed, 28 Nov 2007) | 13 lines Blocked revisions 89999 via svnmerge ........ r89999 | mmichelson | 2007-11-28 11:30:47 -0600 (Wed, 28 Nov 2007) | 6 lines Recording greetings when using IMAP storage was causing zero-length files to be stored. Since greetings are not retrieved from IMAP anyway, it is pointless to attempt storing them there. (closes issue ASTERISK-10870, reported by spditner, patched by me) ........ ------------------------------------------------------------------------ |