Revision
15639
Author
mochouinard
Date
2009-11-23 17:15:26 -0600 (Mon, 23 Nov 2009)

Log Message

mod_voicemail: Fix r15636 so New are New, and Old are Old messages

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c (15638 => 15639)


--- freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c	2009-11-23 23:07:41 UTC (rev 15638)
+++ freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c	2009-11-23 23:15:26 UTC (rev 15639)
@@ -1073,7 +1073,7 @@
 static int message_count_callback(void *pArg, int argc, char **argv, char **columnNames)
 {
 	msg_cnt_callback_t *cbt = (msg_cnt_callback_t *) pArg;
-	if (atoi(argv[0]) == 0) { /* UnRead */
+	if (atoi(argv[0]) == 1) { /* UnRead */
 		if (!strcasecmp(argv[1], "A_URGENT")) { /* Urgent */
 			cbt->total_new_urgent_messages = atoi(argv[2]);
 		} else { /* Normal */