opentelecoms-org / jsmpp

SMPP implemented in Java
Apache License 2.0
232 stars 165 forks source link

Send a long message over 255 #179

Open Wgjamia opened 2 years ago

Wgjamia commented 2 years ago

Hi, Could you please help me how to send long message over 255 characters use jsmpp.

Wgjamia commented 2 years ago

Use payload message Tlv

pmoerenhout commented 1 year ago

If you service provider support long messages, you can do:

OptionalParameter messagePayload = OptionalParameters.get(OptionalParameter.Message_payload.class, message);

whereby message are the bytes to be send (the message encoded according the DCS). Otherwise, you send the message in segments, see SubmitLongMessageExample.