Fix for bug introduced in rev.5211: also check for frame type when looking for late PINGs/PONGs.

Avoids matching on a RINGING frame and not acknowledging it.



git-svn-id: http://yate.null.ro/svn/yate/trunk@5284 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
oana 2012-09-26 14:04:43 +00:00
parent 53733091d8
commit 79cda3df63
1 changed files with 1 additions and 1 deletions

View File

@ -955,7 +955,7 @@ bool IAXTransaction::isFrameAcceptable(const IAXFullFrame* frame)
}
DDebug(m_engine,DebugInfo,"Transaction(%u,%u). Received late Frame(%u,%u) with oseq=%u expecting %u [%p]",
localCallNo(),remoteCallNo(),frame->type(),frame->subclass(),frame->oSeqNo(),m_iSeqNo,this);
if (frame->subclass() == IAXControl::Ping || frame->subclass() == IAXControl::Pong)
if (frame->type() == IAXFrame::IAX && (frame->subclass() == IAXControl::Ping || frame->subclass() == IAXControl::Pong))
return true;
sendAck(frame);
return false;