/*
* Modify the filter chain to add a filter which blocks
* new SIP requests.
*/
DefaultProtocolChain protocolChain = new DefaultProtocolChain();
if (serverHandler.protocol() == Controller.Protocol.TLS) {
SSLReadFilter sslfilter = getSSLReadFilter(sipBindingCtx);
protocolChain.addFilter(sslfilter);
protocolChain.addFilter(new MessageProcessorFilter(this,
requestTimeOut, true, _bbPool, tlsAsyncWriteCallbackHandler));
} else {
protocolChain.setContinuousExecution(false);
ReadFilter readFilter = new SharedReadFilter();
readFilter.setContinuousExecution(false);
protocolChain.addFilter(readFilter);
protocolChain.addFilter(new MessageProcessorFilter(this,
requestTimeOut, true, _bbPool,
tcpUdpAsyncWriteCallbackHandler));
}
ProtocolChainInstanceHandler instanceHandler =