There was a thread a while back talking about a tool to restart Asterisk. We have a program that runs out of CRON that does just that. What it does is check the Asterisk process every X minutes and verifies not only that Asterisk is running, but that it is running efficiently by checking the Asterisk process parameters such as memory usage, cpu usage, number of threads spawned, the number of open files, etc. The program reads the threshold values in a config file and if the parameters exceed the threshold values, the program restarts Asterisk and shoots an email off to the admin letting them know that there was a restart. The program is written in Perl and requires no non-standard CPAN modules. Feel free to download the program at https://mte6.mobilepbx.net/downloads/AsteriskProcess.tar.gz. All comments are welcome and can be sent to firstname.lastname@example.org.
VoIP Business Solutions