twitter-archive / cloudhopper-smpp

Efficient, scalable, and flexible Java implementation of the Short Messaging Peer to Peer Protocol (SMPP)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Receiving and concatenating long message to cloudhopper server.

wsimukoko opened this issue · comments

Hi Folks

How do i receive split long message from an smpp client in cloudhopper. We are using the library to receipt messages and forward to SMSC.

Kind Regards

William

commented

Concatenated messages should have the SMPP optional parameters (sar_msg_ref_num, sar_total_segments, and sar_segements_seqnum) set. See the SMPP 3.4 spec, Section 2.2.4.2 for definitions.

Hi
Normally this comes as GSM Short Message Service User Data, UDH header will come as a part of a message appended as first 5 bytes of the message, to get these parameters you need to read each byte, eg. the first char (int) charAt(0) will have the UDH length

Regards,
Buchafwe.

what if i have same sequence no. for all the concatenated messages?