>Every once in a while, our asterisk process hangs. >We haven't been able to figure out why, but >in the mean time, we've operated around the issue >using the brute force script below. I hope you find >this useful.sounds like asterisk is its deadlocked or seg faulting this work around is realy just hiding the issue, should realy get to the bottom of it rather than having faulty code out there :) 2 suggestions if you don't get any response 1) check if the parent asterisk process still has pid if it does attach to the dead process with gdb cd /usr/src/asterisk ; gdb ./asterisk pid once gdb loads, do info threads then for each running thread switch to each thread thread 1 then do a bt next ... post that to the list 2) no asterisk process running check for a core file and run a bt on the core file from gdb cd /usr/src/asterisk gdb ./asterisk core.????? bt and post that to the list