From d9272134e1f45825d2701e919e5ad85db5d52540 Mon Sep 17 00:00:00 2001 From: Stefan Becker Date: Mon, 15 Nov 2010 19:26:29 +0200 Subject: [PATCH] add more debug info to process_incoming_bye() I hope that will help to clarify the conference invite ping-pong error... --- src/core/sipe-incoming.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/core/sipe-incoming.c b/src/core/sipe-incoming.c index 393a9e9b..98b2e061 100644 --- a/src/core/sipe-incoming.c +++ b/src/core/sipe-incoming.c @@ -79,11 +79,16 @@ void process_incoming_bye(struct sipe_core_private *sipe_private, session = sipe_session_find_chat_or_im(sipe_private, callid, from); if (!session) { + SIPE_DEBUG_INFO_NOFORMAT("process_incoming_bye: couldn't find session. Ignoring"); sipe_dialog_free(dialog); g_free(from); return; } + SIPE_DEBUG_INFO("process_incoming_bye: session found (chat ID %s)", + (session->chat_session && session->chat_session->id) ? + session->chat_session->id : ""); + if (session->chat_session && (session->chat_session->type == SIPE_CHAT_TYPE_MULTIPARTY) && session->chat_session->id && @@ -96,8 +101,11 @@ void process_incoming_bye(struct sipe_core_private *sipe_private, if (session->chat_session) { if ((session->chat_session->type == SIPE_CHAT_TYPE_CONFERENCE) && !g_strcasecmp(from, session->im_mcu_uri)) { - sipe_conf_immcu_closed(sipe_private, session); + SIPE_DEBUG_INFO("process_incoming_bye: disconnected from conference %s", + session->im_mcu_uri); + sipe_conf_immcu_closed(sipe_private, session); } else if (session->chat_session->type == SIPE_CHAT_TYPE_MULTIPARTY) { + SIPE_DEBUG_INFO_NOFORMAT("process_incoming_bye: disconnected from multiparty chat"); sipe_backend_chat_remove(session->chat_session->backend, from); } -- 2.11.4.GIT