[asterisk-commits] mmichelson: branch jrothenberger/asterisk-urgent r106503 - /team/jrothenberge...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Mar 6 18:34:14 CST 2008
Author: mmichelson
Date: Thu Mar 6 18:34:13 2008
New Revision: 106503
URL: http://svn.digium.com/view/asterisk?view=rev&rev=106503
Log:
Fix a bug related to browsing messages. The newmessage count was being
incremented or decremented even if you had actually just deleted or undeleted an
urgent message. This corrects the error, but there is still a bit more work to
be done in this section.
Modified:
team/jrothenberger/asterisk-urgent/apps/app_voicemail.c
Modified: team/jrothenberger/asterisk-urgent/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/team/jrothenberger/asterisk-urgent/apps/app_voicemail.c?view=diff&rev=106503&r1=106502&r2=106503
==============================================================================
--- team/jrothenberger/asterisk-urgent/apps/app_voicemail.c (original)
+++ team/jrothenberger/asterisk-urgent/apps/app_voicemail.c Thu Mar 6 18:34:13 2008
@@ -7509,14 +7509,24 @@
if (useadsi)
adsi_delete(chan, &vms);
if (vms.deleted[vms.curmsg]) {
- if (play_folder == 0)
- vms.newmessages--;
+ if (play_folder == 0) {
+ if (in_urgent) {
+ vms.urgentmessages--;
+ } else {
+ vms.newmessages--;
+ }
+ }
else if (play_folder == 1)
vms.oldmessages--;
cmd = ast_play_and_wait(chan, "vm-deleted");
} else {
- if (play_folder == 0)
- vms.newmessages++;
+ if (play_folder == 0) {
+ if (in_urgent) {
+ vms.urgentmessages++;
+ } else {
+ vms.newmessages++;
+ }
+ }
else if (play_folder == 1)
vms.oldmessages++;
cmd = ast_play_and_wait(chan, "vm-undeleted");
More information about the asterisk-commits
mailing list