Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Is there any cpan programs or any custom programs that anyone knows about, that will allow our club members to get mobile alerts that they request? We can get them to tell us the carrier, cell numbers, etc, whatever we need, we just don't know where to find the programming to do this...

Thanks in advance for any pointers... Not seeking someone to custom build it, just looking where to find the documentation or modules that will help me get this going.

Thanks again.
Richard
  • Comment on seeking perl monks wisdom... mobile alerts

Replies are listed 'Best First'.
Re: seeking perl monks wisdom... mobile alerts
by JavaFan (Canon) on Jul 13, 2010 at 10:42 UTC
    I presume you're talking about SMS messages.

    What you need is a carrier that will do the sending over the network. That carrier will have an API. For a previous employer, I wrote an interface for $CARRIER - which wasn't any more difficult than sending an XML document over HTTP, using basic HTTP authentication, and a message digest + shared secret for authorization. LWP, some XML module and Digest::MD5 was needed.

    It was pretty trivial to write, so I never bothered to cut throught $WORK[-1]'s red tape to get the non business-logic released on CPAN. The hardest part was figuring out what was missing from $CARRIER's spec, and which parts $CARRIER had forgotten to implement. ;-)

    The most important document you need is your $CARRIER's spec.

Re: seeking perl monks wisdom... mobile alerts
by moritz (Cardinal) on Jul 13, 2010 at 11:18 UTC
    Another idea is to use an email-to-textmessage provider, and then send out emails, which is well supported in Perl.

      Hmmm ... I wonder if there's any real benefit to using an email-to-textmessage provider over the providers own gateway. I guess if you have a lot of people to alert, maintaining that list could be a hassle.

      -derby
Re: seeking perl monks wisdom... mobile alerts
by Anonymous Monk on Jul 13, 2010 at 11:06 UTC
    I've successfully used Net::EMI::Client for sending SMS via an SMSC, but I'm sure that GSM::SMS or similar might be useable too with a GSM-device hooked up to your server?
Re: seeking perl monks wisdom... mobile alerts
by salva (Canon) on Jul 13, 2010 at 11:26 UTC
    Probably the easiest way is to plug a GSM/3G/whatever phone or modem into the server and use gnokii to send the text messages or just talk directly to the device sending the corresponding standard AT modem commands to its serial port (i.e. /dev/ttyUSB0).
Re: seeking perl monks wisdom... mobile alerts
by zek152 (Pilgrim) on Jul 13, 2010 at 12:53 UTC

    If you have the carrier information I would just send sms via email. A quick search showed the following emails by carriers:

    T-Mobile phonenumber@tmomail.net Virgin Mobile phonenumber@vmobl.com Cingular phonenumber@cingularme.com Sprint phonenumber@messaging.sprintpcs.com Verizon phonenumber@vtext.com Nextel phonenumber@messaging.nextel.com

    I have only verified one of the addresses. It seems like it would be really easy to set this up if you can just send an email.