#!/bin/bash VONNUM="" # your phone number, with no punctuation VLOGIN="" # your vonage login VPASSWD="" # your vonage password if [ -z $1 ] ; then num=`zenity --title "Phone number" --entry --text "What number do you want to call?"` if [ -z "$num" ] ; then exit 0 fi else num=$1 fi DIALNUM=`echo $num | sed -e 's/[^0-9]//g'` if zenity --title "Calling $num" --question --text "Confirm you want to call $num" then echo "`date` $DIALNUM" >> ~/.call_log /usr/bin/curl -s "https://secure.click2callu.com/tpcc/makecall?username=$VLOGIN&password=$VPASSWD&fromnumber=$VONNUM&tonumber=$DIALNUM" 2>&1 >> ~/.call_log | zenity --progress --pulsate --text "Dialing" --auto-close fi