Revision
14964
Author
brian
Date
2009-09-24 10:48:31 -0500 (Thu, 24 Sep 2009)

Log Message

announce number of saved messages when there are no new messages

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c (14963 => 14964)


--- freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c	2009-09-24 15:09:54 UTC (rev 14963)
+++ freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c	2009-09-24 15:48:31 UTC (rev 14964)
@@ -1831,6 +1831,8 @@
 				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++;
 				}