Commit b8789053 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #29158: sip: don't use received port if received port is 0

parent 329d47cd
...@@ -1108,7 +1108,7 @@ std::string SIPAccount::getContactHeader() const ...@@ -1108,7 +1108,7 @@ std::string SIPAccount::getContactHeader() const
DEBUG("Using received address %s", address.c_str()); DEBUG("Using received address %s", address.c_str());
} }
if (rPort_ != -1) { if (rPort_ != -1 and rPort_ != 0) {
portstr << rPort_; portstr << rPort_;
port = portstr.str(); port = portstr.str();
DEBUG("Using received port %s", port.c_str()); DEBUG("Using received port %s", port.c_str());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment