X-Mms-Message-Size value

X-Mms-Message-Size value SearchSearch
Author Message
Anonymous
Posted on Sunday, August 17, 2003 - 07:21 am:   

Hi everyone,

I am trying to encode the MMS notification message. But I don't understand what does the X-Mms-Message-Size field mean ?; does it indicate the size of which fields, in the mms message ? (in octets ?).

You please tell me how to encode a long value.

Thanks,
NTT.
THO
Posted on Monday, August 18, 2003 - 03:51 am:   

hi,

Any one can help me the above question ?

Regards,
/NTT
THO
Posted on Monday, August 18, 2003 - 04:26 am:   

Hi,
For example, I have the following binary-encoded string:

MMS-Notification:
8C 82 98 61 00 8D 90 96 56 69 65 74 6E 61 6D 4E 65 74 00 8A 80 8E 01 1E 88 06 81 04 3D D9 D6 F3 83 68 74 74 70 3A 2F 2F 6D 6D 73 2E 76 69 65 74 6E 61 6D 6E 65 74 2E 76 6E 2F 31 32 33 00

In text format:
8C82 X-Mms-Message-Type=m-notification-ind
986100 X-Mms-Transaction-ID (0x98) = “a”
8D90 X-Mms-MMS-Version: 1.0
96 56 69 65 74 6E 61 6D 4E 65 74 00
Subject: “VietnamNet”
8A80 X-Mms-Message-Class: Persional

8E011E X-Mms-Message-Size: ???

88 06 81 04 3D D9 D6 F3
X-MMS-Expiry : //date from 1970...

83 68 74 74 70 3A 2F 2F 6D 6D 73 2E 76 69 65 74 6E 61 6D 6E 65 74 2E 76 6E 2F 31 32 33 00
X-Mms-Content-Location: http://mms.vietnamnet.vn/123

Any one please help me why X-Mms-Message-Size is 8E011E ?

Thanks,
/NTT
Jag
Posted on Tuesday, August 19, 2003 - 03:18 pm:   

Correcnt me if i'm wrong
8E011E represents message size as in

8E .. X-Mms-Message-Size
01 .. Length in Octets of Size Next
1E .. 30 bytes

:-) another example could be like
8E02020A

8E .. X-Mms-Message-Size
02 .. Length in Octets of Size Next
020A .. 522 bytes
THO
Posted on Wednesday, August 20, 2003 - 04:00 am:   

hi,

Arcording to the WSP specification, value of X-Mms-Message-Size is a long integer, which contains the total size of mms message. So we must follow the encoding rules.

Here, I am wondering that the total size of the above mms lotification is 62 octets (0x3E), but why the value of X-Mms-Message-Size is 1E (30 octets) ?

Any one know, please help me !

regards,
THO.
andyg
Posted on Saturday, August 23, 2003 - 03:46 am:   

I believe X-Mms-Message-Size is the size of the message to be retrieved, not the size of the notification.
bshawk
Posted on Saturday, August 23, 2003 - 07:11 am:   

Hi,andyg,
according the specification WAP-209-MMSEncapsulation-20020105-a, X-Mms-Message-Size is for MMS Notification.
jsalvo
Posted on Saturday, August 23, 2003 - 03:44 pm:   

X-Mms-Message-Size is the approximate size of the MM message, not the size of the m-notification-ind.

If you read the 3GPP TS-23-140 v5.5.0 spec, it says that the "Message Size" in the MM1-Notificaiton.REQ is the "approximate size of the MM message". This 'Message Size" is then the "X-Mms-Message-Size" in the WAP-209-MMSEncapsulation document.

Besides, if you read the WAP-200-MMSEncapsulation document clearly, it says "The value of this header field could be based on approximate calculation, therefore it SHOULD NOT be used to reject the MM message." ... as in it should not be used by the MMS client to decide whether or not to do an m-retrieve.req.

BTW .... 3GPP has modified the TS-23-140 spec so that they should now refer to OMA's spec instead of wapforum spec for both the MMS Client Transaction and MMS Encapsulation ... after I have told them they were still referring to wapforums docs in the spec, but they were using OMA's specs in their discussions and e-mail when I clarified some MM1 issues. There are some minor differences between wapforums' and OMA's spec.

HTH,

John