mailing incoming calls via sendmail

Thomas Wimmer (thomas@lcars.wh.uni-stuttgart.de)
Thu, 4 Jun 1998 11:14:53 +0200


Hi.

I am fairly new to this vgetty-thing, so bear with me. (although I'm
reading this list quite a time).

After vgetty recorded an incoming call, what does it do then ?
I do want to mail the incoming message via sendmail to me.
For this to work I use the following script (as root):

#!/bin/sh
rmdtopvf /var/spool/voice/incoming/va00216.rmd | pvfspeed -s 8000 |
pvftowav | uuencode ab.wav | /usr/sbin/sendmail -fvoiceadm
-FAnruf\-Beantworter voice

But I do have two problems:
How do I (or more precisey the script) know which filename the incoming
message has, and
how can I let vgetty start the script after vgetty has done its job ?


Thomas
--
Thomas Wimmer   		 | When you're in a fight with an idiot, 
http://lcars.wh.uni-stuttgart.de | difficult for other people 
thomas@lcars.wh.uni-stuttgart.de | to tell which one the idiot is.