This commit is contained in:
Brian West 2013-02-12 17:03:00 -06:00
parent 060acff2dd
commit 090cdaa9d3
1 changed files with 3 additions and 1 deletions

View File

@ -1867,9 +1867,11 @@ static void update_mwi(vm_profile_t *profile, const char *id, const char *domain
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "MWI-Messages-Waiting", yn);
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "MWI-Update-Reason", update_reason);
switch_event_add_header(event, SWITCH_STACK_BOTTOM, "MWI-Message-Account", "%s@%s", id, domain_name);
/*
switch_event_add_header(event, SWITCH_STACK_BOTTOM, "MWI-Voice-Message", "%d/%d (%d/%d)", total_new_messages, total_saved_messages,
total_new_urgent_messages, total_saved_urgent_messages);
switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Cisco-MWI-Voice-Message", "%d/%d", total_new_messages, total_saved_messages);
*/
switch_event_add_header(event, SWITCH_STACK_BOTTOM, "MWI-Voice-Message", "%d/%d", total_new_messages, total_saved_messages);
switch_event_fire(&event);