From c4464c65fd24c6936d31fb32c9eb21ceda4e892e Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 16 Sep 2011 12:05:04 -0500 Subject: [PATCH] FS-3551 please update to this revision or greater and retest gathering the same logs with loglevel debug and global siptrace on --- src/mod/applications/mod_voicemail/mod_voicemail.c | 3 +++ src/mod/endpoints/mod_sofia/mod_sofia.c | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/mod/applications/mod_voicemail/mod_voicemail.c b/src/mod/applications/mod_voicemail/mod_voicemail.c index 0b88532874..3b12e7c7a1 100644 --- a/src/mod/applications/mod_voicemail/mod_voicemail.c +++ b/src/mod/applications/mod_voicemail/mod_voicemail.c @@ -1538,6 +1538,9 @@ static switch_status_t listen_file(switch_core_session_t *session, vm_profile_t msg.from = __FILE__; msg.string_arg = cid_buf; msg.message_id = SWITCH_MESSAGE_INDICATE_DISPLAY; + + switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "Sending display update [%s] to %s\n", + cid_buf, switch_channel_get_name(channel)); switch_core_session_receive_message(session, &msg); if (!zstr(cbt->cid_number) && (vm_announce_cid = switch_channel_get_variable(channel, "vm_announce_cid"))) { diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index 8ef3b92663..810d67e5ba 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -1981,12 +1981,15 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi char message[256] = ""; const char *ua = switch_channel_get_variable(tech_pvt->channel, "sip_user_agent"); switch_event_t *event; - + if (zstr(number)) { number = tech_pvt->caller_profile->destination_number; } - if (!sofia_test_flag(tech_pvt, TFLAG_UPDATING_DISPLAY)) { + if (sofia_test_flag(tech_pvt, TFLAG_UPDATING_DISPLAY)) { + switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(tech_pvt->session), SWITCH_LOG_ERROR, + "Cannot send display update to %s Did not receive reply to last update\n", switch_channel_get_name(tech_pvt->channel)); + } else { if (zstr(tech_pvt->last_sent_callee_id_name) || strcmp(tech_pvt->last_sent_callee_id_name, name) || zstr(tech_pvt->last_sent_callee_id_number) || strcmp(tech_pvt->last_sent_callee_id_number, number)) {