Solved

Phone dialer and sound player.

Posted on 2004-08-30
1
348 Views
Last Modified: 2010-04-20
I am desinging a rule that will be run a command on a linux box by a UPS when the power fails. I would like to have the application dial a (arbitrary) phone number, then play a (again, arbitrary) sound file out through the modem that will explain to the recipient that a power failure has occured, so come and fix it. My question is this: is there a command-line application (open-source or proprietary) that will (or can) dial a phone number, output a sound file, then hang up?

The closest thing I can find is wxDialer (Search freshmeat for more info), but that is still very much in beta. Also (to my knowledge) it requires user interaction. Any help you can give will be appreciated.
0
Comment
Question by:bisonfur37
1 Comment
 

Accepted Solution

by:
bjorn_rohlen earned 240 total points
ID: 11935046
Don't know about the voice-part, since I've never had nor seen a modem capable of this, but dialing is easy :) Might modify this with the hayes commandset to make your modem do the funky stuff you want?

Edit /etc/inittab and set to run a script on powerfailure that does something like :

#!/bin/bash
echo "atdt 555-456-7890www5w5w5w" >/dev/modem
sleep 5
echo "+++ath0" >/dev/modem

That'd dial the number when the power goes down, beep them three fives and eventually go offhook :)

-Bjorn
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Guacamole cut and paste issue 3 71
(Open)LDAP V2.44  search proxy to AD (W2012R2) 37 140
Adding more CPU cores to a Linux VM 5 94
linux(debian) mouse poor performance 4 40
rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
Fine Tune your automatic Updates for Ubuntu / Debian
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question