Execute a hangup immediately if received a CANCEL message.

This fixes the total duration of a cancelled call in slow routing scenarios.


git-svn-id: http://voip.null.ro/svn/yate@5017 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2012-04-21 11:12:35 +00:00
parent 5eac5f94d7
commit e7c6d16ea8
1 changed files with 1 additions and 0 deletions

View File

@ -5850,6 +5850,7 @@ void YateSIPConnection::doCancel(SIPTransaction* t)
m_byebye = false;
clearTransaction();
disconnect("Cancelled");
hangup();
}
else
t->setResponse(481);