]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix wrong message count with saved urgent messages
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 4 Nov 2011 21:58:35 +0000 (16:58 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 4 Nov 2011 21:58:35 +0000 (16:58 -0500)
src/mod/applications/mod_voicemail/mod_voicemail.c

index 15795ca5b24d4c1b6e5c7abefcb827922ab373f5..19a8bc07b855d35c2c46da71b3534c2196d52bbf 100644 (file)
@@ -1963,7 +1963,7 @@ static void voicemail_check_main(switch_core_session_t *session, vm_profile_t *p
                                if (!informed) {
                                        switch_snprintf(msg_count, sizeof(msg_count), "0:new");
                                        TRY_CODE(switch_ivr_phrase_macro(session, VM_MESSAGE_COUNT_MACRO, msg_count, NULL, &folder_args));
-                                       switch_snprintf(msg_count, sizeof(msg_count), "%d:saved", total_saved_messages + total_saved_urgent_messages);
+                                       switch_snprintf(msg_count, sizeof(msg_count), "%d:saved", total_saved_messages);
                                        TRY_CODE(switch_ivr_phrase_macro(session, VM_MESSAGE_COUNT_MACRO, msg_count, NULL, &folder_args));
                                        informed++;
                                }