]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_voicemail: Fix r15636 so New are New, and Old are Old messages
authorMarc Olivier Chouinard <mochouinard@moctel.com>
Mon, 23 Nov 2009 23:15:26 +0000 (23:15 +0000)
committerMarc Olivier Chouinard <mochouinard@moctel.com>
Mon, 23 Nov 2009 23:15:26 +0000 (23:15 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15639 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_voicemail/mod_voicemail.c

index ff45950166a9f36d34666d61956bff35e6a987b3..e37fa97ff8b147046eb103c1e2e2d6182b286c2e 100644 (file)
@@ -1073,7 +1073,7 @@ typedef struct msg_cnt_callback msg_cnt_callback_t;
 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 */