MMS encoding version

MMS encoding version SearchSearch
Author Message
Thilani Abeysinghe
New member
Username: Thilani

Post Number: 5
Registered: 02-2009
Posted on Friday, September 11, 2009 - 08:09 am:   

Hi,
I want to decode mms-send-req. I have gone through wap 203wsp 20000504-a document.
Normally the mms is binary encoded.
It has assigned numbers to different header fields.
Following is a part of hack of mms pdu

8C - X-Mms-Message-Type
80 - m-send-req
98 - trans id
30303030303500 - ID
8D - mms version
90 - 1.0
85 - date
043C57FB15
89 - From
19 - length
80 - address present
2B3335383939303030303036362F545950453D504C4D4E00 - address
97 - to
2B3335383939303030303030332F545950453D504C4D4E00 - address
96 - subject
5468697320697320612074657374204D4D53206D657373616765202100
86 - delivery report
81 - no
90 - read reply
81 - no
8A - Message class
81 - Advert
8F - priority
80 - low
84 - Content-Type
A3 - mixed
02 - 2 bodyparts
04 - length of headers
8167 - length of data = 11100111 = C3 = 195 characters

03 IS VALUE-LENGTH OF CONTYPE-TYPE
83 IS CONTENT-TYPE, TEXT/PLAIN (03|0x80),
8183 IS PARAMETER, CHARSET = "US-ASCII".
50656F706C65206861766520676F7474656E207573656420746F20646F696E67207468696E677320 6F7665722074686520496E7465726E657420746861742074686579200D0A68617665207072657669 6F75736C7920646F6E65206279206F74686572206D65616E733A20726561642C20636F7272657370 6F6E642C207075626C6973682C200D0A72657365617263682C20646F207465616D776F726B2C206C 697374656E20746F206D757369632C2073686F702C206D616B652074656C6570686F6E652063616C 6C730D0A202D20746865206C697374207365656D7320656E646C6573732E - Text payload
20 - ???
01 - ???
81AC779EFFD8FFE00010 - ???
4A46494600010200006400640000FFFE001241646F626520496D6167655265616479FFEC00114475 636 (JPG datastream, truncated at this point)

I reffered Table 42,39. Character Set Assignment ,Header Field Name Assignments Examples IN WAP-230 DOCUMENT.
In that document they specify the encoding version, assigned numbers.
So in MMS pdu by mms version does it define the mms encoding version?
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 1238
Registered: 08-2008
Posted on Friday, September 11, 2009 - 03:11 pm:   

You're calculating the length of data incorrectly.

11100111 != C3
11100111 = D7

The 20 that you are confused about is the last character of the text.

What follows is the next body part. (Remember that it said there were 2 body parts?)

--
Des
NowSMS Support