From 3843f27737a725177c13b2f1bea6d53e26cf9b7f Mon Sep 17 00:00:00 2001 From: paulc Date: Thu, 18 Jul 2013 12:55:01 +0000 Subject: [PATCH] Ignore To tags in 100 answers, they are not supposed to establish a dialog. git-svn-id: http://yate.null.ro/svn/yate/trunk@5587 acf43c95-373e-0410-b603-e72c3f656dc1 --- libs/ysip/transaction.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/libs/ysip/transaction.cpp b/libs/ysip/transaction.cpp index 71b39496..752651e0 100644 --- a/libs/ysip/transaction.cpp +++ b/libs/ysip/transaction.cpp @@ -507,10 +507,14 @@ SIPTransaction::Processed SIPTransaction::processMessage(SIPMessage* message, co const NamedString* ns = message->getParam("To","tag"); if (m_tag.null()) { if (ns) { - // establish the dialog - m_tag = *ns; - DDebug(getEngine(),DebugInfo,"SIPTransaction found dialog tag '%s' [%p]", - m_tag.c_str(),this); + if (message->code > 100) { + // establish the dialog + m_tag = *ns; + DDebug(getEngine(),DebugInfo,"SIPTransaction found dialog tag '%s' [%p]", + m_tag.c_str(),this); + } + else + Debug(getEngine(),DebugMild,"Received To tag in 100 answer! (sender bug)"); } } else if (!ns) {