public ClientTransaction getNewClientTransaction(Request request)
			throws TransactionUnavailableException {
		
		checkState();
		final SIPClientTransaction ct = (SIPClientTransaction) provider.getNewClientTransaction(request);
		final ClientTransactionWrapper ctw = new ClientTransactionWrapper(ct,
				ra);
		ctw.setActivity(true);

		final DialogWrapper dw = ctw.getDialogWrapper();
		if (dw != null) {
			dw.addOngoingTransaction(ctw);
		}

		if (!ra.addSuspendedActivity(ctw)) {
			throw new TransactionUnavailableException(
					"Failed to create activity");
		}

		return ctw;
	}
public ClientTransaction getNewClientTransaction ( Request request ) throws TransactionUnavailableException { checkState ( ) ; final SIPClientTransaction ct = ( SIPClientTransaction ) provider . getNewClientTransaction ( request ) ; final ClientTransactionWrapper ctw = new ClientTransactionWrapper ( ct , ra ) ; ctw . setActivity ( true ) ; final DialogWrapper dw = ctw . getDialogWrapper ( ) ; if ( dw != null ) { dw . addOngoingTransaction ( ctw ) ; } if ( ! ra . addSuspendedActivity ( ctw ) ) { throw new TransactionUnavailableException ( "Failed to create activity" ) ; } return ctw ; }
/*
(non-Javadoc)

@see
javax.sip.SipProvider#getNewClientTransaction(javax.sip.message.Request)