2-way MMS - run as sms

2-way MMS - run as sms SearchSearch
Author Message
Lars Nielsen, MobileNation ApS - Denmark
Frequent Contributor
Username: Larsmservice

Post Number: 242
Registered: 10-2003
Posted on Friday, September 02, 2005 - 11:31 pm:   

Hi B.

On the 2-way page in nowsms we have posibility to run some external scripting everytime a sms comes in.
Could the same functionality be used on incoming mms. You could actually copy the whole sms Command Table etc. to mms.

The reason i am asking is that it would be quite cool if nowsms could start a script when it has finished downloading the mms and copying the content into the MMS-IN dir.
Nowsms creates a file and a folder and copies the content in there. If nowsms could start a script with the "Command to execute" functionality, and if it could add arguments with the header-filename, that would be perfect ;-).

Hope you undestand my poor english...


;)Lars
Lars Nielsen, MobileNation ApS - Denmark
Frequent Contributor
Username: Larsmservice

Post Number: 244
Registered: 10-2003
Posted on Thursday, September 15, 2005 - 07:49 pm:   

Anything?
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 4957
Registered: 10-2002
Posted on Monday, September 19, 2005 - 10:35 pm:   

Hi Lars,

Sorry, I've been working on getting the "SMS Issues" part of the forum caught up, so I've neglected this forum for a bit.

Do you need the full functionality of the 2-way command table?

My hesitation is that most people use that facility with HTTP links instead of local executables.

Also, the "SMS Command Prefix" field wouldn't apply.

Although I suppose having different commands for different receive numbers would be nice.

The reason for my asking is that it would be very easy for us to add a configuration option to run a command line executable for every received MMS, passing it the filename on the command line.

But if we made it more complicated, it would take more time to figure out how to implement it.

Thoughts?
Lars Nielsen, MobileNation ApS - Denmark
Frequent Contributor
Username: Larsmservice

Post Number: 245
Registered: 10-2003
Posted on Tuesday, September 20, 2005 - 09:51 am:   

Hi B.

The cool thing about the "2-way" is that it makes you able to do run apps in "real-time" meaning that when a sms comes in you can do a HTTP call or you can run an executable.

You can't do that with incoming mms. I fully undestand that you would not be able to read the prefix etc., but you could use the receiver-number instead which will give you the possibility to do different tasks based on which modem received the mms.

The only thing that might be a bit tricky is how you will give relevant information about the incoming mms. I think the only inf. needed would be the header-filename. But i guess it could be fixed if the data was available a little like you do it in the smsgw.ini.

Examples:
We wish to call an url: http://bryce.com/nowsms/default.php?hdr=@@headerfilename@@
and so on.


I think you should make the "easy" version. Add a configuration option to run a command line executable for every received MMS, passing it the filename on the command line.


;)Lars


Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 4986
Registered: 10-2002
Posted on Tuesday, September 20, 2005 - 10:59 pm:   

Hi Lars,

As busy as these past few weeks have been, I'm going to see if we can go the easy route.

I think we can probably squeeze in an INI file setting that allows for a command line executable or a URL every time an MMS is received, passing the header file name.

I'll know more in a couple of days.

-bn
Lars Nielsen, MobileNation ApS - Denmark
Frequent Contributor
Username: Larsmservice

Post Number: 246
Registered: 10-2003
Posted on Tuesday, September 20, 2005 - 11:04 pm:   

Thanx Bryce.

;)L
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 5015
Registered: 10-2002
Posted on Thursday, September 22, 2005 - 08:50 pm:   

Hi Lars,

Hopefully this will do it ... I only ran a few quick tests on this particular setting ...

....

An update for NowSMS v5.51 (any subversion) has been uploaded to address the issue discussed in this thread.

The update patch is available at http://www.nowsms.com/download/latestpatch.zip.

To install this update, unzip the attached files into the NowSMS program directory, and use them to replace the existing files of the same name.

This update is for the v5.51 release of the Now SMS/MMS Gateway product only. Applying these updates to other versions may cause unpredictable results.

Remember to stop the NowSMS services before attempting to install these updates.

Specific details regarding the issue discussed in this thread:


* Inbound MMS Processing: Add SMSGW.INI configuration setting that allows a callback to be triggered every time an MMS message is received to the MMS-IN directory. Under the [SMSGW] header, add ReceiveMMSCallback=xxxxxx, where xxxxxx is a local executable command or an HTTP URL. A replaceable variable named @@Filename@@ can be included to specify the name of the header file (without path) for the received MMS message.