From 460f66fb7114a0464aa7b661212a6b4110f542f7 Mon Sep 17 00:00:00 2001 From: Brian West Date: Thu, 24 Sep 2009 15:48:31 +0000 Subject: [PATCH] announce number of saved messages when there are no new messages git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14964 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_voicemail/mod_voicemail.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mod/applications/mod_voicemail/mod_voicemail.c b/src/mod/applications/mod_voicemail/mod_voicemail.c index 39e229560c..f53a54d75a 100644 --- a/src/mod/applications/mod_voicemail/mod_voicemail.c +++ b/src/mod/applications/mod_voicemail/mod_voicemail.c @@ -1831,6 +1831,8 @@ 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); + TRY_CODE(switch_ivr_phrase_macro(session, VM_MESSAGE_COUNT_MACRO, msg_count, NULL, &folder_args)); informed++; }