Summary: | ASTERISK-02905: canceled voicemail emails corrupt wav | ||
Reporter: | gr0k (gr0k) | Labels: | |
Date Opened: | 2004-11-30 10:33:41.000-0600 | Date Closed: | 2008-01-15 15:15:18.000-0600 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Applications/app_voicemail |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | Whenever someone calls in, goes to leave a voicemail, but then presses 0, it cancels the vm and doesn't save to their inbox, however it still sends an email with a corrupted wav file attached. Happens every time, this is what is logged: -- Playing 'vm-intro' (language 'en') -- Playing 'beep' (language 'en') -- Recording the message -- x=0, open writing: /var/spool/asterisk/voicemail/default/84184/INBOX/msg0000 format: wav49, 0x8172278 -- User cancelled by pressing 0 -- Playing 'vm-deleted' (language 'en') -- Playing 'vm-sorry' (language 'en') Nov 30 11:23:18 WARNING[1126177712]: app_voicemail.c:772 base_encode: Failed to open log file: /var/spool/asterisk/voicemail/default/84184/INBOX/msg0000.WAV: No such file or directory | ||
Comments: | By: Brian West (bkw918) 2004-11-30 11:15:37.000-0600 dont use wav49 then. It has headers and we have no way to pad it out correctly. bkw By: gr0k (gr0k) 2004-11-30 11:40:24.000-0600 Not sure I understand the difference, so I changed it to wav instead of wav49. Same thing happens and I got an email with a corrupted wav file attachment. -- Recording the message -- x=0, open writing: /var/spool/asterisk/voicemail/default/84184/INBOX/msg0000 format: wav, 0x814de00 -- User cancelled by pressing 0 -- Playing 'vm-deleted' (language 'en') -- Playing 'vm-sorry' (language 'en') Nov 30 12:34:00 WARNING[1126177712]: app_voicemail.c:772 base_encode: Failed to open log file: /var/spool/asterisk/voicemail/default/84184/INBOX/msg0000.wav: No such file or directory By: Brian West (bkw918) 2004-11-30 11:59:52.000-0600 It shoudlnt' be sending you an email at all when someone cancels out.. I think that is the real bug. Notice the file is EMPTY ie not found. bkw By: gr0k (gr0k) 2004-11-30 12:07:33.000-0600 Sorry, yes you're right, it shouldn't be sending the email. I just noticed the wav file attached to the email is 0 bytes. Note, it doesn't create a message in the user's voicemail box, just the email. By: Mark Spencer (markster) 2004-11-30 16:48:05.000-0600 Fixed in CVS head, but the fix isn't backwards portable By: Russell Bryant (russell) 2004-12-02 21:01:15.000-0600 fixed in 1.0 By: Digium Subversion (svnbot) 2008-01-15 15:15:18.000-0600 Repository: asterisk Revision: 4360 U trunk/apps/app_voicemail.c ------------------------------------------------------------------------ r4360 | markster | 2008-01-15 15:15:18 -0600 (Tue, 15 Jan 2008) | 2 lines If messages is deleted, don't send it (bug ASTERISK-2905) ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=4360 |