On 11 December 2012 13:32, Willem jiang <willem.ji...@gmail.com> wrote: > You should be able to get the message id from the message header with key > "CamelSmppId". > I found you may use camel-spring-integartion to link the your system with > camel. > You should setup an outputChannel to receive the message which as the message > header of "CamelSmppId". >
How to do that ? from my tests, I can receive the deliver receipt and strip out the header CamelSmppId. But for my original send request, I can't get that "CamelSmppId", so delivery receipt is completely useless because I have no idea which sms related to that delivery receipt. I have set up 2 routes for inbound and outbound like below. If I log the payload and header for "CUSTOMCHANNELTOGETSMPPID", I can't find "CamelSmppId" even though debug logging from SmppSubmitSmCommand indicates it receive message id. <camel:route id="OutboundRoute" > <camel:from uri="outgoingSpringIntegrationChannel"/> <camel:to uri="smpp://pavel@localhost:1234?password=wpsd&registeredDelivery=1&..."/> <camel:wireTap uri="log:SMPP-Inbound"/> <camel:to uri="CUSTOMCHANNELTOGETSMPPID"/> </camel:route> <camel:route id="InboundRoute"> <camel:from uri="smpp://pavel@localhost:1234?password=wpsd&registeredDelivery=1&..."/> <camel:to uri="incomingSpringIntegrationChannel"/> </camel> > > -- > Willem Jiang > > Red Hat, Inc. > FuseSource is now part of Red Hat > Web: http://www.fusesource.com | http://www.redhat.com > Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) > (English) > http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese) > Twitter: willemjiang > Weibo: 姜宁willem > > > > > > On Tuesday, December 11, 2012 at 7:47 AM, Johanes Soetanto wrote: > >> Hi, >> >> I would like to know whether there is a way to message from submit sm >> for camel-smpp? >> >> I can see from the DEBUG log that there is message id returned from SMSC. >> e.g. >> >> DEBUG [org.apache.camel.component.smpp.SmppSubmitSmCommand] Sent short >> message for exchange id 'ID-e6410-42858-1355182686016-0-2' and >> received message ids '[Smsc2024]' >> >> But I can't retrieve the message id header after submitting the sms. I >> need to retrieve the message id to cross check with the delivery >> receipt coming in and mark the sms sent in our system. >> >> E.g. of my route >> >> <camel:route id="OutboundRoute" > >> <camel:from uri="outgoingSpringIntegrationChannel"/> >> <camel:wireTap uri="log:SMPP-Outbound"/> >> <camel:to >> uri="smpp://pavel@localhost:1234?password=wpsd&registeredDelivery=1&..." >> /> >> <camel:wireTap uri="log:SMPP-Inbound"/> >> </camel:route> >> >> Any help or assistance is appreciated. >> >> Thanks, >> Johanes Soetanto > > >