MMS 2 Way application using MC35i

MMS 2 Way application using MC35i SearchSearch
Author Message
Shane Hughes
New member
Username: Shughes

Post Number: 1
Registered: 11-2006
Posted on Friday, November 24, 2006 - 06:03 am:   

Hello,

I have read many threads trying to gather information on the best way to approach this project.
Let me just give you a quick overview of what we are trying to achieve.
We have a website (hosted) which houses our website and database.
We host our own server which is a subsite of our website which runs certain applications which are not allowed to be installed on a hosted website.

The nowsms gateway is only using a Siemens MC35i with a sim to send & receive sms/mms.
The idea is that the user registers and receives the mobile number of the nowsms gateway.
When they send an mms to the number it is processed and stored in the mmsin dir.
This then needs to be posted from the subsite to our main website.
We would like to have the option of sending them back an MMS message or SMS confirmation.
Also we would like them to have the ability to email a message to the nowsms server and have this do the same as above.

My questions here are:

1) What would be the best way to post back the information to our main site from the mmsin directory? (I don't need the code just the best / most efficient method)
2) With regards to having the ability to email in an mms message. We would be hosting our email facility on the same server (already using port 25).
Would my best option be to run the MMS email port number on something like 2525 and have the email server redirect email coming in to mms@test.com to the nowsms email port?
3) With regards to the confirmation, would the best way to do this be to use the MMS 2 way facility or by code after the processing of the mmsin directory has been completed?

Thanks in advance

Shane
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 6883
Registered: 10-2002
Posted on Tuesday, December 12, 2006 - 10:28 pm:   

Hi Shane,

Apologies for the delay in response.

If you're familiar with PHP, or you work with another scripting language that has good support for accepting HTTP file uploads, then that is a good way to go for processing the received MMS messages.

There are details with the PHP technique here:

http://support.nowsms.com/discus/messages/485/18694.html

Basically, when you use that approach, each time NowSMS receives an MMS message, it parses the MMS message content and posts it to a script that you configure.

If your scripting language doesn't have good support for accepting HTTP file uploads (which is how we post the MMS content to a script), then scanning the MMS-IN directory is a good approach. There is an SMSGW.INI file parameter that can trigger an executable program every time a new MMS message is posted to MMS-IN, which can simplify some of the work. (See http://support.nowsms.com/discus/messages/485/11121.html for info about the callback.)

Now to some specifics of your questions ...

1.) The above approaches are about equally efficient. I'd go with whichever approach is easiest for you to work with.

2.) Putting aside the port issues (what you describe is workable as long as your mail server can support that) ... we don't have a facility for parsing an e-mail in the same way as an MMS.

I'm trying to think if there is any type of trick that I could suggest ... but nothing is coming to mind. I'm sure there are PHP tools for parsing e-mail messages that you download from a POP3 mailbox, that's probably the route I would explore.

3.) For the 2-way MMS processing, there really isn't a simple request-reply paradigm, like there is with the SMS processing. To generate a reply you need to issue a new request to NowSMS, so I would suggest doing that after you process the message.

-bn