From 77912dfb2116d8dfd7ea9c8ae73b4d3babc26d12 Mon Sep 17 00:00:00 2001 From: paulc Date: Mon, 27 Feb 2017 16:14:26 +0000 Subject: [PATCH] Pick default remote host:port from rURI so that connection_id gets applied. git-svn-id: http://voip.null.ro/svn/yate@6191 acf43c95-373e-0410-b603-e72c3f656dc1 --- modules/ysipchan.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/ysipchan.cpp b/modules/ysipchan.cpp index 3ce70269..8a3fd97f 100644 --- a/modules/ysipchan.cpp +++ b/modules/ysipchan.cpp @@ -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)