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