diff --git a/daemon/src/sip/sipaccount.cpp b/daemon/src/sip/sipaccount.cpp index 37bb738d4fc6c659a94888f92c9ab476ae71902e..f68c5c947ac5bc6e5996aeac7cbecd6217b3ca3d 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());