mirror of
https://github.com/fairwaves/openbts-2.8.git
synced 2025-11-11 09:26:25 +00:00
r4218 in private:
Put dead transaction checks into 2 groups - 30-seconds and 180-seconds. git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@4495 19bc5d8c-e614-43d4-8b26-e1612bc8e597
This commit is contained in:
@@ -239,13 +239,19 @@ bool TransactionEntry::dead() const
|
||||
{
|
||||
ScopedLock lock(mLock);
|
||||
|
||||
// Don't remove anything less than 3 minutes old.
|
||||
if (stateAge() < 180*1000) return false;
|
||||
|
||||
// 30-second tests
|
||||
if (stateAge() < 30*1000) return false;
|
||||
// Failed?
|
||||
if (mSIP.state()==SIP::Fail) return true;
|
||||
// Null state?
|
||||
if (mGSMState==GSM::NullState) return true;
|
||||
// Stuck in proceeding?
|
||||
if (mSIP.state()==SIP::Proceeding) return true;
|
||||
// SIP cancelled?
|
||||
if (mSIP.state()==SIP::Canceled) return true;
|
||||
|
||||
// 180-second tests
|
||||
if (stateAge() < 180*1000) return false;
|
||||
|
||||
// Paging timed out?
|
||||
if (mGSMState==GSM::Paging) {
|
||||
|
||||
Reference in New Issue
Block a user