Summary:ASTERISK-08055: Voicemail copy to multiple boxes fails
Reporter:davebath (davebath)Labels:
Date Opened:2006-11-03 04:59:57.000-0600Date Closed:2006-11-03 13:15:25.000-0600
Versions:Frequency of
Description:I am seeing a problem with "group mailbox extensions" where the extension is purely a holding box for the announcement, and the message itself is copied to a set of mailboxes.

This functionality was perfect as late as 1.4beta3, but broken in this revision.

(Just for info, and i'm sure a related bug report somewhere, but the reason for the upgrade was that the Digium g729 modules seem to be boken in beta3, hence my upgrade to svn trunk).


Typical layout is:

In [acontext] in voicemail.conf

; Additional ?holding? box for group message
199 => 199,Group Mailbox,,,delete=1

And then in extensions.conf

exten => 199,1,VoiceMail(103@acontext&101@acontext..... (etc) |u)
exten => 199,2,Hangup

So the idea being, the voicemail is temporarily stored in 199, then copied to everyone else?s box, then deleted.  Works perfectly in everything up to SVN (including beta3).

So onto the console output:

   -- x=0, open writing:  /var/spool/asterisk/voicemail/acontext/103/tmp/JINAMD format: wav49, 0x9d75670
   -- x=1, open writing:  /var/spool/asterisk/voicemail/acontext/103/tmp/JINAMD format: gsm, 0x9d75988
   -- x=2, open writing:  /var/spool/asterisk/voicemail/context/103/tmp/JINAMD format: wav, 0x9d75c58
   -- User hung up

[Nov  3 00:22:55] NOTICE[8455]: app_voicemail.c:2541 copy_message: Copying message from 103@ acontext to 101@ acontext
[Nov  3 00:22:55] WARNING[8455]: app_voicemail.c:1737 base_encode: Failed to open log file: /var/spool/asterisk/voicemail/acontext /101/INBOX/msg0001.WAV: No such file or directory

Everyone in the list actaully does get sent an email (but it's an empty 277byte file), and nobody actaully has the message in their mailbox (and the file does not exist on disk).

Is it possible that the "delete" operation for box 199 is executing before the copy in this revision?
Comments:By: Joshua C. Colp (jcolp) 2006-11-03 13:15:24.000-0600

Should be fixed in trunk as of revision 47146. Thanks!