[ekiga] Fixed bug #589917 - Contact never go offline.



commit 5d4151a7ef0e8303dae4af5512e4c7b356963241
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 8199548..cf335b0 100644
--- a/lib/engine/components/opal/sip-endpoint.cpp
+++ b/lib/engine/components/opal/sip-endpoint.cpp
@@ -1124,12 +1124,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]