SMS Messages

A place for discussion of topics that are not specific to ZoneMinder. This could include Linux, Video4Linux, CCTV cameras or any other topic.
Post Reply
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

SMS Messages

Post by jameswilson »

I would like to be able to send text messages on alarm. I understand i need a modem and a message centre but i have both lol. I know i can do it with a smtp to sms gateway but wondered if it could be done with an analouge modem, MMS would be cool too. Plus id pay per message on the line as opposed to bundles up front with a gateway, so anyone any clues?
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
tech_fixer
Posts: 132
Joined: Tue Jul 29, 2003 3:07 pm

Post by tech_fixer »

James,
To send SMS messages produced by ZM you'd need to achieve 2 things:
  • First you neet to get ZM to execute a program/script on an alarm event, and feed this program with an informative message to be sent. This is Phil's area.
    Second, you need the program/script to take the message produced by ZM and actually send it to an SMS network.
On the SMS modem front, try these two:
http://www.meinemullemaus.de/software/s ... index.html
http:://www.kannel.org

Another way is to use http requests to simulate a user sending an SMS message through your provider's website. That's what I did for my OS notification messages and it works like a charm.

Hope this helps,
Jose.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

Another way is to use http requests to simulate a user sending an SMS message through your provider's website. That's what I did for my OS notification messages and it works like a charm.
This i like. I will look into this, but i also like the meinemullemaus idea. I will have a play.

Many Thanks
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
tech_fixer
Posts: 132
Joined: Tue Jul 29, 2003 3:07 pm

Post by tech_fixer »

If you want, I can send you the script I use. It is crude but it does work and illustrates the basics of using HTTP requests.

Basically I looked at the source of the providers web page, then used ethereal to sniff the http requests going back and forth. Then I wrote a script that uses curl to simulate and inserts a message in these requests.

Jose.
User avatar
tech_fixer
Posts: 132
Joined: Tue Jul 29, 2003 3:07 pm

Post by tech_fixer »

Oh, forgot to say that if you do a search for SMS on fremshmeat.net you'll get a nice list of programs and scripts that deal with this.

There are quite a few for sending SMS over http to gateways and provider websites.

Jose.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

ok thankyou very much!
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Post Reply