Failed to send MMS using MM1

Failed to send MMS using MM1 SearchSearch
Author Message
Omar
New member
Username: Kfsmart

Post Number: 28
Registered: 01-2008
Posted on Tuesday, December 01, 2009 - 01:27 pm:   

Hi,

I 'm try to send MMS through modem,but it failed to send.
please check the attachment for more details.
application/octet-streamMMS
mms.rar (11.3 k)


Thanks
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 1475
Registered: 08-2008
Posted on Tuesday, December 01, 2009 - 06:46 pm:   

Hi Omar,

It looks like there is a typo in the MMS server address that is confusing things.

Syntactically, the following is not correct:

http:/mms/servlets/mms

It needs two slashes ... e.g., http://mms/servlets/mms

I don't know if that is the only problem in your configuration, but it's definitely a problem.

If this does not resolve your problem, please advise what settings you are using for the MMSC connection, and what mobile operator you are connecting to.

--
Des
NowSMS Support
Omar
New member
Username: Kfsmart

Post Number: 29
Registered: 01-2008
Posted on Wednesday, December 02, 2009 - 09:59 am:   

Hi Des,

Thanks alot,that's was the problem "http:/mms/servlets/mms".

Thanks again :-).
Omar
New member
Username: Kfsmart

Post Number: 30
Registered: 01-2008
Posted on Sunday, December 13, 2009 - 08:34 am:   

Hi Des,
by your help I'm able to send MMS,now I need a help in receiving.
I sent a test ,but the problem the MMS received in the phone not in the modem,i.e not received in inMMS folder.
Note:I'm using Nokia E-71 as a modem.
and please check the attachment for configuration.
application/octet-streamMMSC.INI
MMSC.INI (0.3 k)
application/octet-streamsmsgw.INI
smsgw.INI (0.3 k)


Thanks
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 1542
Registered: 08-2008
Posted on Sunday, December 13, 2009 - 12:20 pm:   

Hi Omar,

Unfortunately it is not possible to use a phone as a modem to receive MMS messages. They can send only, as the MMS client in the mobile phone will intercept the message and not forward it over the modem interface.

Most Nokia phones also have limitations that block receiving SMS as well.

The alternative is a dedicated GSM modem device. Please follow the FAQ link on our web site and you will find more information under the "GSM Modem" link.

-- Des
Omar
New member
Username: Kfsmart

Post Number: 31
Registered: 01-2008
Posted on Wednesday, December 16, 2009 - 08:41 am:   

Thanks Des,

I checked the GSM Modems that are available,but I got lost in choosing the best one.
Can you help me in this?
Note:
The modem I need for sending and receiving SMS and MMS.
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 1564
Registered: 08-2008
Posted on Wednesday, December 16, 2009 - 08:35 pm:   

Personally I like the Option ICON 322.

If you can get that or a similar model (I've also used their 225 and 452 models which are very similar).
Omar
New member
Username: Kfsmart

Post Number: 32
Registered: 01-2008
Posted on Thursday, December 17, 2009 - 06:11 am:   

Thanks Des.
Omar
New member
Username: Kfsmart

Post Number: 33
Registered: 01-2008
Posted on Tuesday, January 26, 2010 - 09:46 am:   

HI Des,

When I'm sending MMS ,the mobile holder is able to send all the mobile numbers sent to under field (To: ),can ( To: ) be removed?
Omar
New member
Username: Kfsmart

Post Number: 34
Registered: 01-2008
Posted on Tuesday, January 26, 2010 - 12:41 pm:   

HI Des,

When I'm sending MMS ,the mobile holder is able to see all the mobile numbers sent to under field (To: ),can ( To: ) be removed?

Note:i'm using MM1 protocol
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 1725
Registered: 08-2008
Posted on Tuesday, January 26, 2010 - 07:05 pm:   

Hi Omar,

Yes.

The easiest way is to edit VASPOUT\outboundRouteName\VASP.INI. Under the [VASP] header, add:

ForceBCC=Yes


--
Des
NowSMS Support
Omar
New member
Username: Kfsmart

Post Number: 35
Registered: 01-2008
Posted on Monday, February 08, 2010 - 12:34 pm:   

HI,

Is there a way to process the incoming MMS like what we can do in SMS like send a reply or save the below data in DB:

Message-type: m-retrieve-conf
Transaction-id: 0120000068218100112101224001
MMS-version: 1.0
To: 00971503838691/TYPE=PLMN
From: +971558893422/TYPE=PLMN
Date: Tue, 12 Jan 2010 06:12:24 GMT
Delivery-report: No
Message-class: Personal
Message-id: 011210122497100101281
Message-size: 28323
Priority: normal
Read-reply: No
Subject: FW: hi
Content-type: application/vnd.wap.multipart.related; type=application/smil; start=<4B4C0F8C.smil>
X-NowMMS-Content-Location: 4B4C1D39\4B4C0F8C.smil
X-NowMMS-Content-Location: 4B4C1D39\uae36.jpg
X-NowMMS-Content-Location: 4B4C1D39\4B4C0F8C.txt
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 1766
Registered: 08-2008
Posted on Monday, February 08, 2010 - 07:43 pm:   

Hi Omar,

Processing a received MMS message is more complicated because there can be multiple objects in the message. SMS messages are much simpler, so it is easy to pass all of the details about a received SMS message via command line or URL parameters.

There are 3 ways to handle processing received MMS messages with NowSMS:

1.) The file/directory based interface. This involves your application scanning the MMS-IN directory for newly received messages, in a format similar to what is shown above.

Each MMS message has a ".hdr" file that contains the message header information. It then also includes one or more "X-NowMMS-Content-Location:" headers which point to file components that are part of the MMS message.

Instead of running all the time and scanning the MMS-IN directory for new messages, there is also a configuration setting in NowSMS that can run a command-line program or script whenever a new MMS message is received.

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 (in the MMS-IN directory) for the received MMS message.

2.) MM7 is the standard MMS format for applications, using XML/SOAP over HTTP POST. NowSMS can be configured to route received MMS messages to an MM7 receiver application.

3.) There is also a PHP interface where NowSMS can pass all of the message details to a PHP script.

This interface is described at the following link:

http://www.nowsms.com/download/php2waymms.pdf

The scripts described in that document can be downloaded here:

http://www.nowsms.com/download/php2waymms.zip

---
To send a response back for a received MMS message, it is necessary to send a new message submission to the NowSMS server.

Any of the SMS or MMS sending APIs can be used for this: http://www.nowsms.com/support/api.htm

--
Des
NowSMS Support
Omar
New member
Username: Kfsmart

Post Number: 36
Registered: 01-2008
Posted on Tuesday, February 09, 2010 - 12:51 pm:   

Hi Des,
Thanks for the help.
I have 2 issues:

1.I configured the 2ways MMS with asp.net language but I'm not receiving the values of MMSfrom,MMSSubject etc,please check the attached file for details.

2.I bought iCON 505 USB modem,and is working fine but sometimes the sms is saved in the SIM card not in nowms IN then I have to disconnect the modem and connect it again.
Do you have any idea bout this?

Thanks
application/octet-streamMMS
mmstest.rar (3.9 k)
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 1776
Registered: 08-2008
Posted on Tuesday, February 09, 2010 - 06:41 pm:   

Hi Omar,

1. The "MMSSubject" field is being set. This interface uses "HTTP file upload" encoding ... MIME type "multipart/form-data". In this encoding, each form parameter, such as "MMSSubject", gets encoded as a separate part of the MIME multipart.

I'm not sure how ASP handles "multipart/form-data". We've tried in the past to find examples, but have never been successful. That's why we only have a PHP example. If you can point me to an example, I might be able to help.

Regarding the missing "MMSFrom", make sure that in the "MMSC Routing" definition, "Allow Sender Address Override" must be checked.

2. What do you mean by "saved in the SIM card"?

Do you mean that the Option modem software is displaying the message, and NowSMS never sees it?

Or do you mean something else?

What configuration setting do you have for "SMS Message Storage" under "Properties" of the modem in the "SMSC" list?

What version of NowSMS?

--
Des
NowSMS Support
Omar
New member
Username: Kfsmart

Post Number: 37
Registered: 01-2008
Posted on Wednesday, February 10, 2010 - 08:13 am:   

Hi Des,

1.I decomposed the mmsreceive into two steps:
a.Saving the parameters such as MMSSubject,MMSfrom,
b.Saving the images in directory

but in first step I'm getting empty string for MMSSubject and MMSFrom you can check the attached file mmstest.rar I previously attached it in the previous post.
and thsi what I wrote in my script:
Dim mmsfrom As String = Request.QueryString("MMSFrom")
Dim mmssubject As String = Request.QueryString("MMSSubject")
2.Yes NowSMS is not seeing the SMS.
SMS Message Storage I'm putting "Default"
Omar
New member
Username: Kfsmart

Post Number: 38
Registered: 01-2008
Posted on Wednesday, February 10, 2010 - 01:54 pm:   

Hi Des,
One more information I can give that I tried PHP scripy you provided it worked fine then I have no any problem in my configuration but don't know why I'm egtting NULL values for MMSSubject,MMSfrom when using asp.net
and this why I wrote in asp.net page
Dim mmsfrom As String = Request.QueryString("MMSFrom")
Dim mmssubject As String = Request.QueryString("MMSSubject")
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 1779
Registered: 08-2008
Posted on Wednesday, February 10, 2010 - 05:18 pm:   

Hi Omar,

1.) The issue is that you aren't supposed to mix query strings with "multipart/form-data".

When a web page has a form for submitting/uploading one or more files, the form data gets encoded as separate MIME parts using "multipart/form-data" encoding.

The ASP function Request.QueryString is looking for URL request parameters.

There are 3 different ways for posting form data using HTTP.

1.) URL request parameters (example url/path?variable1=value1&variable2=value2) This is waht Request.QueryString looks for.

2.) Simple HTTP post ... or MIME type "application/x-www-form-urlencoded". This format is similar to #1, except that the parameters are in the body of the HTTP POST instead of in the URL itself.

3.) HTTP file upload ... or MIME type "multipart/form-data".


The problem is ... I don't know of any methods for interpreting "multipart/form-data" from ASP.

NowSMS has to use "multipart/form-data" because it needs to upload the files that are part of the MMS message.

Do you have a way to access the files that are part of the MMS from ASP?

If yes, how do you do it? Maybe there are some related methods that can be used for accessing other form variables.

If no, then this is a bigger problem/issue with using ASP than not being able to access "MMSFrom" or "MMSSubject". That is why I don't recommend ASP for this.

2. I still do not understand.

NowSMS is not seeing the SMS. But are you seeing this SMS somewhere else? Where?


--
Des
NowSMS Support
Ajay balakrishnan
New member
Username: Ajaysane666

Post Number: 3
Registered: 07-2010
Posted on Friday, July 09, 2010 - 01:32 pm:   

Hi,
I am sending MMS using MM1 to nowsms. I am doing HTTP POST of the MMS PDU(text encoding). I am getting following response from nowsms-smsc
<HTML><HEAD><TITLE>
Unknown Request
</TITLE></HEAD><BODY><H1>
Unknown request: content type is unknown
</H1></BODY></HTML>
with HTTP 500 error.

Is text encoding not supported by nowsms?
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 2318
Registered: 08-2008
Posted on Friday, July 09, 2010 - 02:00 pm:   

Hi,

Text PDU encoding for MM1 is definitely not supported. It is not formally s pecified in any specification, only binary.

If you want to use a text based encoding, use MM7, or process your text MM1 t hrough the MMSCOMP command line utility.

-- Des