MSG IDs Reset
- This topic has 2 replies, 1 voice, and was last updated 11 years, 7 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Tagged: ID
My expectation is the MSG ID assigned to messages would be unique across all channels and they would not reset. From what I can tell, each channel has its own message ID counter and it appears that the MSG ID starts over when a new session is created with the server. Not sure if that is true but can you please explain the scope of the MSG ID. If it resets, how am I able to query the message status? Here are the first set of test messages I have sent and you can see that several of them have MSG ID of 0.
Msg ID Handled By User Date Time
0 Local admin 06/20/2013 10:20:41
3 Local admin 06/19/2013 10:02:07
2 Local admin 06/19/2013 10:00:50
1 Local admin 06/19/2013 10:00:02
0 Local admin 06/18/2013 11:53:37
0 Local admin 06/18/2013 11:48:28
0 Local admin 06/18/2013 11:46:24
0 Local admin 06/18/2013 11:45:58
0 Local admin 06/18/2013 11:45:54
0 Local admin 06/18/2013 11:40:54
What about incoming messages? Do they get a message ID assigned to them?
Ok, I think I see that MSG IDs are not assigned to messages sent from the admin web interface. All of the messages with ID 0 are sent from the web interface. Only messages sent through the API get a message ID. Is this correct?
When does this internal MSG ID get reset? What is the largest number it will have?
Here is the reply from support…
1. It appears that any message sent from the admin web interface gets a MSG ID of zero and only messages sent through the HTTP or TCP API get an actual MSG ID. Is this correct?
Yes, this is correct.
2. What is the maximum value for the MSG ID and what happens when this limit is reached?
The max value of Msg ID is 4,294,967,295 (Unsigned int).
3. Does the internal counter for the MSG ID ever reset?
Yes, the MSG ID will get reset on when the iSMS is factory defaulted. The msg ids are periodically saved to flash, but some msg ids can be lost if the iSMS is reset before saving to flash.