]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_voicemail: Change so total_new_messages and total_saved_messages include the...
authorMarc Olivier Chouinard <mochouinard@moctel.com>
Wed, 25 Nov 2009 18:26:49 +0000 (18:26 +0000)
committerMarc Olivier Chouinard <mochouinard@moctel.com>
Wed, 25 Nov 2009 18:26:49 +0000 (18:26 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15670 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_voicemail/mod_voicemail.c

index 3f7e4e6624100d7dbca7387753c3ca86668c4f37..a9979b60d353044de99cf087b4f83a487a45e7d9 100644 (file)
@@ -1283,9 +1283,9 @@ static void message_count(vm_profile_t *profile, const char *id_in, const char *
 
        vm_execute_sql_callback(profile, profile->mutex, sql, message_count_callback, &cbt);
 
-       *total_new_messages = cbt.total_new_messages;
+       *total_new_messages = cbt.total_new_messages + cbt.total_new_urgent_messages;
        *total_new_urgent_messages = cbt.total_new_urgent_messages;
-       *total_saved_messages = cbt.total_saved_messages;
+       *total_saved_messages = cbt.total_saved_messages + cbt.total_saved_urgent_messages;
        *total_saved_urgent_messages = cbt.total_saved_urgent_messages;
 
        if (myid != id_in) {