From 281d16c565b4e5a665883cfb67cd45534f5b2599 Mon Sep 17 00:00:00 2001
From: Emmanuel Milou <emmanuel.milou@savoirfairelinux.com>
Date: Fri, 23 Oct 2009 17:41:37 -0400
Subject: [PATCH] [#2350] Remove non-valid test

---
 sflphone-common/src/sip/sipvoiplink.cpp | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/sflphone-common/src/sip/sipvoiplink.cpp b/sflphone-common/src/sip/sipvoiplink.cpp
index 095185b41e..d8001dc1b7 100644
--- a/sflphone-common/src/sip/sipvoiplink.cpp
+++ b/sflphone-common/src/sip/sipvoiplink.cpp
@@ -475,7 +475,7 @@ int SIPVoIPLink::sendRegister (AccountID id)
 	
 			status = createUDPServer (id);
 			if (status != PJ_SUCCESS) {
-			_debug ("Failed to initialize UDP transport with a local address for account %s\n. Try to use the local UDT transport", id.c_str());
+			_debug ("Failed to initialize UDP transport with a local address for account %s\n. Try to use the local UDP transport", id.c_str());
 			account->setAccountTransport (_localUDPTransport);
 			}
 		}
@@ -498,13 +498,6 @@ int SIPVoIPLink::sendRegister (AccountID id)
     // Update the state of the voip link
     account->setRegistrationState (Trying);
 
-    if (!validStunServer) {
-        account->setRegistrationState (ErrorExistStun);
-        account->setRegister (false);
-        _mutexSIP.leaveMutex();
-        return false;
-    }
-
     // Create the registration according to the account ID
     status = pjsip_regc_create (_endpt, (void*) account, &regc_cb, &regc);
 
-- 
GitLab