[asterisk-commits] mmichelson: trunk r97933 - in /trunk: ./ apps/app_voicemail.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jan 10 15:58:48 CST 2008


Author: mmichelson
Date: Thu Jan 10 15:58:47 2008
New Revision: 97933

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

........
r97925 | mmichelson | 2008-01-10 15:57:06 -0600 (Thu, 10 Jan 2008) | 6 lines

Let us leave a voicemail for ourself if we have logged into VoiceMailMain and chosen
to leave a message.

(closes issue #11735, reported and patched by jamessan)


........

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=97933&r1=97932&r2=97933
==============================================================================
--- trunk/apps/app_voicemail.c (original)
+++ trunk/apps/app_voicemail.c Thu Jan 10 15:58:47 2008
@@ -4300,8 +4300,8 @@
 		/* start optimistic */
 		valid_extensions = 1;
 		while (s) {
-			/* Don't forward to ourselves.  find_user is going to malloc since we have a NULL as first argument */
-			if (strcmp(s,sender->mailbox) && (receiver = find_user(NULL, context, s))) {
+			/* Don't forward to ourselves but allow leaving a message for ourselves (flag == 1).  find_user is going to malloc since we have a NULL as first argument */
+			if ((flag == 1 || strcmp(s,sender->mailbox)) && (receiver = find_user(NULL, context, s))) {
 				AST_LIST_INSERT_HEAD(&extensions, receiver, list);
 				found++;
 			} else {




More information about the asterisk-commits mailing list