[ekiga] OpalCallManager: Fixed STUN support.



commit bba072c001a5b26744bb007c463380abb21845fe
Author: Damien Sandras <dsandras seconix com>
Date:   Tue Jan 13 22:00:26 2015 +0100

    OpalCallManager: Fixed STUN support.

 lib/engine/components/opal/opal-call-manager.cpp |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/lib/engine/components/opal/opal-call-manager.cpp 
b/lib/engine/components/opal/opal-call-manager.cpp
index c568d04..1fb0971 100644
--- a/lib/engine/components/opal/opal-call-manager.cpp
+++ b/lib/engine/components/opal/opal-call-manager.cpp
@@ -859,9 +859,15 @@ CallManager::HandleSTUNResult ()
     }
     else {
 
+      if (sip_endpoint)
+        sip_endpoint->setup ("listen-port");
+      if (h323_endpoint)
+        h323_endpoint->setup ("listen-port");
+
       ready ();
     }
-  } else if (patience == 0) {
+  }
+  else if (patience == 0) {
 
     error = true;
   }
@@ -873,11 +879,11 @@ CallManager::HandleSTUNResult ()
                       "Please see http://wiki.ekiga.org/index.php/Enable_port_forwarding_manually for"
                       " instructions"));
     ready ();
-  } else if (!got_answer) {
+  }
+  else if (!got_answer) {
 
     patience--;
     Ekiga::Runtime::run_in_main (boost::bind (&CallManager::HandleSTUNResult, this), 1);
-
   }
 }
 


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