Hey! Did you see what michael jones wrote on Jul 30 ?

mj> thanx to all for the direction in getting sendmail/procmail
mj> setup. i was just wondering if anyone knows if there is a
mj> way to get linux to phone a number, then play a sound file,
mj> like "tell michael to get offline, i'm about to check mail."

I think this would be very possible.  Now remember one thing before I tell
you this... I have no idea if it will work, but I don't see why it
wouldn't.  Okay, disclaimer out of the way, on with the show... :-)

First of all, you will definately need to have a voice modem.  I have a
program here that I use for fax/answering machine.  It's basically a shell
script, a binary (for sending commands to modem) and a bunch of audio
files.

What you would do is record the message with this program (it records and
plays through the modem, so you won't even need a sound card).  Have a
good long read of the man page & the script file.

Then write your own script file that will use the answering machine
program's binary to call whatever phone number you want, and once it's
connected play the message.

I would make it sleep for a few minutes if it gets a busy signal or no
answer, then make it re-dial.  A simple loop would do that.

Another thing.  I'd probably make the message say something like "Hello,
this is Michael's computer calling.  Please don't hang up or leave the
phone.  Would you mind asking Michael to please log off the net as I will
be collecting his mail in 10 minutes.  Oh, and by the way, let's see you
do _this_ with Windoze!"  (couldn't resist that last bit)

The next thing you do is to make a cron job for it.  

That's it!  In theory, it's a piece of cake :-)

Now, for that fax/answering machine program.  Unfortunately, I can't for
the life of me remember where I got it from, but it's called...
voice-0.6.tar.gz (it's only about 35k so if you can't find it let me know
and I'll send it to you via email).

If you run into problems with writing your script, drop a line to the
author of voice, he'll probably be able to help you out.

Good luck with it.  Let us know how you get on.

Regards, Steve Youngs <[EMAIL PROTECTED]> ICQ: 34307457
------------------------------------------------------------
|                                 __                       |
| Isn't it good to know that     / /   __ ___  __ ____  __ |
| There _IS_ an alternative!    / /__ / // _ \/ // /\ \/ / |
|                              /____//_//_//_/\_,_/ /_/\_\ |
------------------------------------------------------------

Reply via email to