mirror of
https://github.com/RangeNetworks/openbts.git
synced 2025-11-04 13:53:15 +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);
|
ScopedLock lock(mLock);
|
||||||
|
|
||||||
// Don't remove anything less than 3 minutes old.
|
// 30-second tests
|
||||||
if (stateAge() < 180*1000) return false;
|
if (stateAge() < 30*1000) return false;
|
||||||
|
// Failed?
|
||||||
|
if (mSIP.state()==SIP::Fail) return true;
|
||||||
// Null state?
|
// Null state?
|
||||||
if (mGSMState==GSM::NullState) return true;
|
if (mGSMState==GSM::NullState) return true;
|
||||||
// Stuck in proceeding?
|
// Stuck in proceeding?
|
||||||
if (mSIP.state()==SIP::Proceeding) return true;
|
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?
|
// Paging timed out?
|
||||||
if (mGSMState==GSM::Paging) {
|
if (mGSMState==GSM::Paging) {
|
||||||
|
|||||||
Reference in New Issue
Block a user