[ekiga/gnome-2-26] Fixed bug #589917 - Contact never go offline.



commit 285c1ceccf28b3810fce4b7f74d18dee5b5aebd5
Author: Damien Sandras <dsandras seconix com>
Date:   Mon Jul 27 20:30:42 2009 +0200

    Fixed bug #589917 - Contact never go offline.
    
    This bug was due to the fact that code erroneously assumed the <note> element
    in the PIDF document existed in all cases.

 lib/engine/components/opal/sip-endpoint.cpp |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/lib/engine/components/opal/sip-endpoint.cpp b/lib/engine/components/opal/sip-endpoint.cpp
index 830b332..03645a2 100644
--- a/lib/engine/components/opal/sip-endpoint.cpp
+++ b/lib/engine/components/opal/sip-endpoint.cpp
@@ -1088,12 +1088,15 @@ Opal::Sip::EndPoint::OnPresenceInfoReceived (const PString & user,
   std::string presence = "unknown";
   std::string status;
 
-  if (!basic.IsEmpty () && !note.IsEmpty ()) {
+  if (!basic.IsEmpty ()) {
 
     if (b.Find ("Open") != P_MAX_INDEX)
       presence = "online";
     else
       presence = "offline";
+  }
+
+  if (!note.IsEmpty ()) {
 
     if (s.Find ("Away") != P_MAX_INDEX)
       presence = "away";



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]