opentelecoms-org / jsmpp

SMPP implemented in Java
Apache License 2.0
230 stars 160 forks source link

How to collate multipart SMS received from client #64

Open deepaligupta9 opened 7 years ago

deepaligupta9 commented 7 years ago

Hi,

I have implemented SMPP server and listens request using ServerMessageReceiverListener.onAcceptSubmitSm method. In case of long message, I am receiving it in multiple parts, and getting info in UDH. Please suggest how to collate these multi part message and process further as single message.

Please help!

Thanks, Deepali

pmoerenhout commented 7 years ago

The messages should be examined on the userDataHeader. It can contain 8-bit or 16-bit reference elements for the concatenation headers. The first message can contain other udh elements. The application should put the data together, and discard the messages when it takes too long to receive all messages.

deepaligupta9 commented 7 years ago

@pmoerenhout- Thanks for your reply. Should I write my own code to implement the logic you suggested or is there any class in this jsmpp API which helps doing this?

pmoerenhout commented 7 years ago

Hi @deepaligupta9, in jSMMP there is no code. In https://github.com/tdelenikas/smslib-v3 there is code to handle InformationElements.

deepaligupta9 commented 7 years ago

I will look into this code, Thanks for your help.

RaviGithub555 commented 4 years ago

HI Deepaliguta, Hope you are doing good, I stuck to send multiple sms to smpp server, Can you please help me or suggest me here how i can send multiple message