提交 424738e9 authored 作者: Anthony Minessale's avatar Anthony Minessale

FS-5184 --resolve never too much logging

上级 ee308f00
...@@ -1855,6 +1855,8 @@ static void update_mwi(vm_profile_t *profile, const char *id, const char *domain ...@@ -1855,6 +1855,8 @@ static void update_mwi(vm_profile_t *profile, const char *id, const char *domain
switch_event_t *event; switch_event_t *event;
switch_event_t *message_event; switch_event_t *message_event;
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Update MWI: Processing for %s@%s in %s\n", id, domain_name, myfolder);
message_count(profile, id, domain_name, myfolder, &total_new_messages, &total_saved_messages, &total_new_urgent_messages, message_count(profile, id, domain_name, myfolder, &total_new_messages, &total_saved_messages, &total_new_urgent_messages,
&total_saved_urgent_messages); &total_saved_urgent_messages);
...@@ -1876,6 +1878,10 @@ static void update_mwi(vm_profile_t *profile, const char *id, const char *domain ...@@ -1876,6 +1878,10 @@ static void update_mwi(vm_profile_t *profile, const char *id, const char *domain
switch_event_fire(&event); switch_event_fire(&event);
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Update MWI: Messages Waiting %s\n", yn);
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Update MWI: Update Reason %s\n", update_reason);
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Update MWI: Message Account %s@%s\n", id, domain_name);
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Update MWI: Voice Message %d/%d\n", total_new_messages, total_saved_messages);
switch_event_create_subclass(&message_event, SWITCH_EVENT_CUSTOM, VM_EVENT_MAINT); switch_event_create_subclass(&message_event, SWITCH_EVENT_CUSTOM, VM_EVENT_MAINT);
switch_event_add_header_string(message_event, SWITCH_STACK_BOTTOM, "VM-Action", "mwi-update"); switch_event_add_header_string(message_event, SWITCH_STACK_BOTTOM, "VM-Action", "mwi-update");
......
...@@ -2112,6 +2112,7 @@ static void skinny_message_waiting_event_handler(switch_event_t *event) ...@@ -2112,6 +2112,7 @@ static void skinny_message_waiting_event_handler(switch_event_t *event)
switch_assert(dup_account != NULL); switch_assert(dup_account != NULL);
switch_split_user_domain(dup_account, &user, &host); switch_split_user_domain(dup_account, &user, &host);
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "MWI Event received for account %s with messages waiting %s\n", account, yn);
if ((pname = switch_event_get_header(event, "skinny-profile"))) { if ((pname = switch_event_get_header(event, "skinny-profile"))) {
if (!(profile = skinny_find_profile(pname))) { if (!(profile = skinny_find_profile(pname))) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论