Hello, I'm learning to use Camel SMPP component as a way to send/receive SMS to SMSC. I'm using Selenium SMPP Sim with the following routes:
context.addRoutes(new RouteBuilder() { @Override public void configure() throws Exception { from("direct:start").to("smpp://smppclient1@localhost:2775?&password=password" + "&enquireLinkTimer=3000" + "&transactionTimer=5000&systemType=producer" ).process(new SubmitSmNotificationProcessor()); from("smpp://smppclient1@localhost:2775?&password=password" + "&enquireLinkTimer=3000" + "&transactionTimer=5000&systemType=consumer") .process(new DeliveryNotificationProcessor()) .process(new MOProcessor()); } }); Where DeliveryNotificationProcessor contains this code: if(exchange.getIn().getHeader(SmppConstants.MESSAGE_TYPE).equals(SmppMessageType.DeliveryReceipt.name())) { System.out.println("received DN: "+exchange.getIn().getBody()); } else { System.out.println("not DN."); } and MOProcessor contain this code: if(exchange.getIn().getHeader(SmppConstants.MESSAGE_TYPE).equals(SmppMessageType.DeliverSm.name())) { System.out.println("got MO: "+exchange.getIn()+" with body: "+exchange.getIn().getBody()); } So when I test this code by doing the following: ProducerTemplate producerTemplate = context.createProducerTemplate(); context.start(); producerTemplate.setDefaultEndpointUri("direct:start"); Exchange exchange = producerTemplate.getDefaultEndpoint().createExchange(ExchangePattern.InOut); for(int i = 0; i < 7; i++ ) { exchange.getIn().setBody("Message "+i); producerTemplate.send(producerTemplate.getDefaultEndpoint(), exchange); Thread.sleep(5000); } I'm expecting Deliver_sm for each of the send, and I'm seeing the corresponding packet via wireSharks. I even see Camel response OK back to each Deliver_sm with Delivery Receipt body, however, I do not see println for the DN receiver in the log. I can confirm that camel is processing SMS sent via the simulator. Also, I ran the SmppComponentIntegrationTest.java against Selenium SMPP Sim and it fails. Can someone please help explain why I'm not getting Delivery Receipt processing? Thanks in advance. -T -- View this message in context: http://camel.465427.n5.nabble.com/Camel-SMPP-receive-Deliver-sm-for-sms-but-not-Deliver-sm-for-SMSC-DeliveryReceipt-tp5781951.html Sent from the Camel - Users mailing list archive at Nabble.com.