From b87890538c01b716c611bf04d045922d33ac4fea Mon Sep 17 00:00:00 2001
From: Tristan Matthews <tristan.matthews@savoirfairelinux.com>
Date: Tue, 27 Aug 2013 13:50:18 -0400
Subject: [PATCH] * #29158: sip: don't use received port if received port is 0

---
 daemon/src/sip/sipaccount.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/daemon/src/sip/sipaccount.cpp b/daemon/src/sip/sipaccount.cpp
index 37bb738d4f..f68c5c947a 100644
--- a/daemon/src/sip/sipaccount.cpp
+++ b/daemon/src/sip/sipaccount.cpp
@@ -1108,7 +1108,7 @@ std::string SIPAccount::getContactHeader() const
         DEBUG("Using received address %s", address.c_str());
     }
 
-    if (rPort_ != -1) {
+    if (rPort_ != -1 and rPort_ != 0) {
         portstr << rPort_;
         port = portstr.str();
         DEBUG("Using received port %s", port.c_str());
-- 
GitLab