Is it correct that the Message ID returned as part of the SUBMIT_SM_RESP does not match the Message ID returned in the DELIVER_SM delivery receipt?
From reading the SMPP 3.4 spec 1.2 I thought it would, because the spec states in Appendix B for the delivery receipt:
The message ID allocated to the message by the SMSC when originally submitted.
but I'm finding for example the hex returned in the SUBMIT_SM_RESP to be
c81f136b00116d53000000000b68c86e01481101
whilst the decimal returned in the DELIVER_SM to be
14420265882147188051
and no amount of bit-fiddling shows any correlation between the two or parts thereof.
I initially thought it a bug on my part, but I then found in the obscure document Technical realization of the Short Message Service (SMS) Point-to-Point (PP) (GSM 03.40)
§9.2.1 The Short Message Identifier is not carried between entities and therefore a given message may have different SMIs at the MS and SC sides
and later
§9.3.1 ...therefore the Message Identifier at the SC/GMSC interface is not the same as at the visited MSC/MS interface
So, do I understand correctly the Message ID is useless for correlating submission and delivery of SMSs?
My problem turned out that I was converting from hex to decimal using a 32-bit method, whilst a 64-bit conversion on the first 16 characters of the returned value matches the delivery receipt. So it was my bug, but thanks to Wahid Sadik for confirming that the two are expected to match.