Solved

Phone dialer and sound player.

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

809 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