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
This commit is contained in:
Brian West 2009-09-24 15:48:31 +00:00
parent 371a6926c6
commit 460f66fb71
1 changed files with 2 additions and 0 deletions

View File

@ -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++;
}