diff --git a/libs/ymgcp/transaction.cpp b/libs/ymgcp/transaction.cpp index 4ce73922..41f78c86 100644 --- a/libs/ymgcp/transaction.cpp +++ b/libs/ymgcp/transaction.cpp @@ -304,10 +304,9 @@ void MGCPTransaction::processMessage(MGCPMessage* msg) ok = !m_response; if (ok) m_response = msg; - else { - retrans = (m_response->code() == msg->code()); - if (retrans) - send(m_ack); + else if (m_response->code() == msg->code()) { + retrans = true; + send(m_ack); } DDebug(m_engine,(ok || retrans) ? DebugAll : DebugNote, "%s. Received %sresponse %d [%p]",m_debug.c_str(),