AdhamAwadhi / JamaaSMPP

Jamaa SMPP Client is a .NET implementation of the SMPP protocol that focuses on providing an easy-to-use and robust SMPP client library for .NET developers. This project is intended to be used by developers who want to integrate SMS functionalities in their applications as well as students who are learning the SMPP protocol.
https://github.com/AdhamAwadhi/JamaaSMPP/wiki
Other
45 stars 36 forks source link

Sequence Number is not incremented when sending large SMS #50

Open oeil2lynx opened 1 year ago

oeil2lynx commented 1 year ago

For all the segments of an SMS longer than 140 chars, the sequence number is the same. It should not be. For some SMSC, the connection is rejected and re-binded and the SMS is not fully sent. It could give an Null Exception ins some case.

image

I forked the project to make fix the bug, do you want me to create a pull request ?

oeil2lynx commented 1 year ago

The sequence_number may range from: 0x00000001 to 0x7FFFFFFF.

sequence_number

size octects: 4

type: Integer

There is no specific requirement on how the sequence_number should be set. However, it is recommended that the sequence number be a monotonically increasing number.