Repository navigation
Bug fixes
- Multi-part
deliver_smreassembly now actually works: parses the UDH fromshort_messagebytes, supports both 8-bit (IEI0x00) and 16-bit (IEI0x08) concatenation references, races and leaks in the merge holder are fixed, andmergeCleanerruns on aTickerinstead of a one-shotTimer. pdufield.Variable.Bytes/Variable.Lenno longer mutate or alias caller data.codec.SerializeTono longer overstates header length whenMap.SetonShortMessageinjects an implicitDataCodingentry that is not present in the PDU's field list (affectedReplaceSMand similar).smpptestserver: per-conn write mutex plus locked conn slice forBroadcastMessage.Receiverbound without aHandlerno longer deadlocks the client read loop on the first inbound PDU.- Client now acknowledges a server-initiated
unbindwithunbind_respand lets the existing reconnect path take over.
Features
- New PDU types and
Transmitterhelpers:CancelSM/CancelSMRespandTransmitter.CancelSM.ReplaceSM/ReplaceSMRespandTransmitter.ReplaceSM.AlertNotification(decode only).Outbind(decode only).Transmitter.SubmitDatafordata_sm, with the body carried via themessage_payloadTLV.
pdufield.ParseDeliveryReceipt(body []byte) (*DeliveryReceipt, error)parses SMPP 3.4 Appendix B delivery-receipt bodies.
Breaking
pdufield.UnSme.ErrCodechanged fromVariableto[4]byteso it actually matches the wire form (a fixed 4-byte big-endian uint32, not a NUL-terminated string). This only affects callers that reach intoUnSmeList.Data[i].ErrCodedirectly;Transmitter.UnsuccessSmesis unchanged.
Docs
- README modernised: full list of supported text codecs, link to sms-api-server for an HTTP frontend built on this library, AUTHORS reference removed.
- Many code comments and package doc strings cleaned up; copyright header added to
smpp/encoding/gsm7.go; newsmpp/encoding/doc.go.
Full Changelog: v2.0.0...v2.1.0