MMS breakDown Problem

MMS breakDown Problem SearchSearch
Author Message
Aloysia Rolanda
New member
Username: Arolanda

Post Number: 1
Registered: 12-2008
Posted on Wednesday, December 10, 2008 - 07:53 am:   

Need Help.
I got an MMS data:
84 //Content-Type Tag
1f // ?? --> why is image/tiff?? based on the wapforum
20 ??
b3
89
6170706c69636174696f6e2f736d696c
00
8a3c736d696c2d706172743e
00
022a82516170706c69636174696f6e2f736d696c
00
c0223c736d696c2d706172743e
00
8e534d494c2e736d696c
00

<smil>.....</smil>
3c736d696c3e3c686561643e3c6c61796f75743e3c726f6f742d6c61796f7574206261636b67726f 756e642d636f6c6f723d2223666666666666222077696474683d2232343022206865696768743d22 333230222f3e3c726567696f6e2069643d225465787422206865696768743d223132332220776964 74683d22393622206c6566743d22302220746f703d223022206669743d226d656574222f3e3c7265 67696f6e2069643d22496d61676522206865696768743d22313835222077696474683d2231343422 206c6566743d22302220746f703d2231323322206669743d226d656574222f3e3c2f6c61796f7574 3e3c2f686561643e3c626f64793e3c706172206475723d22353030306d73223e3c74657874207372 633d226369643a313934393234382220726567696f6e3d2254657874223e3c2f746578743e3c2f70 61723e3c2f626f64793e3c2f736d696c3e

2a03108381ea85313934393234382e747874
00
c0223c313934393234383e
00
8e313934393234382e747874
00
383838

the rest, i dont know. I know that the MMS body is based on the SMIL, but how to know the content-type is SMIL?
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 311
Registered: 08-2008
Posted on Wednesday, December 10, 2008 - 04:19 pm:   

You haven't gotten far enough to know that the content type is SMIL.

The content type is application/vnd.wap.multipart.related, and SMIL is one of the parts of the multipart content.

You need to study the WSP specification to understand this content type.

You also need to study the WSP specification to understand how to decode the content type header. The 1F that you are questioning is a length-quote (which you will find defined in the WSP spec).

Good luck.

--
Des
NowSMS Support
Aloysia Rolanda
New member
Username: Arolanda

Post Number: 2
Registered: 12-2008
Posted on Thursday, December 11, 2008 - 08:49 am:   

Can you give some trick of this WSP Spec, so that I can understand faster?
I'm new in this field.

The one that I know,
Content-Type format is :
[Content-Type Tag],[Content Type Value],[Num of entity],[body1],[body2],.....etc

based on the example at http://support.nowsms.com/discus/messages/12/2940.html for this one I understand.

but for the MMS data that I got, 84 1F 20 -> it doesnt match with the one that you said is "application/vnd.wap.multipart.related" because based on the http://www.wapforum.org/wina/wsp-content-type.htm, 1F is image/tiff but application/vnd.wap.multipart.related is A3.

Need some help.
Thanks.
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 318
Registered: 08-2008
Posted on Thursday, December 11, 2008 - 03:25 pm:   

Download the WAP WSP spec from http://www.openmobilealliance.org. You need it.

See section 8.4.2.24 which defines the encoding for the content-type field.

If the high bit is set, then this indicates "Constrained-media" encoding, which uses the single byte values that you are looking up on that table.

If he high bit is not set, then this indicates "Content-general-form". This starts with "Value-length", followed by "Media-type".

"Value-length" encoding is defined in 8.4.2.2. Length is longer than 30 decimal, so short-length encoding can't be used. Therefore you use "Length-quote" (the 0x1F) followed by "Length" (the 0x20).

The next bytes are "Media-type".

0xB3 is "well-known-media", which is 0x33 | 0x80 for "application/vnd.wap.multipart.related".

After this, up to the length of the field is one or more "parmeter" for the content-type.

--
Des
NowSMS Support