Solved

Phone dialer and sound player.

Posted on 2004-08-30
1
346 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Join & Write a Comment

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

743 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now