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:
parent
371a6926c6
commit
460f66fb71
|
@ -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++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue