void Control::clearTransactionHistory( TransactionEntry& transaction ) { SIP::SIPEngine& engine = transaction.SIP(); LOG(DEBUG) << engine.callID()<<" "<< transaction.ID(); gSIPInterface.removeCall(engine.callID()); gTransactionTable.remove(transaction.ID()); }
TransactionEntry::TransactionEntry() :mID(gTransactionTable.newID()), mQ931State(NullState), mT301(T301ms), mT302(T302ms), mT303(T303ms), mT304(T304ms), mT305(T305ms), mT308(T308ms), mT310(T310ms), mT313(T313ms), mT3113(gConfig.getNum("GSM.T3113")), mTR1M(TR1Mms) { }
void Control::clearTransactionHistory(unsigned transactionID) { if (transactionID==0) return; TransactionEntry transaction; if (gTransactionTable.find(transactionID,transaction)) { clearTransactionHistory(transaction); } else { LOG(INFO) << "clearTransactionHistory didn't find " << transactionID << "(size = " << gTransactionTable.size() << ")"; } }
TransactionEntry::TransactionEntry() :mID(gTransactionTable.newID()), mQ931State(NullState), mT301(T301ms), mT302(T302ms), mT303(T303ms), mT304(T304ms), mT305(T305ms), mT308(T308ms), mT310(T310ms), mT313(T313ms), mT3113(GSM::T3113ms), mTR1M(GSM::TR1Mms) { mMessage[0]='\0'; }
// Form for MT transactions. TransactionEntry::TransactionEntry(const L3MobileIdentity& wSubscriber, const L3CMServiceType& wService, unsigned wTIValue, const L3CallingPartyBCDNumber& wCalling) :mID(gTransactionTable.newID()), mSubscriber(wSubscriber),mService(wService), mTIFlag(1),mTIValue(wTIValue),mCalling(wCalling), mQ931State(NullState), mT301(T301ms), mT302(T302ms), mT303(T303ms), mT304(T304ms), mT305(T305ms), mT308(T308ms), mT310(T310ms), mT313(T313ms), mT3113(gConfig.getNum("GSM.T3113")), mTR1M(TR1Mms) { }
// Form for MT transactions. TransactionEntry::TransactionEntry(const GSM::L3MobileIdentity& wSubscriber, const GSM::L3CMServiceType& wService, const GSM::L3CallingPartyBCDNumber& wCalling) :mID(gTransactionTable.newID()), mSubscriber(wSubscriber),mService(wService), mTIFlag(1), mTIValue(0), mCalling(wCalling), mQ931State(NullState), mT301(T301ms), mT302(T302ms), mT303(T303ms), mT304(T304ms), mT305(T305ms), mT308(T308ms), mT310(T310ms), mT313(T313ms), mT3113(GSM::T3113ms), mTR1M(GSM::TR1Mms) { mMessage[0]='\0'; }
void Control::clearTransactionHistory(unsigned transactionID) { if (transactionID==0) return; TransactionEntry transaction; if (gTransactionTable.find(transactionID,transaction)) clearTransactionHistory(transaction); }