// bind and get the simulator session
DefaultSmppSession session = (DefaultSmppSession)bootstrap.bind(configuration);
SmppSimulatorSessionHandler simulator0 = server.pollNextSession(1000);
// create an enquire link response back -- we should skip it and wait for a response instead
simulator0.setPduProcessor(new SmppSimulatorPduProcessor() {
@Override
public boolean process(SmppSimulatorSessionHandler session, Channel channel, Pdu pdu) throws Exception {
EnquireLink enquireLink = new EnquireLink();
enquireLink.setSequenceNumber(pdu.getSequenceNumber());
session.addPduToWriteOnNextPduReceived(enquireLink);