Pulling MMS content fails

Pulling MMS content fails SearchSearch
Author Message
Nicky Murphy
Posted on Tuesday, October 14, 2003 - 12:15 pm:   

I've got an Aircard 750 and the demo version of NowSMS. I've managed to get inbound and outbound SMS working OK and the Aircard has a Valid GPRS connection. If I send my laptop an MMS message I can see the notifcation appear in the MMSINQ directory and if I look at the file it has a url back to the message content, but it fails to recover it either using the GPRS connection or the local ADSL connection. It just keeps retrying. What am I doing wrong?
Bryce Norwood - NowSMS Support
Posted on Tuesday, October 14, 2003 - 03:32 pm:   

Nicky,

The "MMS Receive Settings" probably are not set up correctly for your operator.

This is one of the hard bits of getting things setup, as you need to have the appropriate settings configured for the operator:

http://www.nowsms.com/documentation/ProductDocumentation/mms_notifications_and_c ontent/Connecting_to_operator_MMSC.htm#UsingGPRS

On the second screen in the above link ("MMS Settings"), how do you have your settings configured? Which mobile operator are you subscribed to?
Nicky Murphy
Posted on Tuesday, October 14, 2003 - 04:59 pm:   

On the modem connection screen, the phone number is that of my SIM card.

In the MMS Settings tab I have:

URL: mmsc.mms.o2.co.uk
Net: Modem:Sierra Wireless GPRS
WAP: 193.113.200.195
Modem Used: Sierra Wireless
GPRS APN: payandgo.o2.co.uk
Login: payandgo
password: password

Test connection will work if I manually perform a GPRS connection using Aircard Watcher but it will not dial itself.

What should the phone number be?

Even if I manually trigger a GPRS connection the MMS message will still not come down.
Bryce Norwood - NowSMS Support
Posted on Tuesday, October 14, 2003 - 05:53 pm:   

Nicky,

The phone number isn't really relevant, because we won't use it. (*99# is normally used to make a GPRS connection to the default GRPS APN, but when that approach is used, we handle that behind the scenes.)

Things are a little different with the Aircard, because it has its own network driver. (The network driver is what allows it to be used simultaneously for GPRS and SMS.)

I need to write up a description of how to best configure NowSMS with the Aircard, since it is so different from other GSM/GPRS modems, so I'll try to do that here.

Identify the version number of the Sierra Wireless software. This can be done from the Watcher startup screen, or from the Help/About option in Watcher.

If you are not running a v3.x release of the Aircard software, then I strongly suggest that you update. The update details are here:

http://www.sierrawireless.com/SupportDownload/SupportDownloadDocumentation/ac750 -choice.asp

Next, go into Tools/Options within the Watcher menu.

Under "Profiles", Add a profile for your network operator, if you have not already. Otherwise, edit the existing profile. Specify the GPRS APN and the user name and password associated with it. Specify "Auto Connect". Make sure that "Default Profile" is checked for this profile.

Exit Watcher. Remove the PC card. Wait a couple of minutes. Re-insert the PC card. Confirm that it automatically re-establishes a GPRS connection.

Back in Watcher, go to Tools/Options, and go to the "Display" menu. Uncheck "Auto-launch Watcher". I recommend this, as otherwise the SMS application built into Watcher can sometimes receive SMS messages before NowSMS does, which can present problems.

Exit Watcher.

Remove the card. Wait a few minutes. Re-insert the card.

After a couple of minutes, the card should get a GPRS connection, and you should see an icon on the task bar that indicates this.

Now back to the "MMS Receive Settings" in NowSMS.

I think you want the "MMSC URL" to be "mmsc.mms.o2.co.uk:8002/".

In the network connection to be used, select "Network: GPRS Aircard". (This is telling us to use the network driver instead of a modem driver.)

The WAP Gateway setting is correct for your operator.

Set "Modem used" to "None" (since we are not using the modem driver in this case).

The "GPRS APN" and login/password fields will be grayed out, since they are set by the network driver and outside the control of NowSMS in this configuration.

Test connection should now work fine.
Nicky Murphy
Posted on Tuesday, October 14, 2003 - 07:07 pm:   

Thanks for this, I'm running the latest version of the drivers (3.1.1). The "Network GPRS" list item did not appear when Watcher was running but it now does and has been selected. The Login/Password fields do not get grayed out (must be a bug!)

Test connection still works but the .Q file still won't disappear but the last retry time continues to go up.
Bryce Norwood - NowSMS Support
Posted on Tuesday, October 14, 2003 - 07:31 pm:   

Nicky,

Ok. It is likely that there is a problem with the MMSC setting. (We cannot actually test this setting when you perform the "Test Connection" option.)

How about this ...

Manually create a file named MMSWAP.INI in the NowSMS directory. Put the following content in that file:

[MMSWAP]
Debug=Yes

Restart the MMSC service.

Give it time to retry sending the message.

E-mail the MMSWAPDEBUG.LOG file to nowsms@now.co.uk. (You could also post it here, but those files get relatively long, and I'd like to see the entire dialog.)

(And you're right ... the login name and password settings don't actually get grayed out, but they definitely are not use when the "Network Connection" type is one of the "Network:" driver entries.)
Nicky Murphy
Posted on Tuesday, October 14, 2003 - 07:41 pm:   

I'll give that a go shortly. I've put debug on the SMS bit and SMSDEBUG.log has an entry in it for ThreadProcessInboundMMS where an extract from the text says HTTP:/1.0 406 Not Acceptable content type: application/vnd.wap.wmlc ContentlLength:134.... etc.

I sent my laptop one of the default MMS templates from my Sony T68i as this was the only MMS content I had.


Bryce Norwood - NowSMS Support
Posted on Tuesday, October 14, 2003 - 07:50 pm:   

Interesting. That suggests that the URL that contains the MMS message is not in the MMS format, which does not make sense.

Can you setup an "MMSC Outbound" route in NowSMS to route your outbound MMS messages through this same link (same settings that we've established above) ... and then send an MMS message to yourself via the NowSMS web menu interface?

I'd really like to see an MMSWAPDEBUG.LOG for that whole transaction sequence ... the send and the retrieval attempts, if you could e-mail that to nowsms@now.co.uk.
Nicky Murphy
Posted on Tuesday, October 14, 2003 - 09:07 pm:   

Bryce, this is beyond my current knowledge, if you don't have any step by step instructions it'll take me some time to work it out. Or I could deinstall everything and start again!
Bryce Norwood - NowSMS Support
Posted on Wednesday, October 15, 2003 - 03:32 pm:   

Understood. But so far you've been an extremely quick study.

Here's what I'd like to suggest ...

In the NowSMS program directory, create a file named MMSWAP.INI. And put the following contents in that file:

[MMSWAP]
Debug=Yes

(Note: If you create this file using Notepad, Notepad likes to add a ".txt" extension to the end. When you do File/Save As ... enter "mmswap.ini" as the file name, and select "All Files" for "Save as type".)

For the other bit, what I would like to see you do is this ...

In NowSMS, go to the screen titled "MMSC Routing". Select "Add".

This will give you a screen very similar to the "MMS Settings" page that you configured for receiving messages.

"Account Name" can be any value as it is only used internally to NowSMS (for example, you might just want to put O2).

"Account Description" is also only used internally to NowSMS.

"Default Sender Address" is best left blank for this type of connection.

"Allow Sender Address override" is best left unchecked for this type of connection.

"Route Messages to this account for recipient phone number(s)" ... let's set this to a "*" character, which is a wildcard. (We could set this another way, but let's just do it here to make sure it gets set.)

"Route messages via" should have "MM1" checked.

At this point, the remaining options should be identical to the "MMS Settings" page that you configured previously. Use those same values here.

Then verify that "Test Connection" is working.

Hit "Ok".

When you return to the "MMSC Routing" page, change "Default Route" to be the profile that you just created (named "O2" if you used my example above).

Now hit "Apply" to save the configuration changes.

On the "Service" page, restart both of the services.

Next go to the web interface, and select "Send MMS Message".

Address the message to the phone number of the attached modem.

Include a subject, some text, and attach a small image file before you submit.

Let things run for a few minutes.

Then e-mail me (nowsms@now.co.uk) the mmswapdebug.log file. If other debug logs are also activated, you can e-mail the smsdebug.log and mmscdebug.log files as well. But it's the mmswapdebug.log that I am most curious about.









Nicky Murphy
Posted on Thursday, October 16, 2003 - 07:44 am:   

I made the changes and had a look at the log file and discovered that the send was rejected by O2. Having traced back up the log file I found that it was routing the packets via my wireless lan and over the ADSL connection. O2 was therefore rejecting it as it was coming from a non O2 subnet. I also assume the MMS content pull after the SMS notification message was received was also going via ADSL which was why it was rejected.

One of the messages I'd sent to the laptop had been received and processed sucessfully at some point so I know it has the capability of working.

The messages I sent from the laptop (after turning off the wireless connection) were successfully processed and sent but I never got the sms notification back and therefore never got the MMS message back.

I'm probably going to make a note of all the setting that were changed from this discussion, back it out and re-install and see what happens.

The question is therefore:

Can I pursuade nowsms to use the GPRS connection and not any other network connections the laptop may have by using the 'Modem' setting instead of the 'Network' setting and will it then do dial on demand?
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 904
Registered: 10-2002
Posted on Thursday, October 16, 2003 - 08:36 pm:   

Nicky,

When you use the "Network:" setting, we manually update the PC routing table to talk to the WAP Gateway over the specified network connection. (The same thing happens with the modem interface.)

The O2 WAP gateway is a bit unusual, as it is the only carrier gateway that I am aware of, which is also accessible over the open internet.

I believe that you can also use the "Modem:" connection with the Aircard, but that you have to go back into Watcher, and disable any of the profiles from "Auto Connect". Unfortunately I don't have my Aircard with me at present, so I will have to check that tomorrow.

-bn
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 914
Registered: 10-2002
Posted on Friday, October 17, 2003 - 04:42 am:   

Nicky,

I still haven't had a chance to try out the dial mode on the Aircard yet.

I'd be curious what the output of IPCONFIG says on your PC when the Aircard is inserted.

I'd also be curious to see an MMSWAPDEBUG.LOG to see if that tells me anything about why we are not properly routing over that "Network:" connection to talk to the WAP gateway.

-bn