Commit ac8d983c authored by Alexandre Savard's avatar Alexandre Savard
Browse files

#9910: fix contact header in outgoing request if via parameter are present

parent 30a1b49d
......@@ -807,8 +807,18 @@ std::string SIPAccount::getContactHeader() const
// Else we determine this infor based on transport information
std::string address, port;
std::ostringstream portstr;
link_->sipTransport.findLocalAddressFromTransport(transport_, transportType, address, port);
if (!receivedParameter_.empty())
address = receivedParameter_;
if (rPort_ != -1) {
portstr << rPort_;
port = portstr.str();
// UDP does not require the transport specification
std::string scheme;
std::string transport;
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