[asterisk-commits] russell: trunk r78102 - in /trunk: ./ apps/app_voicemail.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Aug 3 15:21:41 CDT 2007


Author: russell
Date: Fri Aug  3 15:21:41 2007
New Revision: 78102

URL: http://svn.digium.com/view/asterisk?view=rev&rev=78102
Log:
Merged revisions 78101 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r78101 | russell | 2007-08-03 15:14:06 -0500 (Fri, 03 Aug 2007) | 10 lines

(closes issue #10194)
Reported by: blitzrage
Patches:
      bug0010194 uploaded by vovochka
Tested by: blitzrage

Fix a problem when you call Voicemail() with multiple mailboxes specified and 
ODBC_STORAGE is in use.  The audio part of the message was only given to the
first mailbox specified.

........

Modified:
    trunk/   (props changed)
    trunk/apps/app_voicemail.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_voicemail.c?view=diff&rev=78102&r1=78101&r2=78102
==============================================================================
--- trunk/apps/app_voicemail.c (original)
+++ trunk/apps/app_voicemail.c Fri Aug  3 15:21:41 2007
@@ -4154,8 +4154,14 @@
 		if (!attach_user_voicemail)
 			attach_user_voicemail = ast_test_flag((&globalflags), VM_ATTACH);
 
+		if (attach_user_voicemail)
+			RETRIEVE(todir, msgnum, vmu->mailbox, vmu->context);
+
 		/*XXX possible imap issue, should category be NULL XXX*/
 		sendmail(myserveremail, vmu, msgnum, vmu->context, vmu->mailbox, cidnum, cidname, fn, fmt, duration, attach_user_voicemail, chan, category);
+
+		if (attach_user_voicemail)
+			DISPOSE(todir, msgnum);
 	}
 
 	if (!ast_strlen_zero(vmu->pager))




More information about the asterisk-commits mailing list