/** * Add a new client transaction to the set of existing transactions. Add it to the top of the list * so an incoming response has less work to do in order to find the transaction. * * @param clientTransaction -- client transaction to add to the set. */ public void addTransaction(SIPClientTransaction clientTransaction) { if (LogWriter.needsLogging) logWriter.logMessage("added transaction " + clientTransaction); synchronized (clientTransactions) { clientTransactions.add(0, clientTransaction); } addTransactionHash(clientTransaction); clientTransaction.startTransactionTimer(); }