For your first question, have a look at [1]. This is how we pass the value to the jsmpp library.
[1] https://git-wip-us.apache.org/repos/asf?p=camel.git;a=blob;f=components/camel-smpp/src/main/java/org/apache/camel/component/smpp/SmppSubmitSmCommand.java;h=ac5f4f1e8531f8603509a9f72eb67283ae10e8ac;hb=HEAD Best, Christian ----------------- Software Integration Specialist Apache Member V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer Apache Incubator PMC Member https://www.linkedin.com/pub/christian-mueller/11/551/642 On Tue, Oct 28, 2014 at 1:40 PM, hanusto <hanu...@gmail.com> wrote: > Hello, > > I have two questions for SMPP camel component: > > 1) how to set valid period as relative ? It can be defined in absolute time > format or relative time format if you provide it as String as specified in > chapter 7.1.1 in the smpp specification v3.4. in format "000001000000000R" > as one day: > > exchange.getIn().setHeader(SmppConstants.VALIDITY_PERIOD, > constant("000001000000000R")); > > but in packet trace I see deafult value because this format is incorrect, > probably, but exactly based upon specification. Maybe bug? > > 2) I would like to send push sms (m-notification-ind PDU type). As content > of message (exchange.getIn().setBody()) I am sending byte array as whole > message with UDHI segment. Data coding schema is "Octet unspecified (8-bit > binary) (0x04)". Problem is that SMPP component calculates length of > message > and EsmClass is configured in right way only if length is greater than 140 > number of bytes. > > In SmppSubmitSmCommand: > template.setEsmClass(new ESMClass(MessageMode.DEFAULT, > MessageType.DEFAULT, > GSMSpecificFeature.UDHI).value()); > > I think that message size is not related to UDHI and therefore why is > splitted and after that if segments is more than one, EmsClass with UDHI is > configured properly? > > Please, is here any solution how to send m-notification-ind PDU type? As > hot > fix I checkout SMPP camel component and use custom modification of this > behaviour. > > Thanks, > Tomas > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/SMPP-component-and-problem-with-valid-period-relative-and-data-message-tp5758217.html > Sent from the Camel - Users mailing list archive at Nabble.com. >