Solved

Phone dialer and sound player.

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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.

685 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