MMS-Notification sent.mms is not read properly by phone

MMS-Notification sent.mms is not read properly by phone SearchSearch
Author Message
Alex Lavr
Unregistered guest
Posted on Thursday, July 15, 2004 - 08:27 pm:   

After I sent an MMS-notification for http://www.sms2email.com/mms/sms2email.mms

My phone downloaded the messages but does not read it properly. All I see is the info about the sender and the subject. The content itself is not displayed - I get a blank mms page.
I know that the mms file is fine because when a mms notification is sent from sms2email.com, everything works fine.

This is the data send by NowMMS:
2706226170706C69636174696F6E2F766E642E7761702E6D6D732D6D65737361676500AF848C8298 30313233343536008D90890D8061406265736D732E636F6D0096736D7332656D61696C008A808E02 2EF988058103093A8083687474703A2F2F7777772E736D7332656D61696C2E636F6D2F6D6D732F73 6D7332656D61696C2E6D6D7300

Also, for some reason the User data header keeps changing. It worked fine once - 0605040B8423F0
it changes to
0B05040B8423F000032B0201
0B05040B8423F000032A0202

Please assist me.
Alex
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 3072
Registered: 10-2002
Posted on Friday, July 16, 2004 - 07:58 pm:   

Hi Alex,

It works for me. I can send out an MMS notification for that URL, and it works just fine. At least on one of my phones. I tried a SonyEricsson T630, and it works ... but on a SonyEricsson P900 I get an error indicating that it is not supported. And a Nokia 6600 reports that the "presentation is corrupted or not supported".

I'd really have to take a close look at the format of that file to determine what is wrong with it. And since we didn't generate the file, and it sounds like you didn't either, I'm somewhat hesitant to put the time into debugging someone else's content.

The user data header changes when the notification message is larger than 140 bytes. Then concatenated SMS must be used to send out the notification. (The sender is put into the notification, so the length of the sender can affect the size of the notification message ... also if you override the subject in the precompiled message, that goes into the notification as well which can affect size.)

-bn
Alex
Unregistered guest
Posted on Friday, July 16, 2004 - 09:29 pm:   

Thank you very much. I'm going to test using other mms file. I do not understand, however, that when the message is sent from sms2email.com, it's displayed fine.
I sent messages from wire2air.com's and NokiaUsa.com's mms pages and both of the also didn't work - the image was not displayed. When I forward the message to my e-mail, all the gif files get there alright.
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 3118
Registered: 10-2002
Posted on Wednesday, July 21, 2004 - 10:00 pm:   

Hi Alex,

Well, curiosity got the better of me.

I ran some more tests with the MMS file that you referenced above.

If I extract the content of the file, and send without the SMIL, it is fine on the P900.

But with the SMIL, the P900 just says that the message is not supported.

Ah ... and sure enough, there is a SMIL error. The root-layout element is opened but never closed.

So indeed, the SMIL is invalid in the message that you reference.

Just because somebody puts up an example on their web site doesn't mean that it is actually a valid working example ...

This is the SMIL that is presently in the above MMS message:

<smil>
<head>
<layout>
<root-layout width="122">
<region id="Image" width="122" height="96" left="0" top="0"/>
<region id="Text" width="122" left="0" top="122"/>
</layout>
</head>
<body>
<par>
<img src="animation.gif" region="Image"/>
<text src="text.txt" region="Text"/>
</par>
</body>
</smil>


And I believe they intended this:

<smil>
<head>
<layout>
<root-layout width="122"/>
<region id="Image" width="122" height="96" left="0" top="0"/>
<region id="Text" width="122" left="0" top="122"/>
</layout>
</head>
<body>
<par>
<img src="animation.gif" region="Image"/>
<text src="text.txt" region="Text"/>
</par>
</body>
</smil>

Not closing an element is something that you have to watch out for in XML based languages. You can get away with being sloppy in HTML, but not in XML.

-bn