MMS being received but not processed correctly. Sony MD300 on AT&T....

MMS being received but not processed correctly. Sony MD300 on AT&T.... SearchSearch
Author Message
Rodney James
New member
Username: Rodneyj

Post Number: 1
Registered: 07-2010
Posted on Thursday, July 29, 2010 - 10:49 am:   

Hi, I'm using a Sony MD300 on AT&T and can't seem to get MMS working for receiving. All I need to be able to do is receive MMS and then pass the photos off to a separate server via the web (using the mmsrecieve.php file. There's nothing wrong with the mmsrecive.php file). SMS is working fine.

I have read on the message boards to modify the MMS Settings WAP Gateway IP Address to "http://66.209.11.32:8080" and the Test is successful. NowSMS is definitely getting photos from the carrier.

Here are some of the other things I've got configured:

- MMSC Routing for Received Messages is set to "Receive to MMS-IN Directory"
- other than changing the WAP Gateway IP, the rest of the settings are default for the AT&T new option
- On the "Modem Connection" page, I don't have a Phone Number or Modem PIN input (although I've tried inputting it as I've tried various configurations)

Also, the Service tab shows that MMS Processed (VASP): is 31 and MMS Processed (User): is nothing.

The pictures being submitted are hitting the server, but nothing happens after that.

The mmsrecieve.php file isn't being invoked or something.

Under MMS Settings, should MMSC Routing for Received Messages be "Receive to MMS-IN Directory"?

MMSC Routing tab - What should the Default Route be? We have a phpscript setup as an additional route.

Basically I think I just need to know what settings to put in everyplace to make MMS work. We used to have it all working fine and then after a few months of not using the system, then turning it back on, MMS just didn't work.

We've probably messed around with too many settings now.

Lastly, we're getting the images sent in via MMS. They're going to: E:\Program Files\NowSMS\MMS-IN

From the 2-Way tab, when I click on the "view" button, I can view the actual photos coming in.
application/octet-streamMMS Error Logs
MMSCDEBUG.LOG (1.2 k)
application/octet-streamMMS WAP Debug
MMSWAPDEBUG.LOG (39.8 k)
application/octet-streamSMS Debug Log
SMSDEBUG.LOG (3843.6 k)
application/octet-streamSMS Out Log
SMSOUT-20100728.LOG (0.2 k)
application/octet-streamSMS Web Log
SMSWEB-20100727.LOG (0.1 k)
Rodney James
New member
Username: Rodneyj

Post Number: 2
Registered: 07-2010
Posted on Thursday, July 29, 2010 - 11:01 am:   

Here's the mmsreceive.php file in case you want to see it.

text/phpMMS Receive.php
mmsreceive.php (11.6 k)
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 2384
Registered: 08-2008
Posted on Thursday, July 29, 2010 - 07:10 pm:   

Hi Rodney,

Select "Properties" for the modem from the "SMSC" page.

Press the "MMS Settings" button.

Look for the "MMSC Routing for received messages" setting, as this specifies what to do with received MMS messages.

You want to select "Route via MM7" where the route name that you selects is the "MMSC Routing" definition that you have which points to your PHP script.

--
Des
NowSMS Support
Rodney James
New member
Username: Rodneyj

Post Number: 3
Registered: 07-2010
Posted on Thursday, July 29, 2010 - 09:45 pm:   

Des, thanks! I got it working and then all of a sudden it stopped after processing about 10 or so. BTW this is a paid account, so I don't think there's any limitations that I'm aware of other than the per min rates.

Any suggestions?
Rodney
Rodney James
New member
Username: Rodneyj

Post Number: 4
Registered: 07-2010
Posted on Thursday, July 29, 2010 - 10:02 pm:   

Des - update on that last post - so it seems as though the system is getting "clogged" or something... To unclog it, I can send a regular SMS and then the entire backlog of built up MMS's get processed. Strange.
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 2387
Registered: 08-2008
Posted on Thursday, July 29, 2010 - 10:30 pm:   

Hi Rodney,

I see some strange behaviour in the log that you posted earlier.

In particular, after startup, I see this entry in SMSDEBUG.LOG frequently:

"ReceiveModemCommand: Received New Message Notification"

However, NowSMS doesn't process any received messages until 17 minutes later.

I think there may be a bug in one of the responses that your modem gives, which is causing confusion.

What seems to be happening is that NowSMS sends the AT+CPMS? command to check to see if the modem is reporting any received messages. The modem says no, so we don't bother to check.

However, after you receive a text message (as opposed to a binary message), it appears that AT+CPMS? then reports a received message. That causes NowSMS to poll and it sees all of the other messages as well.

I believe you can get around this problem by editing SMSGW.INI, and under the [Modem - Sony Ericsson MD300 Wireless Modem] header, add OldPollingLogic=Yes

This will trigger some logic in NowSMS to use more brute force in polling for received messages.

If my theory about what is happening is correct, this should resolve the problem.

Please let me know ... we used to have an SE MD300 in our lab, but the USB connector broke off, so I cannot currently test the behaviour of the modem.

--
Des
NowSMS Support
Rodney James
New member
Username: Rodneyj

Post Number: 5
Registered: 07-2010
Posted on Thursday, July 29, 2010 - 10:36 pm:   

Hey Des - sorry to be so pedantic, but where is that file and what do you mean by under the Modem header? I'm not sure where to find both of those locations? Will test and let you know, though.
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 2389
Registered: 08-2008
Posted on Thursday, July 29, 2010 - 10:47 pm:   

SMSGW.INI is in the same directory as the log files.

Usually:

ProgramData\NowSMS on Win7/2008/Vista

Program Files\NowSMS (or Program Files (x86)\NowSMS) on XP/2003


Edit SMSGW.INI with NOTEPAD or a similarly simple text editor.

You should see an existing line in the file that says:

[Modem - Sony Ericsson MD300 Wireless Modem]

Insert a new line below that one and put this on the new line:

OldPollingLogic=Yes
Rodney James
New member
Username: Rodneyj

Post Number: 6
Registered: 07-2010
Posted on Thursday, July 29, 2010 - 10:54 pm:   

Des - that did the trick! Thanks so much!

Rodney
Rodney James
New member
Username: Rodneyj

Post Number: 7
Registered: 07-2010
Posted on Tuesday, August 17, 2010 - 05:54 am:   

application/octet-streamMMSWAPDEBUG
MMSWAPDEBUG.LOG (5.0 k)
application/octet-stream
SMSDEBUG.LOG (2646.4 k)
Rodney James
New member
Username: Rodneyj

Post Number: 8
Registered: 07-2010
Posted on Tuesday, August 17, 2010 - 05:56 am:   

Hey Des- So I'm trying to setup another system just like the last one (only difference is this is on Windows 7) - otherwise same modem, same AT&T, etc.

For the life of me, I can't get MMS receive working again. I've tried to replicate the other one exactly as it is (which by the way works wonderfully!) - and can't seem to figure out what I'm missing.

I attached two log files a moment ago. Maybe your magical eyes might see something I'm missing...

Thanks,
Rodney
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 2440
Registered: 08-2008
Posted on Tuesday, August 17, 2010 - 10:35 pm:   

Hi Rodney,

Have you tried swapping SIMs with the other modem to see if the problem follows the SIM?

It'd also be a good idea to try the SIM in a phone and verify that you can send and receive MMS with the SIM.

I'm not sure about AT&T, but some mobile operators will not deliver any MMS messages to you until you've successfully sent one.

--
Des
NowSMS Support