mirror of
https://github.com/PentHertz/OpenBTS.git
synced 2026-05-02 21:30:06 +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:
parent
f9b7ce9e55
commit
4acfd35688
1 changed files with 9 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue