#!/bin/sh # #to set your vonage line on voicemail (and unset it) # #custmomize with your vonage login and vonage numbers # username=@@yourlogin password=@@yourpassword vonnum=@@yourvonagephone #captures curl output, clobbers each session debugfile="/tmp/voncell_$username" curl -d "username=$username" -d "password=$password" -c "/tmp/von_cookie_$username" https://secure.vonage.com/vonage-web/public/login.htm 2>&1 > $debugfile if [ $1 = 'off' ]; then curl -d "did=$vonnum" -d voicemailTimeout=1 -d enableVoicemail=true -d submit=Save -d action=vmsettingssave -d phoneNumber=$vonnum -d did=$vonnum -b "/tmp/von_cookie_$username" "https://secure.vonage.com/vonage-web/features/voicemail/settings/edit.htm?did=$vonnum&voicemailButton=Configure" 2>&1 >> $debugfile else curl -d "did=$vonnum" -d voicemailTimeout=30 -d enableVoicemail=true -d submit=Save -d action=vmsettingssave -d phoneNumber=$vonnum -d did=$vonnum -b "/tmp/von_cookie_$username" "https://secure.vonage.com/vonage-web/features/voicemail/settings/edit.htm?did=$vonnum&voicemailButton=Configure" 2>&1 >> $debugfile fi