Quote Originally Posted by dswartz View Post
could you share the script, please? having something like that just moved up on my list of priorities, and while i know i can code this, i'd rather not reinvent the wheel thanks!
It would have taken me a while to learn how to code this, not because it seems terribly difficult, but because I have pretty much zero background in PHP, perl, or bash programming. I'm all for not reinventing the wheel!

If you go to this thread on the pbxinaflash forum, there are two scripts of interest.

http://www.pbxinaflash.com/forum/showthread.php?t=1968

Post #12 has a bash script that goes in the 'monitor trunk failures' box in FreePBX. This script will only run if someone attempts to make a call on that trunk and the call fails. (It won't monitor registrations.)

Post #31 has a perl script that does monitor registrations. I took it as is (thanks to those who posted and refined it, by the way!!) and set it to run every 5 mins via cron.