1

I use opensmpp library for sending sms, but I cannot find documentation or example of sending long messages. I want to send long messages by splitting and using UDH (because it's sms gate requirement). Where can I find documentation or example for Opensmpp java library?

  • Take a look at the following page on Opensmpp's Github page: https://github.com/OpenSmpp/opensmpp/issues/5 – SaschaM78 Mar 11 '15 at 10:44
  • Thx, but how can I set UDHI flag via opensmpp? – user3531337 Mar 16 '15 at 14:19
  • Have a look at [this article](https://itprobes.wordpress.com/2009/09/05/hello-world/) on concatenated SMS. Basically you need to add the flag to the request, like `smRequest.setEsmClass((byte)Data.SM_UDH_GSM);` and split your message into chunks of 153 bytes so that the additional header can be included. HTH – SaschaM78 Mar 16 '15 at 14:59
  • Great to hear! Would you be so kind to close this question so that it does not remain unanswered? Thx! – SaschaM78 Mar 17 '15 at 09:32

1 Answers1

0

Good to hear it worked! As a short summary, this would be the way to add additional header information for multipart/concatenated SMS delivery using OpenSmpp:

SubmitSM smRequest = new SubmitSM();
smRequest.setEsmClass((byte)Data.SM_UDH_GSM);

The above code was taken from this article about multi-part SMS that includes sample code and extended technical details.

SaschaM78
  • 4,376
  • 4
  • 33
  • 42