ConvertMMSFileForUAProf confusion

ConvertMMSFileForUAProf confusion SearchSearch
Author Message
Yew Thean Hoo
New member
Username: Theanhoo

Post Number: 3
Registered: 01-2006
Posted on Monday, April 03, 2006 - 12:05 pm:   

If I use the NowSMS web interface, I can send a Word document to my O2 (Mini). However, if I "post" it via HTTP in a program I wrote, it fails with this error:
ConvertMMSFileForUAProf: (16) Content type application/doc not supported, file 45F2BAC1\Requirements.doc not sent

I've added an appropriate entry in "mmsctype.ini", but I don't think it reads from that file, does it? I believe the UA profile comes from the phone manufacturer.

What I can't figure out is the difference between a "post" from a web browser and one from my program.

Using NowSMS version 5.51k (b20051013)

Please help.

Thank you.
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 5762
Registered: 10-2002
Posted on Monday, April 03, 2006 - 01:57 pm:   

Hi,

The quick answer would be to disable content adaptation. This is done by UNchecking "Enable Dynamic Image + Audio Conversion" on the "MMSC" page of the configuration dialog.

The bigger question is why would there be a difference between sending from the NowSMS web interface and your own HTTP POST to NowSMS.

The UAProf does indeed come from the device manufacturer. And we check it to see what content types are supported by the device.

The MMSCTYPE.INI file is only used for mapping file extensions to MIME content types. (We also consult the registry of the PC running NowSMS for file extension to MIME content type mappings that have been defined to Windows.)

Now that could be an issue ... "application/doc" is the MIME type that we would assign for ".DOC" if no other mapping was defined. I think that Microsoft normally uses a type of "application/msword". So if you added a .DOC=application/msword mapping to MMSCTYPE.INI, that might resolve the issue.

But it's probably just as well to disable the content conversion if you are sending unusual types inside of an MMS.

-bn