public boolean hasActiveTransactions(SipSession session)
{
for (int i = 0; i < _clientTransactions.size(); i++)
{
ClientTransaction transaction = _clientTransactions.get(i);
if (transaction.getState() < Transaction.STATE_COMPLETED
&& transaction.getRequest().session().equals(session))
return true;
}
for (int i = 0; i < _serverTransactions.size(); i++)
{
ServerTransaction transaction = _serverTransactions.get(i);
if (transaction.getState() < Transaction.STATE_COMPLETED
&& transaction.getRequest().session().equals(session))
return true;
}
return false;
}