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:
Client sends SubmitSM and wait for SubmitSMResp
At the same time, server sends DeliverSM with the same Seq
Then error 'unexpected PDU ID'
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.
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.