Sending MMS file by URL submission to NowSMS Gateway

Sending MMS file by URL submission to NowSMS Gateway SearchSearch
Author Message
Alvin Bennett
New member
Username: Webdev

Post Number: 1
Registered: 01-2007
Posted on Tuesday, January 16, 2007 - 08:45 pm:   

The text below is from the NowSMS documentation. It describes a method for sending MMS files via URL sumission. I can't get it to work with an MMS file. If I submit a single gif file with the MMSFile parameter, it works fine. When I do submit an actual MMS file, I can see the lights on my Falcom Samba modem do what they are supposed to do. So it appears that the file does get passed on to my carrier, but it never arrives at the recipient phone, and I do not get any type of notification on the recipient phone. I want to send the MMS file directly to the recipient phone using the MM1 interface (NowSMS MM1 is configured and working properly). And I can send an MMS file directly to a recipient through the MM1 interface using the NowSMS web interface.

Question 1:
Does the URL submission method described below use direct to recipient MMS/MM1 or does it only send the MMS notification? My application requires direct to recipient MMS messages using MM1 interface. For testing purposes, I'm typing the URL described below directly into my browser.

Question 2:
Is there an alternative method for doing what I described above, that is not discussed in the documentation?

Question 3:
Can anyone point me to documentation on using NowSMS with BusineSMS Mercury MMS SDK?

Thank you in advance.

NowSMS Documentation states that:
=================================================
As an alternative to using the HTTP POST, if the content of the MMS message already exists on a web server, the “MMSFile” variable can be specified as a URL instead of the actual file content. In this case, the message can be submitted to the gateway with an HTTP GET request, instead of requiring HTTP POST. For example:

http://127.0.0.1:8800/?PhoneNumber=xxxxxx&MMSFrom=sender@domain&
MMSSubject=Message+Subject&MMSText=An+optional+text+part+of+the+message&
MMSFile=http://www.nowsms.com/media/logo.gif
==================================================
Malcolm - Now Support
Moderator
Username: Malcolm

Post Number: 139
Registered: 12-2006
Posted on Tuesday, January 23, 2007 - 10:39 pm:   

Hi Alvin,

What version of NowSMS?

The reason I ask is because prior to NowSMS 2006, there was a problem where if you tried to submit a compiled MMS file via the "MMSFILE" parameter, NowSMS would treat this as a component of the overall MMS message. (And the operator MMSC might either reject it, or you end up receiving a corrupt message.)

That was changed in NowSMS 2006, so that if "MMSFILE" contained a complete compiled MMS file, it would be used as the MM1 message.

The original intent of the "MMSFILE" parameter was not to accept a pre-compiled MMS message. Instead, multiple files could be specified in multiple instances of the "MMSFILE" parameter, and NowSMS would then build the MMS message. (The compiled format that you are using, MM1, is specific to GSM modem interfaces ... and that is just one of the outbound MMS interfaces from NowSMS, so the actual message transmission does not always use this compiled MMS format.)

I don't have any information on the Mercury MMS SDK, so I cannot help you with that.

NowSMS 2006 should be fine with submitting pre-compiled MMS messages via the "MMSFILE" parameter. If you would like me to look at a specific message that you are having problems with, you can upload the example as an attachment in reply here.

Alternatively, I would suggest using multiple instances of the "MMSFILE" parameter (&MMSFILE=...&MMSFILE=...&MMSFILE=...) to reference multiple objects.

--
Malcolm
Now Wireless Support
samantha conlin
New member
Username: Mammy

Post Number: 1
Registered: 01-2007
Posted on Tuesday, January 23, 2007 - 11:00 pm:   

how do i get the picture msg up on line
samantha conlin
New member
Username: Mammy

Post Number: 2
Registered: 01-2007
Posted on Tuesday, January 23, 2007 - 11:00 pm:   

how do i get the picture msg up on line
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 6900
Registered: 10-2002
Posted on Thursday, February 01, 2007 - 09:42 pm:   


quote:

how do i get the picture msg up on line




I'm sorry, but I do not understand the context in which you are asking this question.

This is the support forum for the Now SMS/MMS Gateway software product. For more background information on what exactly NowSMS is, please see http://www.nowsms.com/whatisnowsms.htm.

For more information on NowSMS and MMS, please see http://www.nowsms.com/howmmsworks.htm.

-bn
dwi widayana
New member
Username: Dwi

Post Number: 21
Registered: 09-2006
Posted on Monday, February 05, 2007 - 04:16 pm:   

hi mr.bryce...
here's my mmscdebug and mmswapdebug
application/octet-streammmscdebug
MMSCDEBUG.LOG (22.2 k)
application/octet-streammmswapdebug
MMSWAPDEBUG.LOG (28.2 k)

i see there that the boundary never changed and my msg dont have a msg id.why??for information, i use php script for send mms that you gave to me "sendmms-40112.unk"
what should i do to triggered the boundary?
need ur reply soon..
thanx
Malcolm - Now Support
Moderator
Username: Malcolm

Post Number: 184
Registered: 12-2006
Posted on Thursday, February 08, 2007 - 01:18 am:   

It looks like the image file is missing. Or, actually, whatever the "apachefriends" file is ... is probably confusing the MMSC.

When you submit a message to NowSMS via URL submission, NowSMS determins the content type based upon the file extension. "apachefriends" has no file extension, so it is being included as a generic binary, and I don't think the MMSC likes this.
dwi widayana
New member
Username: Dwi

Post Number: 22
Registered: 09-2006
Posted on Thursday, February 08, 2007 - 04:31 am:   

dear Mr. Malcolm...
apachefriends is my server, it's kinda a php triad, there's php function, MySQL. i work with localhost.
my script will run if activate the apachefriends.

i refer to this:
http://support.nowsms.com/discus/messages/1/1113.html

the variable $bo, i believe that's the boundary that will alaways change evrytime the gateway send an mms. i ever send mms through web interface and at SMSDEBUG i saw that the boundary is already 7.. something (all 15 numbers in hexadecimal).
when i try to send mms using sendmms.php, mmscdebug.log show that the mms has delivered. but the mms never arrived. the smsdebug show that it rejected...it has no message id. i assume that problem occured because of the boundary in the sendmms.php ($bo ="-----------------------------305242850528394";)
could you help me solve this problem please...???

and at Phonenumber part, i can't change it into a variable.the phonenumber must be filled with numbers, if it's not then it'll said invalivd parameter.

please...please i really need your help now...
thank you for the answer

regards,
dwi
dwi widayana
New member
Username: Dwi

Post Number: 23
Registered: 09-2006
Posted on Saturday, February 10, 2007 - 04:08 am:   

btw the boundary just 12 digits in hexadesimal...

anyone plz......

really nedd help now...
dwi widayana
New member
Username: Dwi

Post Number: 24
Registered: 09-2006
Posted on Friday, February 23, 2007 - 02:10 am:   

woluld you tell me plz how to use this to send mms.
<?
header ("Content-Type: text/plain");

if (isset($_REQUEST['sender'])) {
if (isset($_REQUEST['text'])) {
header ("Location: http://ipaddress:port/?phonenumber=" . $_REQUEST['sender'] . "&text=" . urlencode("I received your message : " . $_REQUEST['text']));
}
else {
echo "ERROR : 'text' parameter missing\r\n";
}
}
else {
echo "ERROR : 'sender' parameter missing!\r\n";
}

?>

do i still need the SMIL file?
Robert Nevinger
New member
Username: Rwnevinger

Post Number: 4
Registered: 05-2007
Posted on Tuesday, May 15, 2007 - 07:36 pm:   

DWI:

Did you ever get this resolved? You need a redirect. I have a solution.
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 7129
Registered: 10-2002
Posted on Wednesday, May 16, 2007 - 04:44 pm:   

I just revisited the sendmms.php function at http://support.nowsms.com/discus/messages/1/1113.html. That link is about 4 years old, so I wanted to make sure that the PHP script still worked with the latest versions of PHP.

The only problem that I experienced was that the example started with:

<?

And it should start with:

<?php

Once I fixed that (and I've gone ahead and updated the above referenced link) ... everything worked properly.

The MIME boundary ($bo) does not have to change with each submission. You can use the same boundary string over and over again without a problem.

For testing purposes, I'd suggest running the PHP script from a command line initially (PHP sendmms.php), as it is easier to troubleshoot any problems that way.

Make sure that any "$file1", "$file2", etc., parameters point to valid filenames. And make sure to use "\\" instead of "\" for a path delimiter in these filenames.

When you call the actual "PostToHost" function, the first parameter is the IP address or host name of the NowSMS server (can be "127.0.0.1" or "localhost" if on the same PC). The second parameter is the "Port number for web interface" defined on the "Web" page of the NowSMS configuration. Parameters 3 and 4 are a username and password for an account defined under "SMS Users". Parameter 5 should remain as "$data" and should not be changed.

A SMIL file is not required (if not supplied, NowSMS will insert one automatically).

-bn