Problems receiving MMS with Option 322

Problems receiving MMS with Option 322 SearchSearch
Author Message
Paul Crick
New member
Username: Paulcrick

Post Number: 1
Registered: 07-2011
Posted on Friday, July 29, 2011 - 12:34 am:   

I've got an unlocked Option ICON 322 modem and the 2011-07-07 version of NowSMS Lite.

SMS works a treat - I've got two way messaging working to my app and it's all good, I'm happy :-)

MMS doesn't work though. Not sure if this is related to the last comments on this post: http://support.nowsms.com/discus/messages/33365/70369.html

If I put the SIM chip in my Nokia N95, everything works fine - I'm able to send and receive MMS to and from my iPhone. With the SIM chip in the Option 322 though, it doesn't work as expected.

Using the PHP multipart upload, the data seems.. "wrong" - it's not the image I sent via MMS. If I set NowSMS Lite to receive to MMS-IN directory, I get a .hdr file but the subdirectory doesn't contain the expected data either. Looking inside the .hdr file I see a line "X-Mms-Retrieve-Status: 245" - not sure if that's relevant?

I'm not sure which debug logs to look at and what data you need to help diagnose the issue?

Thanks in advance
Paul
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 3365
Registered: 08-2008
Posted on Friday, July 29, 2011 - 03:36 pm:   

Hi Paul,

Can you clarify the following:


quote:

Using the PHP multipart upload, the data seems.. "wrong" - it's not the image I sent via MMS.




What exactly is "wrong", and at what point?

Is it that the image is smaller on the receiving end? (This is, unfortunately, an issue with many operator MMSCs in that they try to "adapt" the image to the receiving device, and have a nasty habit of making images considerably smaller. The intent was originally that early MMS devices had ridculously small image size limitations. But devices like the iPhone can handle much larger images via MMS.)


quote:

If I set NowSMS Lite to receive to MMS-IN directory, I get a .hdr file but the subdirectory doesn't contain the expected data either. Looking inside the .hdr file I see a line "X-Mms-Retrieve-Status: 245" - not sure if that's relevant?




This is extremely interesting.

Can I see the complete HDR file?

This indicates that you are receiving an MMS notification over SMS, which is a very good sign .... most of the mystery problems that you'll see in other postings here, are when the mobile operator does not send any MMS notifications.

--
Des
NowSMS Support
Paul Crick
New member
Username: Paulcrick

Post Number: 2
Registered: 07-2011
Posted on Friday, July 29, 2011 - 06:44 pm:   

Hi Des

Sorry, "wrong" wasn't very descriptive of me, was it? I guess I should describe the scenario.. I sent a picture from my iPhone to the number on the SIM chip that's in the Option 322. The message as seen on the iPhone showed the picture with some text underneath it.

On the receiving end, using the mmsreceive.php I added a bit of logging to a text file - seems the attachment has a content type of text/html in one case, and application/unknown in another. I've attached the log, the referenced files, and a copy of the .hdr file that had the 245 status code in it.

Cheers
Paul

text/plainMy log file
mmsreceive-log.txt (1.7 k)

application/octet-streamFirst received file
7BFDE547 (272.4 k)

application/octet-streamSecond received file
8A2CAEF4 (18.2 k)

application/octet-stream245 error header file
7DC05A11.hdr (0.8 k)
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 3369
Registered: 08-2008
Posted on Monday, August 01, 2011 - 02:47 pm:   

Hi Paul,

That is all very strange. I think we're going to need to see the raw data in order to understand what is happening. Based on the above, it would seem that there is some unexpected data that is causing everything to be decoded incorrectly.

Can you enable the SMSDEBUG.LOG, MMSCDEBUG.LOG and MMSWAPDEBUG.LOG files, and then send in another MMS message. Email the resulting log files to nowsms@nowsms.com with Attention: Des in the subject line, so that I can take a closer look.

Also, It looks like you're in the US...what mobile operator are you using?

--
Des
NowSMS Support
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 3379
Registered: 08-2008
Posted on Wednesday, August 03, 2011 - 06:31 pm:   

Hi Paul,

Thanks for sending the logs. I've never seen anything like that before, but I think I understand what is happening, and how to fix it.

I believe the message is too large for the WAP1 gateway, and as a result, the WAP1 gateway is corrupting the message.

Try changing the WAP Gateway Address setting for the MMS settings in NowSMS to: http://10.128.1.69:80 (the default setting is just an IP address, be sure to include the http:// prefix when changing it as this indicates to use a different format).

I think that will work.

I'm not sure why you are getting an SMS message about not having a data plan, but these settings might make a difference there as well.

--
Des
NowSMS Support
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 3380
Registered: 08-2008
Posted on Wednesday, August 03, 2011 - 06:35 pm:   

Additional explanation for others ... the modem is on the Rogers network in Canada.

MMS Server URL: http://mms.gprs.rogers.com/
WAP Gateway Address: http://10.128.1.69:80
GPRS APN for MMS: media.com
Login Name: media
Password: mda01
Paul Crick
New member
Username: Paulcrick

Post Number: 3
Registered: 07-2011
Posted on Wednesday, August 03, 2011 - 08:05 pm:   

Thanks Des - That worked a treat! I can now receive MMS into the directory or pass on to my PHP script - problem solved :-)

Cheers
Paul