Mailing incoming voice messages

Thomas Wimmer (thomas@lcars.wh.uni-stuttgart.de)
Sun, 5 Jul 1998 23:49:38 +0200


Luiz Otavio L. Zorzella wrote:
> 
> Is it possible to configure vgetty so that it will send an email with
> the incoming message to me, insead of (or besides) saving it in the
> /var/spool/voice/incoming dir?
> 
> Thanks a lot

I use the following setup:

in /etc/mgetty+sendfax/voice.conf:

message_program /var/spool/voice/abmail.sh

/var/spool/voice/abmail.sh contains the following:

#!/bin/sh
(
 echo "To: voice"
 echo "Subject: Anruf"
 echo "X-Mailer: Shell-Script"
 echo
 echo "Ein Anruf ist eingegangen:"
 /usr/local/bin/rmdtopvf $1 | /usr/local/bin/pvfspeed -s 8000 | \  
/usr/local/bin/pvfamp -A 3 | /usr/local/bin/pvftoau | \
 /usr/bin/uuencode ab.au
 echo
 echo "-- "
 echo
 echo "Um unter Netscape die Audio-Datei abhoeren zu koennen, sind
folgende"
 echo "Schritte notwendig (Windows 95b):"
 echo
 echo "{Netscape 3.x}"
 echo "Optionen | Allgemeine Einstellungen | Hilfsprogramme | Neuen Typ
erstellen..."
 echo
 echo "MIME-Typ:                audio"
 echo "MIME-Untergruppe:        basic"
 echo
 echo "Datei-Erweiterungen:     au"
 echo "Anwendung starten auswaehlen"
 echo "Anwendung starten:       c:\windows\rundll32.exe
amovie.ocx,RunDll /play /close"
) 2>&1 | /usr/sbin/sendmail -t -fvoiceadm -FAnruf\-Beantworter
rm $1
exit 0

Of course, you have to customize you have to customize your
shell-script.
the address voive is defined in /etc/aliases, which points to me and
others which I share the phone-line with.

That does the trick with me.

btw, does anyone know why the hell netscape 3.x (win95) forgets the
entry for the audio/basic stuff when I end netscape ?
I have to enter this information every time I start netscape, or delete
npaudio.dll. Thats anoying ...


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.

*** ftp://lcars.wh.uni-stuttgart.de/pub/windows95_sucks.mp3 ***