/** Remove transaction. */ public void removeTransaction(SIPTransaction sipTransaction) { if (sipTransaction instanceof SIPServerTransaction) { synchronized (serverTransactions) { serverTransactions.remove(sipTransaction); } synchronized (serverTransactionTable) { String key = sipTransaction.getTransactionId(); serverTransactionTable.remove(key); } } else { synchronized (clientTransactions) { clientTransactions.remove(sipTransaction); } synchronized (clientTransactionTable) { String key = sipTransaction.getTransactionId(); clientTransactionTable.remove(key); } } }
public void removePending(PendingRecord pendingRecord) { synchronized (pendingRecords) { pendingRecords.remove(pendingRecord); } }