fiorix / go-smpp

SMPP 3.4 Protocol for the Go programming language
MIT License
218 stars 135 forks source link

Long message multi-part tracking #74

Closed McSwitch closed 6 years ago

McSwitch commented 6 years ago

Hi all,

Noticed that the library, when sending long messages, only returns the data for the last part of the multi-part message. This is due to the function only returning a single ShortMessage in the response:

func (t *Transmitter) SubmitLongMsg(sm *ShortMessage) (*ShortMessage, error) {

I would like to extend this function to return all parts of the multi-part message:

func (t *Transmitter) SubmitLongMsg(sm *ShortMessage) ([]ShortMessage, error) {

We could then keep track of the delivery status (via Delivery-Receipts) of each part of the multi-part message.

fiorix commented 6 years ago

Dup of #72

If there is a solution I'm happy to reopen both issues.