MMS POST

MMS POST SearchSearch

SMS & MMS Technical Forum » NowSMS Support - MMS & Advanced Issues (Product Support Only) » MMS POST « Previous || Next »
Author Message
Jeff
New member
Username: Jeff

Post Number: 1
Registered: 10-2015
Posted on Friday, October 30, 2015 - 10:15 am:   

Hi,

I would like to receive SMS & MMS and forward it to my web server using POST method.

For SMS it works great with 2-way commands.

But for MMS it's more complicated.. I need to forward the image (and eventually the text) received in the MMS.

I've read all the documentations and if I understand there are 2 methods :

1 --> Using 2-way commands for MMS. My web server will received a request from nowsms with the link of the image (example : AttachFile1=/SMSAttachFile/534E8AEE/IMG_6815.jpg)
Then my webserver will request nowsms with this : http://IP_nowsms_server:8800/SMSAttachFile/534E8AEE/IMG_6815.jpg in order to get the image.


But is there a mean where nowsms would directly send the image to my web server using POST (without the need that my web server request nowsms) ?


2 --> So I looked the MM7 method. With this method, does the image contained in a MMS is directly forwarded to my web server ?

For MM7 working I have only to check "route via MM7" in the MMS settings and in "MMSC routing" I have to enter my webserver adress and check "PHP multi part" and that's it?

More over do I have to check "process receive MMS message" in the 2-way tab If I use the MM7 method ?



Thank you very much for your answer.}
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 5489
Registered: 08-2008
Posted on Friday, October 30, 2015 - 06:41 pm:   

Hi Jeff,

Your understanding is correct. When you use "Route via MM7" as the MMS receive method, the entire content of the MMS is sent to your web server using HTTP POST. The format is either MIME based (real MM7) or multipart/form-data HTTP file upload (optimized for PHP processing).

If you want to use the HTTP file upload (PHP) format, there are a couple different ways to configure this.

a.) You can do it like you describe, where an MM7 connection is defined under "MMSC Routing", and the MMS receive settings route MMS messages to that connection.

b.) Or you can do it at a system level. MMS receive settings are left at the default MMS-IN directory setting, and on the 2-way page, "Process received MMS messages" is checked and the HTTP POST URL is the address to receive the HTTP POST.

"Process received MMS messages" only needs to be set for option b.

--
Des
NowSMS Support
Jeff
New member
Username: Jeff

Post Number: 2
Registered: 10-2015
Posted on Sunday, November 01, 2015 - 05:34 pm:   

Hi Des,

Thank you, it works now for MMS :)

Last question : I'm using a 3G USB dongle, do you think that an android phone will be faster to receive SMS&MMS ?

Jeff.
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 5490
Registered: 08-2008
Posted on Tuesday, November 03, 2015 - 02:24 pm:   

Hi Jeff,

For SMS, there's not much difference.

But for MMS, you'll typically get much better performance with an Android device over WiFi.

The USB modem interface requires re-establishing a data connection every time an MMS is sent or received, and SMS activity blocks while the data connection is active . Because MMS receiving is triggered by an SMS, this is an issue even for configurations that are mostly MMS.

Over the years we've seen a few USB modems that could keep the SMS channel open while a data connection is active, but they are rare.

Android devices are not limited in this way.

Another performance issue is multiple modems and MMS. With USB modems, if you have more than one modem connected to the same operator, there can only be one active MMS transmission to a particular operator at a time. There is no such limitation when using Android devices as modems.

--
Des
NowSMS Support

Add Your Message Here, or click here to create a new discussion topic.
Post:
Bold text Italics Underline Create a hyperlink Insert a clipart image
Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Click here to create an account.
Username:
Password:
Options: Automatically activate URLs in message
Action:

Login Login / Register Logout Logout Search Last 30 Days Topics Topics