Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment