[99230] in North American Network Operators' Group
Re: Using Mobile Phone email addys for monitoring
daemon@ATHENA.MIT.EDU (Henning Brauer)
Tue Sep 11 05:32:49 2007
Date: Tue, 11 Sep 2007 11:21:18 +0200
From: Henning Brauer <hb-nanog@bsws.de>
To: nanog@merit.edu
Mail-Followup-To: nanog@merit.edu
In-Reply-To: <46E06F82.4000306@velvet.org>
Errors-To: owner-nanog@merit.edu
* matthew zeier <mrz@velvet.org> [2007-09-06 23:39]:
> >It's more effective to spend the money on SMS messages. Mobile
> >providers are forced to use very aggressive anti spam measures, which
> >can add significant delays in message delivery.
> Recommendations on software and modems?
the UMTS PC-Cards you can get rather cheap these days show up as usb
controllers with usb-cereal converters behind. add a little kermit
magic and you're done (this is on OpenBSD).
unlock at boottime (replace 0000 with your PIN):
#!/usr/local/bin/kermit +
set line /dev/ttyU0
if failure exit 1
set carrier-watch off
set input echo on
lineout "AT+CPIN?"
input 10 "+CPIN: SIM PIN"
if failure exit 1
input 10 OK
if failure exit 1
lineout "AT+CPIN=0000"
input 20 OK
if failure exit 1
lineout "AT+CPIN?"
input 10 "+CPIN: SIM PIN2"
if failure exit 1
input 10 OK
if failure exit 1
exit 0
send an sms:
parameters: number "message"
(+49177... is the SMSC, replace by your provider's one)
#!/usr/local/bin/kermit +
set line /dev/ttyU0
if failure exit 1
set carrier-watch off
lineout ATZ
input 10 OK
if failure exit 1
lineout AT+CSCA="+491770610000"
input 10 OK
if failure exit 1
lineout AT+CMGF=1
input 10 OK
if failure exit 1
lineout AT+CMGS="\%1"
input 10 >
lineout \%2
output \26
input 100 ok
if failure exit 1
exit 0
of course I have some shell around it for failure handling (retries) etc
--
Henning Brauer, hb@bsws.de, henning@openbsd.org
BS Web Services, http://bsws.de
Full-Service ISP - Secure Hosting, Mail and DNS Services
Dedicated Servers, Rootservers, Application Hosting - Hamburg & Amsterdam