[ekiga] Possibly fixed auto-answer. Having no Internet to test sucks big time.



commit c8f90a31304ccebd92ec758ab6b2aa89e22561f5
Author: Damien Sandras <dsandras seconix com>
Date:   Sat May 16 12:44:50 2009 +0200

    Possibly fixed auto-answer. Having no Internet to test sucks big time.
---
 lib/engine/components/opal/sip-endpoint.cpp |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/lib/engine/components/opal/sip-endpoint.cpp b/lib/engine/components/opal/sip-endpoint.cpp
index 4aea478..a586faf 100644
--- a/lib/engine/components/opal/sip-endpoint.cpp
+++ b/lib/engine/components/opal/sip-endpoint.cpp
@@ -952,7 +952,9 @@ Opal::Sip::EndPoint::OnIncomingConnection (OpalConnection &connection,
 					   OpalConnection::StringOptions * stroptions)
 {
   PTRACE (3, "Opal::Sip::EndPoint\tIncoming connection");
-  std::cout << "ici 2 " << auto_answer_call << std::endl <<std::flush;
+
+  if (!SIPEndPoint::OnIncomingConnection (connection, options, stroptions))
+    return false;
 
   if (!forward_uri.empty () && manager.get_unconditional_forward ())
     connection.ForwardCall (forward_uri);
@@ -975,16 +977,13 @@ Opal::Sip::EndPoint::OnIncomingConnection (OpalConnection &connection,
         auto_answer_call = false;
         PTRACE (3, "Opal::Sip::EndPoint\tAuto-Answering incoming connection");
         call->answer ();
-        return true;
       }
       else // Pending
         call->set_reject_delay (manager.get_reject_delay ());
     }
-
-    return SIPEndPoint::OnIncomingConnection (connection, options, stroptions);
   }
 
-  return false;
+  return true;
 }
 
 
@@ -1006,7 +1005,6 @@ Opal::Sip::EndPoint::OnReceivedINVITE (OpalTransport& transport,
     PTRACE (3, "Opal::Sip::EndPoint\tRing Answer in AlertInfo header, will Auto-Answer incoming connection");
     auto_answer_call = true;
   }
-  std::cout << "ici" << std::endl <<std::flush;
 
   return SIPEndPoint::OnReceivedINVITE (transport, pdu);
 }



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