I finally solved it. I run my own email server so I intercept the vonage voicemail files and convert the wav to a format the iphone can handle, then send the new email out to my iphone yahoo account (so I can get instant notification):
This is my .procmailrc file:
SHELL=/usr/bin/sh #Use the Bourne shell (check your path!)
MAILDIR=$HOME #
LOGFILE=$MAILDIR/procmail.log
DEFAULT=$HOME/Mailbox
LOG="--- Logging ${LOGFILE} for ${LOGNAME}, "
:0 H c:
* ^Subject:.*You have received a new voicemail message
{
:0
| /usr/local/bin/vonage2iphone.sh
}
# Accept all the rest to your default mailbox
:0:
${DEFAULT}
------
Here is the /usr/local/bin/vonage2iphone.sh script:
#!/bin/bash
if ! TEMPDIR="`mktemp /tmp/sendwav.XXXXXX`"; then
echo "$0 is unable to create the temporary file."
exit 1
fi
# not perfect, but, we'll live
rm $TEMPDIR
mkdir $TEMPDIR
mkdir -p $TEMPDIR/source
#absorbs stdin
munpack -C $TEMPDIR/source
#convert to GSM
sox $TEMPDIR/source/*.[Ww][Aa][Vv] -r 8000 -c 1 -u $TEMPDIR/out.wav
cat $TEMPDIR/source/voice-message.desc | mutt -a $TEMPDIR/out.wav -s "Voicemail $SUBJECT"
iphone.xxxx@yahoo.com
rm -fr $TEMPDIR
---------
I had to install / compile the munpack program that saves the attachment and email headers then run the wav attachment through sox to convert to iphone (8000 rate, 1 channel mono).
Don't know if that helps anyone, but I love being able to listen to my vonage voicemails and seeing who left them in an email attachment.
- James