From: Anthony Minessale Date: Fri, 4 Nov 2011 21:58:35 +0000 (-0500) Subject: fix wrong message count with saved urgent messages X-Git-Tag: v1.2-rc1~27^2~220 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54b4b088d911d4c80f224ed561d8e278229a75ff;p=thirdparty%2Ffreeswitch.git fix wrong message count with saved urgent messages --- diff --git a/src/mod/applications/mod_voicemail/mod_voicemail.c b/src/mod/applications/mod_voicemail/mod_voicemail.c index 15795ca5b2..19a8bc07b8 100644 --- a/src/mod/applications/mod_voicemail/mod_voicemail.c +++ b/src/mod/applications/mod_voicemail/mod_voicemail.c @@ -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++; }