[ekiga] Fixed notify popup appearing even on outgoing calls.



commit f71023709339f1262bd68f9b66ace0d1862daf3a
Author: Damien Sandras <dsandras seconix com>
Date:   Thu Jul 16 19:20:02 2009 +0200

    Fixed notify popup appearing even on outgoing calls.
    
    Actually fixed by fixing the is_outgoing method and relying on OPAL
    to get the exact state of the call.

 lib/engine/components/opal/opal-call.cpp |    6 ++----
 lib/engine/components/opal/opal-call.h   |    1 -
 2 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/lib/engine/components/opal/opal-call.cpp b/lib/engine/components/opal/opal-call.cpp
index 59cc591..c1501dc 100644
--- a/lib/engine/components/opal/opal-call.cpp
+++ b/lib/engine/components/opal/opal-call.cpp
@@ -93,7 +93,7 @@ private:
 
 Opal::Call::Call (OpalManager& _manager, const Ekiga::ServiceCore& _core, const std::string& uri)
   : OpalCall (_manager), Ekiga::Call (), core (_core), remote_uri (uri),
-    call_setup(false),outgoing(false),jitter(0)
+    call_setup(false), jitter(0)
 {
   re_a_bytes = tr_a_bytes = re_v_bytes = tr_v_bytes = 0.0;
   last_v_tick = last_a_tick = PTime ();
@@ -314,7 +314,7 @@ Opal::Call::get_start_time () const
 bool 
 Opal::Call::is_outgoing () const
 {
-  return outgoing; 
+  return !IsNetworkOriginated ();
 }
 
 
@@ -330,8 +330,6 @@ Opal::Call::parse_info (OpalConnection & connection)
 
   if (!PIsDescendant(&connection, OpalPCSSConnection)) {
 
-    outgoing = connection.IsOriginating ();
-
     remote_uri = (const char *) connection.GetRemotePartyCallbackURL ();
 
     l_party_name = (const char *) connection.GetLocalPartyName ();
diff --git a/lib/engine/components/opal/opal-call.h b/lib/engine/components/opal/opal-call.h
index f0edc11..15298f2 100644
--- a/lib/engine/components/opal/opal-call.h
+++ b/lib/engine/components/opal/opal-call.h
@@ -212,7 +212,6 @@ private:
     std::string remote_application;
 
     bool call_setup;
-    bool outgoing;
 
     std::string forward_uri;
 



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