[ekiga/v4_0] OPAL: Fixed call waiting support.



commit 0ce2623097b1ed962a86aabc1f76ef747b511f72
Author: Damien Sandras <dsandras beip be>
Date:   Sun Jan 20 17:09:15 2013 +0100

    OPAL: Fixed call waiting support.

 lib/engine/components/opal/h323-endpoint.cpp |    2 +-
 lib/engine/components/opal/sip-endpoint.cpp  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/lib/engine/components/opal/h323-endpoint.cpp b/lib/engine/components/opal/h323-endpoint.cpp
index 8344790..b5028ed 100644
--- a/lib/engine/components/opal/h323-endpoint.cpp
+++ b/lib/engine/components/opal/h323-endpoint.cpp
@@ -438,7 +438,7 @@ Opal::H323::EndPoint::OnIncomingConnection (OpalConnection & connection,
     return false;
 
   for (PSafePtr<OpalConnection> conn(connectionsActive, PSafeReference); conn != NULL; ++conn) {
-    if (!conn->IsReleased ())
+    if (conn->GetCall().GetToken() != connection.GetCall().GetToken() && !conn->IsReleased ())
       busy = true;
   }
 
diff --git a/lib/engine/components/opal/sip-endpoint.cpp b/lib/engine/components/opal/sip-endpoint.cpp
index a5e2aa6..d754044 100644
--- a/lib/engine/components/opal/sip-endpoint.cpp
+++ b/lib/engine/components/opal/sip-endpoint.cpp
@@ -848,7 +848,7 @@ Opal::Sip::EndPoint::OnIncomingConnection (OpalConnection &connection,
     return false;
 
   for (PSafePtr<OpalConnection> conn(connectionsActive, PSafeReference); conn != NULL; ++conn) {
-    if (!conn->IsReleased ())
+    if (conn->GetCall().GetToken() != connection.GetCall().GetToken() && !conn->IsReleased ())
       busy = true;
   }
 


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