[ekiga] SIP: Fixed Message-Summary subscription.



commit 8d75ef0c5cb168b9ddc88179ec8baa712d2484b1
Author: Damien Sandras <dsandras seconix com>
Date:   Sun Jan 11 14:17:44 2015 +0100

    SIP: Fixed Message-Summary subscription.

 lib/engine/components/opal/opal-account.cpp |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/lib/engine/components/opal/opal-account.cpp b/lib/engine/components/opal/opal-account.cpp
index 3fdfb16..8bc9118 100644
--- a/lib/engine/components/opal/opal-account.cpp
+++ b/lib/engine/components/opal/opal-account.cpp
@@ -538,7 +538,6 @@ Opal::Account::disable ()
   default:
     // Register the given aor to the given registrar
     sip_endpoint->disable_account (*this);
-    sip_endpoint->Unsubscribe (SIPSubscribe::MessageSummary, get_aor ());
     break;
   }
 
@@ -937,7 +936,7 @@ Opal::Account::handle_registration_event (Ekiga::Account::RegistrationState stat
 
         presentity->SetLocalPresence (personal_state, presence_status);
         if (type != Account::H323) {
-          sip_endpoint->Subscribe (SIPSubscribe::MessageSummary, 3600, get_aor ());
+          sip_endpoint->Subscribe (SIPSubscribe::MessageSummary, 3600, get_transaction_aor (get_aor ()));
         }
       }
       boost::shared_ptr<Ekiga::PersonalDetails> details = personal_details.lock ();
@@ -958,6 +957,9 @@ Opal::Account::handle_registration_event (Ekiga::Account::RegistrationState stat
 
     if (presentity)
       presentity->Close ();
+    if (type != Account::H323) {
+      sip_endpoint->Unsubscribe (SIPSubscribe::MessageSummary, get_transaction_aor (get_aor ()));
+    }
 
     Ekiga::Runtime::run_in_main (boost::ref (updated));
     /* delay destruction of this account until the


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