Has anyone added validation of the message id of the MSA to the message id of the outbound message in the check_ack proc? If so what was the code you used and how long has it been in place?
A copy of the message that is awaiting reply is in OBMSGID. It would be a simple matter to pull MSH.10 from that message and compare to Msg ID in MSA.
We don’t usually feel that is necessary because we don’t send another message until we get ACK for the pending message. Therefore, there should be no queued up messages on the receiving side.
However, the hooks are there for whatever you wnat o do. Just be sure and clean up to prevent memory leaks