Bug fix: Send ACK when receiving ANSWER, don't send ACK when receiving INVAL.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5197 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
fb4a7f61a3
commit
8625ac0551
|
@ -1433,7 +1433,8 @@ void IAXTransaction::ackInFrames()
|
|||
IAXFullFrame* ack = 0;
|
||||
for (ObjList* l = m_inFrames.skipNull(); l; l = l->next()) {
|
||||
IAXFullFrame* frame = static_cast<IAXFullFrame*>(l->get());
|
||||
if (frame && frame->type() == IAXFrame::IAX && frame->subclass() != IAXControl::Ack)
|
||||
if (frame && ((frame->type() == IAXFrame::IAX && frame->subclass() != IAXControl::Ack && frame->subclass() != IAXControl::Inval) ||
|
||||
(frame->type() == IAXFrame::Control && frame->subclass() == IAXFullFrame::Answer)))
|
||||
ack = frame;
|
||||
}
|
||||
if (ack) {
|
||||
|
|
Loading…
Reference in New Issue