Copy sip headers for 200 OK sent or received on re-invite.

git-svn-id: http://voip.null.ro/svn/yate@6412 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
marian 2020-07-01 12:15:26 +00:00
parent 22ebf95683
commit 80a92b00a2
1 changed files with 2 additions and 0 deletions

View File

@ -7273,6 +7273,7 @@ bool YateSIPConnection::processTransaction2(SIPEvent* ev, const SIPMessage* msg,
Message* m = message("call.update");
decodeIsupBody(*m,msg->body);
copySipBody(*m,msg->body);
copySipHeaders(*m,*msg);
if (code < 300) {
m->addParam("operation","notify");
String natAddr;
@ -8093,6 +8094,7 @@ bool YateSIPConnection::msgUpdate(Message& msg)
updateTarget(m1);
SIPMessage* m = new SIPMessage(m1,200);
m->setBody(sdp);
copySipHeaders(*m,msg);
m_tr2->setResponse(m);
if (m_tr2->autoAck())
detachTransaction2();