Asterisk Trunk Failure Email Alerts script

See this thread on the PBX in a Flash forum. You may need to be logged in to download the script. It appears it may work with any recent Asterisk installation, not just with PBX in a Flash installations.