]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3551 please update to this revision or greater and retest gathering the same logs...
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 16 Sep 2011 17:05:04 +0000 (12:05 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 16 Sep 2011 17:05:10 +0000 (12:05 -0500)
src/mod/applications/mod_voicemail/mod_voicemail.c
src/mod/endpoints/mod_sofia/mod_sofia.c

index 0b88532874c88effb440431480c956a9e15712c7..3b12e7c7a1a06eccc86f985f6c54cbb4b93c3c7e 100644 (file)
@@ -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"))) {
index 8ef3b92663aabeede996a4347671732553e149ad..810d67e5baa2fe77aa8f163d26a2cc0c88cff59e 100644 (file)
@@ -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)) {