MessageID

MessageID SearchSearch

SMS & MMS Technical Forum » NowSMS Support - SMS Issues (Product Support Only) » MessageID « Previous || Next »
Author Message
Mathew Mathachan
Frequent Contributor
Username: Mathewm

Post Number: 137
Registered: 04-2011
Posted on Thursday, May 21, 2020 - 07:52 am:   

Hi

As I understand, MessageID is a reference number returned by gateway when we submit message over HTTP.

Is this reference unique?
Does it get repeated?
If repeated .. under what circumstance?

We have an instance where it got repeated and we had some issue where status got updated on wrong records....

Appreciate your support

Mathew
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 6147
Registered: 08-2008
Posted on Thursday, May 21, 2020 - 01:04 pm:   

Hi Mathew,

The Message ID should be unique within a single gateway server, but will repeat/recycle after approximately 4 billion messages. If you need to have multiple gateways share a common message ID space, there is a MessageIDPrrefix setting that can add a server specific prefix to the ID.

--
Des
NowSMS Support
Mathew Mathachan
Frequent Contributor
Username: Mathewm

Post Number: 138
Registered: 04-2011
Posted on Saturday, May 30, 2020 - 05:25 am:   

Hello Des,

We have only one instance of NowSMS running and we found that MessageID repeated due to some reason.

We wanted to know what could be the reason?

Mathew.
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 6152
Registered: 08-2008
Posted on Monday, June 01, 2020 - 03:48 pm:   

Hi Mathew,

I am not aware of any reason. I have not seen this happen before.

--
Des
NowSMS Support
Mathew Mathachan
Frequent Contributor
Username: Mathewm

Post Number: 144
Registered: 04-2011
Posted on Thursday, August 20, 2020 - 05:07 am:   

Hello Des,

It happened again and we were able to trace teh sequence. The customer's machine crashed and they restored an older image. So I believe the MessageID is persisted in the NowSMS directory in some file.

Mathew
Mathew Mathachan
Frequent Contributor
Username: Mathewm

Post Number: 145
Registered: 04-2011
Posted on Thursday, August 20, 2020 - 06:26 am:   

Hi

Would you be able to share where this is persisted so that we can try to replicate the condition?

Mathew
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 6169
Registered: 08-2008
Posted on Thursday, August 20, 2020 - 11:27 am:   

Hi Mathew,

Yes, there is a file named UID.DAT which preserves the message ID across restarts. https://support.nowsms.com/discus/messages/1/60242.html

I don’t have any details on the format of this file, but it is binary and appears to contain the last used message ID.


Des
NowSMS Support
Mathew Mathachan
Frequent Contributor
Username: Mathewm

Post Number: 146
Registered: 04-2011
Posted on Sunday, August 23, 2020 - 01:52 pm:   

Thank you Des. We don't need to know the format of the file.... Just where it is so that we can work around that.

Mathew
Mathew Mathachan
Frequent Contributor
Username: Mathewm

Post Number: 147
Registered: 04-2011
Posted on Tuesday, August 25, 2020 - 08:06 am:   

Hello Des,

We were trying to recreate the duplicate message id by saving the UID file and copying it back.
We were able to recreate too.

However, we see that there is some concern in the delivery receipts where the mobile numbers of the same Gateway message IDs (SMSCReceiptMsgId) were not mapped correctly.

Is it that we sent the duplicates with short intervals and the REC files were mapped wrongly?

Mathew
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 6174
Registered: 08-2008
Posted on Tuesday, August 25, 2020 - 05:21 pm:   

Hi Matthew,

Duplicate Message IDs could cause some confusion for message ID tracking. However, the unique key in that tracking is the upstream assigned message ID, so this would cause confusion for downstream servers, not this server itself.

More likely, if you are resetting/restoring an image, you are wiping out the databases which do this tracking. They are in the SMPPData directory.

--
Des
NowSMS Support

Add Your Message Here, or click here to create a new discussion topic.
Post:
Bold text Italics Underline Create a hyperlink Insert a clipart image
Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Click here to create an account.
Username:
Password:
Options: Automatically activate URLs in message
Action:

Login Login / Register Logout Logout Search Last 30 Days Topics Topics