After lots of interest I've stopped emailing people the script and have made it available for download from www.generationd.com Look in the Downloads | Asterisk section. Be sure to read the readme AND the top of the script for instructions...