fiorix / go-smpp

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

Create inflight key based on ID and Seq to avoid conflicting Seq #71

Closed hungdinhts closed 3 years ago

hungdinhts commented 6 years ago

We are using Seq to distinguish the request/response channel. But the Seq of Submit and Deliver may be the same. So it may causes issue 'unexpected PDU ID'.

My scenario:

My solution: The key should be combined of Seq and an id of (SubmitSM, SubmitSMResp) round trip. I see that the last 2 bytes of ID is potential candidate for that id.