I have a receiver session to handle DeliverSm, the problem is that DeliverSmResp takes between 100-1000 ms. is there a way to speed this up? here is how I configure the session:
SmppSessionConfiguration sessionConfig = new SmppSessionConfiguration();
sessionConfig.setType(SmppBindType.RECEIVER);
sessionConfig.setHost(smscHost);
sessionConfig.setPort(smscPort);
sessionConfig.setSystemId(smscUsername);
sessionConfig.setPassword(smscPassword);
sessionConfig.setSystemType(smscSystemType);
sessionConfig.setWindowSize(executor.getMaxPoolSize());
if (smscInterfaceVersion.equals("3.4")) {
sessionConfig.setInterfaceVersion((byte) 0x34);
} else {
sessionConfig.setInterfaceVersion((byte) 0x30);
}
sessionConfig.setBindTimeout(smscReceiveTimeout);
sessionConfig.setRequestExpiryTimeout(smscReceiveTimeout);
DefaultSmppClient client = new DefaultSmppClient();
receiverSession = client.bind(sessionConfig, new DefaultSmppSessionHandler() {
public PduResponse firePduRequestReceived(PduRequest pdu) {
if (pdu.getCommandId() == 0x00000005) {
dilversm_thread_counter.incrementAndGet();
} else if (pdu.getCommandId() == 0x00000015) {
last_receiver_enquire_link = System.currentTimeMillis();
}
return pdu.createResponse();
}
});
I have a receiver session to handle DeliverSm, the problem is that DeliverSmResp takes between 100-1000 ms. is there a way to speed this up? here is how I configure the session: