Pick default remote host:port from rURI so that connection_id gets applied.

git-svn-id: http://yate.null.ro/svn/yate/trunk@6191 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2017-02-27 16:14:26 +00:00
parent 2a965f8d80
commit a899f5516e
1 changed files with 3 additions and 2 deletions

View File

@ -9304,8 +9304,9 @@ bool SIPDriver::sendMethod(Message& msg, const char* method, bool msgExec,
}
sip = new SIPMessage(method,uri);
YateSIPPartyHolder holder;
const char* host = msg.getValue("host");
int port = msg.getIntValue("port");
URI rUri(uri);
const char* host = msg.getValue("host",rUri.getHost());
int port = msg.getIntValue("port",rUri.getPort());
holder.setParty(msg,false,String::empty(),host,port);
holder.setSipParty(sip,line,true,host,port);
if (line)