Regarding the mms HDR file

Regarding the mms HDR file SearchSearch
Author Message
Lars Nielsen, MobileNation ApS - Denmark
New member
Username: Larsmservice

Post Number: 63
Registered: 10-2003
Posted on Thursday, June 24, 2004 - 12:07 pm:   

Hi Bryce.

Regarding the MMS-IN dir and the .HDR file.

Would it be possible to create a xml file based on the HDR file on incoming mms ?
That would ease up my life a lot.
Here is an example of how i think it should look like...




<?xml version="1.0" encoding="???" ?>
<ROOT>
<Message-type>m-retrieve-conf<Message-type>
<Transaction-id>QL76isCo8XIAAFZmAAAAAwAAETEAAAAA<Transaction-id>
<To>1.1<To>
<From>+4560188290/TYPE=PLMN<From>
<Date>Thu, 03 Jun 2004 12:16:42 GMT<Date>
<Delivery-report>No<Delivery-report>
<Message-class>Personal<Message-class>
<Message-id>QL76gcOcGWUAAEx1AAAAGAAAAYsAAAAA<Message-id>
<Message-size>46750<Message-size>
<Priority>normal<Priority>
<Read-reply>No<Read-reply>
<Content-type>application/vnd.wap.multipart.related; start=<463399751>; type=application/smil<Content-type>
<contentData>
<X-NowMMS-Content-Location>X-NowMMS-Content-Location: 40B5BD75\Film_01_.3gp</X-NowMMS-Content-Location>
<X-NowMMS-Content-Location>X-NowMMS-Content-Location: 40B5BD75\God_somm.txt</X-NowMMS-Content-Location>
<X-NowMMS-Content-Location>X-NowMMS-Content-Location: 40B5BD75\pres.smil</X-NowMMS-Content-Location>
</contentData>
</ROOT>



Another important thingie.
Via the MMSC, the MMSCDATA folder can be reached via HTTP.
Is there any way to have the MMS-IN folder available via the same service ? Meaning making them available via HTTP.
That would do a lot for my ideas of coming online services.

;)Lars
Lars Nielsen, MobileNation ApS - Denmark
New member
Username: Larsmservice

Post Number: 65
Registered: 10-2003
Posted on Friday, June 25, 2004 - 09:22 pm:   

Another important thingie.
Via the MMSC, the MMSCDATA folder can be reached via HTTP.
Is there any way to have the MMS-IN folder available via the same service ? Meaning making them available via HTTP.
That would do a lot for my ideas of coming online services.

;)Lars
Lars Nielsen, MobileNation ApS - Denmark
New member
Username: Larsmservice

Post Number: 66
Registered: 10-2003
Posted on Monday, June 28, 2004 - 10:08 pm:   

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

Post Number: 2975
Registered: 10-2002
Posted on Wednesday, June 30, 2004 - 08:22 pm:   

Lars,

I'm sure you've got a clever programmer that could convert the HDR file to an XML format.

All told, it wouldn't take much ...

The general format of the HDR file is:

Keyword: Value

So you'd just need to read the file line-by-line, and then output for each line:

<Keyword>Value</Keyword>

It would be useful for us to have an XML variation of the format, I'm just weary of making any changes here because the code that is used here gets used for a variety of other MMS parsing tasks ... so I'd rather see an external conversion tool.

Making the MMS-IN directory accessible via HTTP is an interesting idea ... but I assume that we would also have to make it possible to query a directory list in some format ... plus there would need to be provisions to allow files to be deleted over HTTP as well ... so it's not as clear cut as it first sounds.

-bn
Lars Nielsen, MobileNation ApS - Denmark
New member
Username: Larsmservice

Post Number: 67
Registered: 10-2003
Posted on Wednesday, June 30, 2004 - 09:27 pm:   

Hi Bryce.

I've allready made a wscript that does the trick. I just thought it would be smarter for Nowsms to do an xml instead of a .hdr fil. since xml is easier for all to work with.

Regarding making the MMS-IN dir available via HTTP.
What i mean is that it is available as readonly. No dir-list or deletion fo any files in any way. No way i would allow anything for deletion via HTTP. I did not meant it to be accessible to do admin stuff. But i could think of many services that would be cool if the MMS-IN dir was available (as read-only).
The basics. No admin stuff via admin. only displaying the content as read-only.

;)Lars
Lars Nielsen, MobileNation ApS - Denmark
New member
Username: Larsmservice

Post Number: 73
Registered: 10-2003
Posted on Wednesday, July 14, 2004 - 10:51 pm:   

Regarding making the MMS-IN dir available via HTTP.
What i mean is that it is available as readonly. No dir-list or deletion fo any files in any way. No way i would allow anything for deletion via HTTP. I did not meant it to be accessible to do admin stuff. But i could think of many services that would be cool if the MMS-IN dir was available (as read-only).
The basics. No admin stuff via admin. only displaying the content as read-only.

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

Post Number: 3075
Registered: 10-2002
Posted on Friday, July 16, 2004 - 08:09 pm:   

Lars,

If the MMS-IN dir was available via HTTP, how would you know what files were available?

I guess you're figuring on some local software running on the PC that would push out the URLs that were available?

-bn
Lars Nielsen, MobileNation ApS - Denmark
New member
Username: Larsmservice

Post Number: 74
Registered: 10-2003
Posted on Friday, July 16, 2004 - 09:36 pm:   

Here's what i wanna do, but don't tell anyone ;-)

I got this system that creates xml files based on the .HDR files. In addition to that i have a xml file for each modem i have on the server. These xml files are given filnames based on the phonenumber that is in the modems. Example; 4522116677.xml
So i have a script that runs every 5 minutes that scans the dir for new .HDR files. If there is a new .HDR-file i create a xml file, and adds data to the modems xml file(4522116677.xml). So 4522116677.xml will allways contain all the info about the MMS messages, and their content, that comes in.
So now i have a customer that can download the 4522116677.xml and via that get the latest incoming mms files. Great service for our customers. TV stations and radiostations can use this in many ways.

Right now i am running Microsoft IIS on the same server as nowsms is on, so it's actually no problem. But it would be a lot easyer if i could use nowsms only.

I am actually thinking on making this simple system freeware, and post it here, but it needs some cleaning of the code first, and i use some components that others may not wish to install, so i have to do some rewriting too.

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

Post Number: 3119
Registered: 10-2002
Posted on Wednesday, July 21, 2004 - 10:07 pm:   

Lars,

Don't worry, your secret it safe with me. Nobody reads these messages boards anyway.

That is quite clever. The only concern that I would have would be wanting to clean up the older files, so each time they connect, they only get the ones that they haven't retrieved before.

For that you would probably want to have some sort of signal back to indicate that the message had been retrieved. For that reason, I like the idea of having a separate web server handling things.

But I do like the idea.

-bn
Lars Nielsen, MobileNation ApS - Denmark
New member
Username: Larsmservice

Post Number: 79
Registered: 10-2003
Posted on Wednesday, July 21, 2004 - 10:51 pm:   

Nope. i want the [phonenumber].xml file to contain all mms messages, and not change anything when the customer opens it.
Instead i put a timestamp on every message, so that the customer can download based on that.

I am currently rewriting it, and have a meeting set up in 3 weeks to a danish national radiostation that wishes to use this solution. I think there is a lot of customers wanting this solution, with xml as the "middle tier" between us and the customer.
Know any cool docs/sites on writing good DTD's please let me know ;-)


Best
;)Lars