Posting MMS via MM1

Posting MMS via MM1 SearchSearch
Author Message
Eric Liu
Unregistered guest
Posted on Thursday, December 04, 2003 - 02:44 am:   

I'm using a Perl script to simulate a phone sending a MMS message to the MMSC. I'm posting to the MMSC via MM1. I've configured a VASP account using my IP as the name so no authentication is needed.

Below is the headers sent in the HTTP (from Ethereal):

POST /mm1 HTTP/1.1
TE: deflate,gzip;q=0.3
Connection: TE, close
Host: xx.xx.xx.xx
User-Agent: libwww-perl/5.76
Content-Length: 10051
Content-Type: application/vnd.wap.mms.message


The binary MMS message then follows as shown in the attached bmp.

image/bmpParsed MMS file
\racalsrv3\c$\Documents and Settings\eliu\Desktop\s1.bmp (672.1 k)


The gateway then gave me this response:

HTTP/1.0 500 Internal Error
Content-type: text/html
Date: Thu, 04 Dec 2003 02:29:37 GMT
Expires: Thu, 04 Dec 2003 02:29:37 GMT

<HTML><HEAD><TITLE>
Unknown Request
</TITLE></HEAD><BODY><H1>
Unknown request: content type is unknown
</H1></BODY></HTML>


Did I miss anything?

Thanks,
Eric
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 1315
Registered: 10-2002
Posted on Friday, December 05, 2003 - 10:08 pm:   

Eric,

Your request looks correct to me.

That particular error message is generated when the MMSC receives an HTTP POST and the MIME type is not "application/vnd.wap.mms-message".

And actually, as I look closer at your POST header, that could be the problem unless you have a typo in the message post here. In your POST header above, there is a "." between "mms" and "message" where there should be a "-".

-bn
Eric Liu
Unregistered guest
Posted on Monday, December 08, 2003 - 10:13 pm:   

Bryce,

You're right! I changed the content type to application/vnd.wap.mms-message (I should have noticed that) and it worked! You may want to update the content type on the NowSMS's "Submitting MMS Messages: MM1" instructions web page.

Thanks,
Eric

P.S. I have to use username and password instead of using the IP address as VASP name.
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 1344
Registered: 10-2002
Posted on Tuesday, December 09, 2003 - 09:40 pm:   

Thanks for pointing me to that web page Eric, I'll get someone to fix that.

Regarding the problem of not being able to use the IP address as the VASP name, there is an update at http://www.nowsms.com/download/nowsms5-patch3.zip. This is one of the problems that is fixed in that update.

Hopefully we'll be able to roll these patches into a v5.01 release shortly.

-bn