#!/bin/bash

# Allow direct downloads of asterisk from downloads.digium.com.  Just copy
# the URL from your favorite browser and pass it to astget like:
#
#     astget "http://www.digium.com/elqNow/elqRedir.htm?ref=htt..."
#
# No error checking is done, so use at your own peril.

if [ $# -lt 1 ]
then
	echo "Usage: `basename $0` [url]"
	exit 1
fi

wget `echo "$1" | sed -e 's/.*?ref=//g'`