X-Mms-Expiry Encoding | Search |
NowSMS Support Forums ⬆ MMS & SMS Technical Discussions (unsupported) ⬆ Archive through February 03, 2005 ⬆ |
◄ ► |
Author | Message | |||
Renee Unregistered guest |
Hi Bryce, Couple of quick questions. Not sure if they've been answered before as I couldn't find anything while searching for it. How is the X-Mms-Expiry value encoded in the MMS Notification WAP Push message? In one of the previous threads, the binary value for the X-Mms-Expiry was 880581 0302A300. Another example in the same thread was 880680 044019FE91. Would you mind explaining how 0302A300 & 044019FE91 were encoded and what is their actual (human readable) value? I read from the specs that the expiry value in the notification was always an interval. Thus, should we be using the absolute token or the relative token? What is the difference between the absolute token and the relative token in this case? Thanks for your answers in advance! Cheers, Renee | |||
Renee Unregistered guest |
Hi Bryce, Understand that you are busy but would appreciate your some hints on the above questions. Would appreciate it if anyone else could provide any hints either. Cheers, Renee | |||
Renee Unregistered guest |
Hi Bryce and everyone else, any ideas on the above mentioned? it's been almost a week and i still have no clue on how to get it done. thanks for your help! Cheers, Renee | |||
Dono Unregistered guest |
880581 0302A300 is decoded as: 0x88: X-Mms-Expiry 0x05: # of data bytes (810302A300) 0x81: Relative-token 0x0302A300: Delta-seconds (# of seconds) 880680 044019FE91 is decoded as: 0x88: X-Mms-Expiry 0x06: # of data bytes (80044019FE91) 0x80: Absolute-token 0x04: # of data bytes (4019FE91) 0x4019FE91: Absolute date (in delta seconds) Absolute means the date is set to a known date & time, such as "Sun, 06 Nov 1994 08:49:37 GMT" Relative means # of seconds later, such as 3600 secs (1 hour) later, 3 * 24 * 3600 secs (3 days) later, etc. | |||
Renee Unregistered guest |
Hi Dono, Thanks for the very detailed explanation. Can I check with you how do i encode the absolute date? for instance, you mentioned that 0x0302A300 is the absolute date in delta seconds. So how do I calculate that date? I mean, do i add the value (in seconds) to a set date? if so, what is the date i should add the seconds to? Many Thanks! Renee |